eslint-config-aether 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/default.js +6 -0
- package/package.json +1 -1
- package/typescript-basic.js +29 -4
- package/typescript.js +55 -71
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npm install @typescript-eslint/parser
|
|
|
45
45
|
|
|
46
46
|
## Included Configurations
|
|
47
47
|
|
|
48
|
-
The `aether` configuration is intended to be used for JavaScript projects, `aether/typescript-basic` is a compatibility configuration for TypeScript projects and `aether/typescript` adds rules that
|
|
48
|
+
The `aether` configuration is intended to be used for JavaScript projects, `aether/typescript-basic` is a compatibility configuration for TypeScript projects and `aether/typescript` adds rules that rely on type checking.
|
|
49
49
|
|
|
50
50
|
| Config | Parent Configs |
|
|
51
51
|
|---------------------------|----------------------------------------------------------------------------------|
|
package/default.js
CHANGED
package/package.json
CHANGED
package/typescript-basic.js
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
module.exports =
|
|
1
|
+
module.exports = {
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
"plugins": ["@typescript-eslint"],
|
|
4
|
+
"parser": "@typescript-eslint/parser",
|
|
5
|
+
|
|
6
|
+
"parserOptions": {
|
|
7
|
+
"project": [
|
|
8
|
+
"tsconfig.json"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
4
11
|
|
|
5
12
|
"extends": [
|
|
6
13
|
"aether/default",
|
|
7
14
|
"plugin:@typescript-eslint/recommended"
|
|
8
|
-
]
|
|
15
|
+
],
|
|
16
|
+
|
|
17
|
+
"rules": {
|
|
18
|
+
|
|
19
|
+
"indent": "off",
|
|
20
|
+
"no-undef": "off",
|
|
21
|
+
"no-unused-vars": "off",
|
|
22
|
+
|
|
23
|
+
"@typescript-eslint/indent": ["error", "tab", {
|
|
24
|
+
"SwitchCase": 1
|
|
25
|
+
}],
|
|
26
|
+
|
|
27
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
28
|
+
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
29
|
+
"vars": "all",
|
|
30
|
+
"args": "none"
|
|
31
|
+
}]
|
|
32
|
+
|
|
33
|
+
}
|
|
9
34
|
|
|
10
|
-
}
|
|
35
|
+
};
|
package/typescript.js
CHANGED
|
@@ -1,71 +1,55 @@
|
|
|
1
|
-
module.exports =
|
|
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
|
-
"selector": "typeLike",
|
|
59
|
-
"format": ["PascalCase"]
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
|
|
63
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
64
|
-
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
65
|
-
"vars": "all",
|
|
66
|
-
"args": "none"
|
|
67
|
-
}]
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
};
|
|
1
|
+
module.exports = require("./typescript-basic.js");
|
|
2
|
+
|
|
3
|
+
module.exports.extends.push(
|
|
4
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
Object.assign(module.exports.rules, {
|
|
8
|
+
|
|
9
|
+
"camelcase": "off",
|
|
10
|
+
|
|
11
|
+
"@typescript-eslint/naming-convention": ["error",
|
|
12
|
+
{
|
|
13
|
+
"selector": "default",
|
|
14
|
+
"format": ["camelCase"]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"selector": "variable",
|
|
18
|
+
"format": ["camelCase", "UPPER_CASE"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"selector": "parameter",
|
|
22
|
+
"format": ["camelCase"],
|
|
23
|
+
"leadingUnderscore": "allow"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"selector": "accessor",
|
|
27
|
+
"modifiers": ["static"],
|
|
28
|
+
"format": ["camelCase", "UPPER_CASE"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"selector": "classProperty",
|
|
32
|
+
"modifiers": ["static", "readonly"],
|
|
33
|
+
"format": ["camelCase", "UPPER_CASE"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"selector": "memberLike",
|
|
37
|
+
"modifiers": ["private"],
|
|
38
|
+
"format": ["camelCase"],
|
|
39
|
+
"leadingUnderscore": "forbid"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"selector": ["objectLiteralProperty", "objectLiteralMethod"],
|
|
43
|
+
"format": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"selector": "enumMember",
|
|
47
|
+
"format": ["UPPER_CASE"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"selector": "typeLike",
|
|
51
|
+
"format": ["PascalCase"]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
});
|