eslint-config-aether 2.0.0 → 2.0.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/default.js +9 -5
- package/package.json +12 -2
- package/typescript.js +2 -7
package/default.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
2
|
import globals from "globals";
|
|
3
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
"files": [
|
|
6
7
|
"**/*.js",
|
|
7
8
|
"**/*.ts",
|
|
8
9
|
],
|
|
10
|
+
"plugins": {
|
|
11
|
+
"@stylistic": stylistic,
|
|
12
|
+
},
|
|
9
13
|
"languageOptions": {
|
|
10
14
|
"globals": {
|
|
11
15
|
...globals.browser,
|
|
@@ -33,9 +37,6 @@ export default {
|
|
|
33
37
|
"eol-last": ["warn", "always"],
|
|
34
38
|
"eqeqeq": "error",
|
|
35
39
|
"func-call-spacing": ["warn", "never"],
|
|
36
|
-
"indent": ["warn", "tab", {
|
|
37
|
-
"SwitchCase": 1
|
|
38
|
-
}],
|
|
39
40
|
"key-spacing": "warn",
|
|
40
41
|
"keyword-spacing": ["warn", {
|
|
41
42
|
"overrides": {
|
|
@@ -92,7 +93,6 @@ export default {
|
|
|
92
93
|
"allowSingleLineBlocks": true
|
|
93
94
|
}],
|
|
94
95
|
"quotes": ["warn", "double"],
|
|
95
|
-
"semi": ["warn", "always"],
|
|
96
96
|
"semi-spacing": "warn",
|
|
97
97
|
"space-before-blocks": ["warn", "always"],
|
|
98
98
|
"space-before-function-paren": ["warn", "never"],
|
|
@@ -101,6 +101,10 @@ export default {
|
|
|
101
101
|
"space-unary-ops": "warn",
|
|
102
102
|
"spaced-comment": ["warn", "always"],
|
|
103
103
|
"wrap-iife": "warn",
|
|
104
|
-
"yoda": ["warn", "never"]
|
|
104
|
+
"yoda": ["warn", "never"],
|
|
105
|
+
"@stylistic/indent": ["warn", "tab", {
|
|
106
|
+
"SwitchCase": 1
|
|
107
|
+
}],
|
|
108
|
+
'@stylistic/semi': ['error', 'always']
|
|
105
109
|
}
|
|
106
110
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-aether",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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",
|
|
@@ -39,7 +39,14 @@
|
|
|
39
39
|
"index.d.ts",
|
|
40
40
|
"typescript.js"
|
|
41
41
|
],
|
|
42
|
-
"scripts": {
|
|
42
|
+
"scripts": {
|
|
43
|
+
"debug:js": "eslint --debug -c index.js test/test.js",
|
|
44
|
+
"debug:ts": "eslint --debug -c index.js test/test.ts",
|
|
45
|
+
"test": "run-p test:*",
|
|
46
|
+
"test:js": "eslint -c index.js test/test.js",
|
|
47
|
+
"test:ts": "eslint -c index.js test/test.ts",
|
|
48
|
+
"prepublishOnly": "npm test"
|
|
49
|
+
},
|
|
43
50
|
"peerDependencies": {
|
|
44
51
|
"eslint": "9.x.x"
|
|
45
52
|
},
|
|
@@ -48,5 +55,8 @@
|
|
|
48
55
|
"@typescript-eslint/parser": "8.x.x",
|
|
49
56
|
"@stylistic/eslint-plugin": "2.x.x",
|
|
50
57
|
"globals": "15.x.x"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"npm-run-all": "4.x.x"
|
|
51
61
|
}
|
|
52
62
|
}
|
package/typescript.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import tsParser from "@typescript-eslint/parser";
|
|
2
2
|
import ts from "@typescript-eslint/eslint-plugin";
|
|
3
|
-
import stylistic from "@stylistic/eslint-plugin";
|
|
4
3
|
|
|
5
4
|
export default {
|
|
6
5
|
"files": [
|
|
7
6
|
"**/*.ts",
|
|
8
7
|
],
|
|
9
|
-
"plugins": {
|
|
10
|
-
"@typescript-eslint": ts
|
|
11
|
-
"@stylistic": stylistic,
|
|
8
|
+
"plugins": {
|
|
9
|
+
"@typescript-eslint": ts
|
|
12
10
|
},
|
|
13
11
|
"languageOptions": {
|
|
14
12
|
"parser": tsParser,
|
|
@@ -24,9 +22,6 @@ export default {
|
|
|
24
22
|
"no-undef": "off",
|
|
25
23
|
"no-underscore-dangle": "off",
|
|
26
24
|
"no-unused-vars": "off",
|
|
27
|
-
"@stylistic/indent": ["warn", "tab", {
|
|
28
|
-
"SwitchCase": 1
|
|
29
|
-
}],
|
|
30
25
|
"@typescript-eslint/no-empty-function": "off",
|
|
31
26
|
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
32
27
|
"vars": "all",
|