Skip to content

Commit

Permalink
chore: simplify ESLint config (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroschmitz committed Oct 10, 2021
1 parent 90ac4b4 commit be7ad0c
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 485 deletions.
33 changes: 3 additions & 30 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2019,
"sourceType": "module"
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": ["import", "jsx-a11y", "react", "react-hooks", "prettier"],
"extends": ["airbnb", "prettier", "next", "next/core-web-vitals"],
"plugins": ["prettier"],
"extends": ["next", "next/core-web-vitals", "prettier"],
"rules": {
"prettier/prettier": "error",
"camelcase": "off",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unused-prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"import/extensions": [
"error",
Expand Down Expand Up @@ -68,15 +51,5 @@
]
}
}
],
"settings": {
"import/resolver": {
"typescript": {
"project": "."
}
},
"react": {
"version": "detect"
}
}
]
}
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,10 @@
"commitizen": "4.2.4",
"cz-conventional-changelog": "3.3.0",
"eslint": "7.32.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-next": "11.1.2",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "2.5.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "7.0.2",
"lint-staged": "11.2.0",
"prettier": "2.4.1",
Expand Down

0 comments on commit be7ad0c

Please sign in to comment.