Skip to content

Instantly share code, notes, and snippets.

@danieljpgo
Last active January 7, 2021 02:07
Show Gist options
  • Save danieljpgo/f158b2300616ef1d9ded512d5f07ac3c to your computer and use it in GitHub Desktop.
Save danieljpgo/f158b2300616ef1d9ded512d5f07ac3c to your computer and use it in GitHub Desktop.
Eslint Config - Airbnb Style Guide - React 17
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error"
],
"import/prefer-default-export": "off",
"import/extensions": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".jsx",
".tsx"
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".json"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment