-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.eslintrc.json
More file actions
129 lines (129 loc) · 2.64 KB
/
Copy path.eslintrc.json
File metadata and controls
129 lines (129 loc) · 2.64 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
{
"root": true,
"extends": [
"airbnb",
"airbnb-typescript"
],
"ignorePatterns": [
"node_modules/",
".next/",
"out/",
"public/",
".cache/",
"tests/",
"scripts/",
"jest.config.cjs",
"next.config.mjs",
"next-env.d.ts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json",
"warnOnUnsupportedTypeScriptVersion": false
},
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
},
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/__tests__/**",
"**/*.test.ts",
"**/*.test.tsx",
"jest.config.cjs",
"setupTests.ts"
],
"peerDependencies": true,
"optionalDependencies": false,
"bundledDependencies": true
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".tsx"]
}
],
"react/require-default-props": "off",
"react/button-has-type": "off",
"react/no-unstable-nested-components": "off",
"react/function-component-definition": "off",
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off",
"no-continue": "off",
"no-await-in-loop": "off",
"max-len": [
"error",
{
"code": 100,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"react/no-danger": "error",
"jsx-a11y/click-events-have-key-events": "error",
"jsx-a11y/no-static-element-interactions": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": [
"src/lib/markdown/**/*.ts"
],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}