This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 674
/
.eslintrc
117 lines (117 loc) · 3.27 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
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"extends": [
"airbnb-typescript",
"prettier",
"prettier/react",
"plugin:import/errors",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"import",
"react",
"prettier",
"simple-import-sort"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/quotes": "off",
"comma-spacing": "off",
"import/no-cycle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/stories.tsx",
"**/test.ts",
"**/*.test.ts",
"**/test.tsx",
"**/tests.tsx",
"config/**/*",
"*.config.js",
"src/@next/pages/baseStory.ts",
"cypress/**/*"
]
}
],
"import/no-internal-modules": "off",
"import/no-named-as-default": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"no-nested-ternary": "off",
"prettier/prettier": ["error"],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"react/prop-types": "off",
"sort-imports": "off",
"no-underscore-dangle": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"sort-keys": "off",
"no-prototype-builtins": "off",
"no-shadow": "off",
"jsx-a11y/click-events-have-key-events": "off",
"consistent-return": "off",
"react/no-this-in-sfc": "off",
"array-callback-return": "off",
"no-plusplus": "off",
"react/no-did-update-set-state": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/destructuring-assignment": "off",
"react/button-has-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-useless-escape": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/no-array-index-key": "off",
"no-param-reassign": "off",
"no-empty-pattern": "off",
"no-restricted-globals": "off",
"@typescript-eslint/no-unused-vars": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["href", "to"],
"aspects": ["invalidHref", "preferButton"]
}
],
"no-await-in-loop": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Side effect imports.
["^\\u0000"],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything that does not start with a dot.
["^[^. ]"],
// ALiases.
[
"^(@components|@paths|@pages|@utils|@hooks|@types|@app|@locale|@temp|@styles|@graphql)(/.*|$)"
],
// Relative imports.
// Anything that starts with a dot.
["^\\."],
// Assets.
["^(images|!!raw-loader)"],
// Styles
["w*(w*.*css)"]
]
}
]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}