Skip to content

Instantly share code, notes, and snippets.

@straxico
Created September 1, 2019 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save straxico/238035de14764e7f7c82eb46136bfe20 to your computer and use it in GitHub Desktop.
Save straxico/238035de14764e7f7c82eb46136bfe20 to your computer and use it in GitHub Desktop.
eslint config file for react prettier typescript
{
"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