forked from thinkfiveable/open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.06 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = {
root: true,
extends: ["airbnb-typescript", "plugin:prettier/recommended"],
env: {
browser: true,
node: true,
es2020: true
},
parserOptions: {
project: "./tsconfig.eslint.json"
},
rules: {
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx", ".ts", ".tsx"] }],
"prettier/prettier": ["error", {}, { usePrettierrc: true }],
"react/react-in-jsx-scope": "off",
"no-console": "off",
"react/prop-types": "off",
"simple-import-sort/imports": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
components: ["Link"],
specialLink: ["hrefLeft", "hrefRight"],
aspects: ["invalidHref", "preferButton"]
}
],
"jsx-a11y/alt-text": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"react/no-unescaped-entities": "warn"
},
plugins: ["simple-import-sort"]
};