Skip to content

Instantly share code, notes, and snippets.

@tgrrr
Created May 1, 2020 08:43
Show Gist options
  • Save tgrrr/b939c6fe133de0175ba398f35f292f3a to your computer and use it in GitHub Desktop.
Save tgrrr/b939c6fe133de0175ba398f35f292f3a to your computer and use it in GitHub Desktop.
react eslint
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"__DEBUG__": false
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"comma-dangle": [
"error",
"always-multiline"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/named": 2,
"import/no-unresolved": "off",
"indent": [
"error",
4
],
"no-nested-ternary": 0,
"no-unused-expressions": [
2,
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"always"
],
"react/destructuring-assignment": 2,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-sort-props": 2,
"react/prop-types": 2,
"react/sort-prop-types": 2,
"no-shadow": "off",
"no-underscore-dangle": 0,
"yoda": 2
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"icons",
"./src/adapters"
]
}
},
"react": {
"version": "detect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment