-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
104 lines (104 loc) · 2.44 KB
/
.eslintrc
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"sourceType": "module",
"createDefaultProgram": true
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"env": {
"node": true,
"browser": true,
"amd": true,
"jest": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:cypress/recommended",
"plugin:prettier/recommended",
"plugin:@next/next/recommended",
"plugin:react/jsx-runtime"
],
"overrides": [
{
"files": ["_app.tsx", "*.stories.tsx", "*.test.tsx"],
"rules": {
"react/jsx-props-no-spreading": 0
}
},
{
"files": ["*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 0
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["cypress.config.ts"],
"rules": {
"no-param-reassign": "off"
}
}
],
"rules": {
"prettier/prettier": 2,
"react/jsx-props-no-spreading": 1,
"react/prop-types": 0,
"react/require-default-props": 0,
"import/no-unresolved": "error",
"import/order":[
"error",
{
"groups": ["builtin", "external", "internal"],
"pathGroups":[{
"pattern": "react",
"group": "external",
"position": "before"
}],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive":true
}
}
],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"**/*.test.{js,jsx,ts,tsx}",
"**/*.spec.{js,jsx,ts,tsx}",
"**/*.stories.{js,jsx,ts,tsx}",
"test/**/*",
"cypress/**/*",
"plopfile.mjs",
"cypress.config.ts"
]
}],
"react/function-component-definition": ["error", {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": false
}
}
}
}