-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
57 lines (57 loc) · 1.3 KB
/
.eslintrc.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "cypress", "@next/next"],
"extends": [
"react-app",
"eslint:recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:@next/next/recommended"
],
"env": {
"es6": true,
"browser": true,
"jest": true,
"node": true,
"cypress/globals": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"import/export": "error",
"import/newline-after-import": "error",
"import/no-anonymous-default-export": "off",
"import/no-duplicates": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"newlines-between": "never"
}
],
"prettier/prettier": "error",
"react/react-in-jsx-scope": 0,
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
]
}
}