Last active
March 16, 2021 09:49
-
-
Save wescopeland/f7342bdf5a5c98c1f4e2beca4ac18853 to your computer and use it in GitHub Desktop.
God Tier ESLint Config
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 = { | |
parserOptions: { | |
ecmaVersion: 2020, | |
sourceType: "module", | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
}, | |
env: { | |
browser: true, | |
node: true, | |
es6: true, | |
}, | |
parser: "@typescript-eslint/parser", | |
plugins: ["@typescript-eslint", "simple-import-sort", "import"], | |
settings: { | |
react: { | |
version: "detect", | |
}, | |
}, | |
extends: [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:jsx-a11y/recommended", | |
"plugin:react/recommended", | |
"plugin:sonarjs/recommended", | |
"plugin:unicorn/recommended", | |
"plugin:security/recommended", | |
"plugin:react-hooks/recommended", | |
"prettier", | |
], | |
rules: { | |
"@typescript-eslint/explicit-module-boundary-types": "off", | |
"@typescript-eslint/no-non-null-assertion": "off", | |
"import/first": "error", | |
"import/newline-after-import": "error", | |
"import/no-duplicates": "error", | |
"no-console": "off", | |
"react/display-name": "off", | |
"react/no-unescaped-entities": "off", | |
"react/prop-types": "off", | |
"react/react-in-jsx-scope": "off", | |
"security/detect-object-injection": "off", | |
"simple-import-sort/exports": "error", | |
"simple-import-sort/imports": "error", | |
"unicorn/filename-case": "off", | |
"unicorn/no-array-callback-reference": "off", | |
"unicorn/no-null": "off", | |
"unicorn/prevent-abbreviations": "off", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment