Last active
September 17, 2020 11:22
-
-
Save fkirc/8c62c360255e82f11b9eb3815142326b to your computer and use it in GitHub Desktop.
ESLint React configuration (combined with Prettier + WebStorm)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
extends: [ | |
"react-app", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", | |
"plugin:prettier/recommended", | |
"prettier/react", | |
], | |
plugins: [ | |
"simple-import-sort" | |
], | |
rules: { | |
"require-await": "error", | |
"no-var": "error", | |
"@typescript-eslint/no-non-null-assertion": "error", | |
"@typescript-eslint/no-explicit-any": "error", | |
"@typescript-eslint/ban-ts-ignore": "error", | |
"simple-import-sort/sort": "error", | |
"@typescript-eslint/no-unused-vars": ["error", {"args": "none"}], | |
"@typescript-eslint/explicit-function-return-type": "off", | |
"react-hooks/exhaustive-deps": "off", | |
"@typescript-eslint/no-empty-interface": "off", | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To be combined with a strict TypeScript config https://gist.github.com/fkirc/8fd2a4cb0289a0a0fd03381318eb2ed0.
WebStorm - ESLint:
package.json: