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 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 are based on type information.
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
@@ -60,6 +60,12 @@ module.exports = {
60
60
  "exceptAfterSingleLine": true
61
61
  }],
62
62
 
63
+ "max-len": ["warn", {
64
+ "code": 120,
65
+ "tabWidth": 2,
66
+ "ignoreComments": true
67
+ }],
68
+
63
69
  "new-cap": "error",
64
70
  "new-parens": "error",
65
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-aether",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "A custom code style for ESLint.",
5
5
  "homepage": "https://github.com/vanruesc/eslint-config-aether",
6
6
  "main": "index.js",
@@ -1,10 +1,35 @@
1
- module.exports = require("./typescript.js");
1
+ module.exports = {
2
2
 
3
- Object.assign(module.exports, {
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
- "plugins": ["@typescript-eslint"],
4
- "parser": "@typescript-eslint/parser",
5
-
6
- "parserOptions": {
7
- "project": [
8
- "tsconfig.json"
9
- ]
10
- },
11
-
12
- "extends": [
13
- "aether/default",
14
- "plugin:@typescript-eslint/recommended",
15
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
16
- ],
17
-
18
- "rules": {
19
-
20
- "indent": "off",
21
- "camelcase": "off",
22
- "no-undef": "off",
23
- "no-unused-vars": "off",
24
-
25
- "@typescript-eslint/indent": ["error", "tab", {
26
- "SwitchCase": 1
27
- }],
28
-
29
- "@typescript-eslint/naming-convention": ["error",
30
- {
31
- "selector": "default",
32
- "format": ["camelCase"]
33
- },
34
- {
35
- "selector": "variable",
36
- "format": ["camelCase", "UPPER_CASE"]
37
- },
38
- {
39
- "selector": "parameter",
40
- "format": ["camelCase"],
41
- "leadingUnderscore": "allow"
42
- },
43
- {
44
- "selector": "memberLike",
45
- "modifiers": ["private"],
46
- "format": ["camelCase"],
47
- "leadingUnderscore": "forbid"
48
- },
49
- {
50
- "selector": ["objectLiteralProperty", "objectLiteralMethod"],
51
- "format": null
52
- },
53
- {
54
- "selector": "enumMember",
55
- "format": ["UPPER_CASE"]
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
+ });