forked from solidjs-community/eslint-plugin-solid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
70 lines (70 loc) · 1.9 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
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"plugins": ["@typescript-eslint", "import"],
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
"import/no-unresolved": "off",
"object-shorthand": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "warn",
"no-extra-semi": "off",
"no-mixed-spaces-and-tabs": "off"
},
"overrides": [
{
"files": "src/rules/*.ts",
"plugins": ["eslint-plugin"],
"extends": ["plugin:eslint-plugin/recommended"],
"rules": {
"eslint-plugin/meta-property-ordering": "error",
"eslint-plugin/report-message-format": ["error", "^[A-Z\\{'].*\\.$"],
"eslint-plugin/test-case-property-ordering": "error",
"eslint-plugin/require-meta-docs-description": [
"error",
{ "pattern": "^(Enforce|Require|Disallow)" }
],
"eslint-plugin/require-meta-docs-url": [
"error",
{
"pattern": "https://github.com/solidjs-community/eslint-plugin-solid/blob/main/docs/{{name}}.md"
}
]
}
},
{
"files": "standalone/**/*.ts",
"env": {
"node": false,
"worker": true
}
},
{
"files": "test/fixture/**/*.{js,jsx,ts,tsx}",
"env": {
"node": false,
"browser": true
},
"plugins": ["solid"],
"extends": "plugin:solid/recommended",
"rules": {
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-empty-function": 0
}
}
],
"reportUnusedDisableDirectives": true
}