Created
September 1, 2019 22:36
-
-
Save straxico/238035de14764e7f7c82eb46136bfe20 to your computer and use it in GitHub Desktop.
eslint config file for react prettier typescript
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": ["airbnb", "prettier/@typescript-eslint", "plugin:prettier/recommended"], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": ["react", "@typescript-eslint", "prettier"], | |
"rules": { | |
"no-unused-vars": "warn", | |
"eqeqeq": "off", | |
"@typescript-eslint/explicit-function-return-type": "off", | |
"react/destructuring-assignment": "off", | |
"react/prop-types": "off", | |
"react/jsx-one-expression-per-line": "off", | |
"react/jsx-props-no-spreading": "off", | |
"react/jsx-filename-extension": "off", | |
"react/jsx-closing-bracket-location": "off", | |
"jsx-a11y/label-has-associated-control": "warn", | |
"jsx-a11y/click-events-have-key-events": "warn", | |
"jsx-a11y/no-static-element-interactions": "warn", | |
"jsx-a11y/label-has-for": "warn", | |
"jsx-a11y/anchor-is-valid": "warn" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment