Skip to content

Instantly share code, notes, and snippets.

@wescopeland
Last active March 16, 2021 09:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wescopeland/f7342bdf5a5c98c1f4e2beca4ac18853 to your computer and use it in GitHub Desktop.
Save wescopeland/f7342bdf5a5c98c1f4e2beca4ac18853 to your computer and use it in GitHub Desktop.
God Tier ESLint Config
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