@jiakun-zhao/eslint-config 1.1.3 → 1.1.5
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/dist/index.cjs +11 -3
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,8 @@ const ignorePatterns = [
|
|
|
31
31
|
const index = {
|
|
32
32
|
plugins: [
|
|
33
33
|
"unicorn",
|
|
34
|
-
"unused-imports"
|
|
34
|
+
"unused-imports",
|
|
35
|
+
"antfu"
|
|
35
36
|
],
|
|
36
37
|
extends: [
|
|
37
38
|
"standard",
|
|
@@ -104,6 +105,7 @@ const index = {
|
|
|
104
105
|
],
|
|
105
106
|
rules: {
|
|
106
107
|
"@typescript-eslint/no-explicit-any": "off",
|
|
108
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
107
109
|
// newline
|
|
108
110
|
"array-bracket-newline": ["error", "consistent"],
|
|
109
111
|
"array-element-newline": ["error", "consistent"],
|
|
@@ -123,7 +125,11 @@ const index = {
|
|
|
123
125
|
"switch-colon-spacing": ["error", { before: false, after: true }],
|
|
124
126
|
"space-before-function-paren": ["error", "never"],
|
|
125
127
|
"arrow-spacing": ["error", { before: true, after: true }],
|
|
126
|
-
"@typescript-eslint/type-annotation-spacing": ["error", {
|
|
128
|
+
"@typescript-eslint/type-annotation-spacing": ["error", {
|
|
129
|
+
before: false,
|
|
130
|
+
after: true,
|
|
131
|
+
overrides: { arrow: { before: true, after: true } }
|
|
132
|
+
}],
|
|
127
133
|
"@typescript-eslint/space-before-blocks": ["error", "always"],
|
|
128
134
|
// quote
|
|
129
135
|
"quote-props": ["error", "consistent-as-needed"],
|
|
@@ -131,7 +137,9 @@ const index = {
|
|
|
131
137
|
"comma-dangle": ["error", "always-multiline"],
|
|
132
138
|
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
|
|
133
139
|
// unicorn
|
|
134
|
-
"unicorn/prefer-node-protocol": "error"
|
|
140
|
+
"unicorn/prefer-node-protocol": "error",
|
|
141
|
+
// antfu
|
|
142
|
+
"antfu/if-newline": "error"
|
|
135
143
|
}
|
|
136
144
|
};
|
|
137
145
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Jiakun's ESLint config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
21
21
|
"@typescript-eslint/parser": "^6.1.0",
|
|
22
22
|
"eslint-config-standard": "^17.1.0",
|
|
23
|
+
"eslint-plugin-antfu": "^0.39.8",
|
|
23
24
|
"eslint-plugin-import": "^2.27.5",
|
|
24
25
|
"eslint-plugin-n": "^16.0.1",
|
|
25
26
|
"eslint-plugin-promise": "^6.1.1",
|