Skip to content

Instantly share code, notes, and snippets.

@ajtruex
Created December 20, 2022 14:25
Show Gist options
  • Save ajtruex/7fbf266bb1cac98bfccd4b51678c1aab to your computer and use it in GitHub Desktop.
Save ajtruex/7fbf266bb1cac98bfccd4b51678c1aab to your computer and use it in GitHub Desktop.
React eslint setup
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"rules": {
"react/prop-types": 0,
"react/react-in-jsx-scope": 0
},
"plugins": [
"react",
"import",
"jsx-a11y"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment