We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-barrel-import
Strongly typed env wrapper with ESLint rule to enforce using it: https://twitter.com/housecor/status/1648346461455675392. Or, perhaps don't wrap at all and just strongly type: https://www.youtube.com/watch?v=q1im-hMlKhM
Set --report-unused-disabled-directives when running the CLI to catch needless disables.
Use import/no-default-export to catch default exports. Disable this rule for React components like this:
overrides: [ { files: ["src/**/*.tsx"], rules: { "import/no-default-export": "off", } }, ]
https://typescript-eslint.io/ https://typescript-eslint.io/rules/no-unnecessary-condition/ - My tweet thread https://www.npmjs.com/package/eslint-plugin-no-type-assertion https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
Fav rules from above:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Configs
Plugins
no-barrel-import
violations, it's likely that you still have lingering barrel files even though they might no longer be in use.)Strongly typed env wrapper with ESLint rule to enforce using it: https://twitter.com/housecor/status/1648346461455675392. Or, perhaps don't wrap at all and just strongly type: https://www.youtube.com/watch?v=q1im-hMlKhM
Set --report-unused-disabled-directives when running the CLI to catch needless disables.
Use import/no-default-export to catch default exports. Disable this rule for React components like this:
React
Enforce consistent useState
TypeScript
https://typescript-eslint.io/
https://typescript-eslint.io/rules/no-unnecessary-condition/ - My tweet thread
https://www.npmjs.com/package/eslint-plugin-no-type-assertion
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
Fav rules from above:
The text was updated successfully, but these errors were encountered: