@coderwyd/eslint-config 2.0.0 → 2.0.2
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +4 -21
- package/dist/index.js +4 -21
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "2.0.
|
|
49
|
+
var version = "2.0.2";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/ni": "^0.21.12",
|
|
52
52
|
"@types/eslint": "^8.56.0",
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -159,7 +159,6 @@ async function imports() {
|
|
|
159
159
|
"error",
|
|
160
160
|
{ considerComments: true, count: 1 }
|
|
161
161
|
],
|
|
162
|
-
"import/no-default-export": "error",
|
|
163
162
|
"import/no-duplicates": "error",
|
|
164
163
|
"import/no-mutable-exports": "error",
|
|
165
164
|
"import/no-named-default": "error",
|
|
@@ -184,26 +183,9 @@ async function imports() {
|
|
|
184
183
|
]
|
|
185
184
|
}
|
|
186
185
|
},
|
|
187
|
-
{
|
|
188
|
-
files: [
|
|
189
|
-
`**/*config*.${GLOB_SRC_EXT}`,
|
|
190
|
-
`**/views/${GLOB_SRC}`,
|
|
191
|
-
`**/pages/${GLOB_SRC}`,
|
|
192
|
-
`**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
|
|
193
|
-
"**/*.d.ts",
|
|
194
|
-
`${GLOB_MARKDOWN}/**`,
|
|
195
|
-
"**/.prettierrc*"
|
|
196
|
-
],
|
|
197
|
-
plugins: {
|
|
198
|
-
import: pluginImport
|
|
199
|
-
},
|
|
200
|
-
rules: {
|
|
201
|
-
"import/no-default-export": "off"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
186
|
{
|
|
205
187
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
206
|
-
name: "
|
|
188
|
+
name: "coderwyd:imports:bin",
|
|
207
189
|
rules: {
|
|
208
190
|
"antfu/no-import-dist": "off",
|
|
209
191
|
"antfu/no-import-node-modules-by-path": "off"
|
|
@@ -902,9 +884,10 @@ async function prettier(rules) {
|
|
|
902
884
|
},
|
|
903
885
|
rules: {
|
|
904
886
|
...eslintRules,
|
|
887
|
+
"prettier/prettier": ["warn", pRules],
|
|
888
|
+
// eslint-disable-next-line perfectionist/sort-objects
|
|
905
889
|
"arrow-body-style": "off",
|
|
906
|
-
"prefer-arrow-callback": "off"
|
|
907
|
-
"prettier/prettier": ["warn", pRules]
|
|
890
|
+
"prefer-arrow-callback": "off"
|
|
908
891
|
}
|
|
909
892
|
}
|
|
910
893
|
];
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,6 @@ async function imports() {
|
|
|
125
125
|
"error",
|
|
126
126
|
{ considerComments: true, count: 1 }
|
|
127
127
|
],
|
|
128
|
-
"import/no-default-export": "error",
|
|
129
128
|
"import/no-duplicates": "error",
|
|
130
129
|
"import/no-mutable-exports": "error",
|
|
131
130
|
"import/no-named-default": "error",
|
|
@@ -150,26 +149,9 @@ async function imports() {
|
|
|
150
149
|
]
|
|
151
150
|
}
|
|
152
151
|
},
|
|
153
|
-
{
|
|
154
|
-
files: [
|
|
155
|
-
`**/*config*.${GLOB_SRC_EXT}`,
|
|
156
|
-
`**/views/${GLOB_SRC}`,
|
|
157
|
-
`**/pages/${GLOB_SRC}`,
|
|
158
|
-
`**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
|
|
159
|
-
"**/*.d.ts",
|
|
160
|
-
`${GLOB_MARKDOWN}/**`,
|
|
161
|
-
"**/.prettierrc*"
|
|
162
|
-
],
|
|
163
|
-
plugins: {
|
|
164
|
-
import: pluginImport
|
|
165
|
-
},
|
|
166
|
-
rules: {
|
|
167
|
-
"import/no-default-export": "off"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
152
|
{
|
|
171
153
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
172
|
-
name: "
|
|
154
|
+
name: "coderwyd:imports:bin",
|
|
173
155
|
rules: {
|
|
174
156
|
"antfu/no-import-dist": "off",
|
|
175
157
|
"antfu/no-import-node-modules-by-path": "off"
|
|
@@ -868,9 +850,10 @@ async function prettier(rules) {
|
|
|
868
850
|
},
|
|
869
851
|
rules: {
|
|
870
852
|
...eslintRules,
|
|
853
|
+
"prettier/prettier": ["warn", pRules],
|
|
854
|
+
// eslint-disable-next-line perfectionist/sort-objects
|
|
871
855
|
"arrow-body-style": "off",
|
|
872
|
-
"prefer-arrow-callback": "off"
|
|
873
|
-
"prettier/prettier": ["warn", pRules]
|
|
856
|
+
"prefer-arrow-callback": "off"
|
|
874
857
|
}
|
|
875
858
|
}
|
|
876
859
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"packageManager": "pnpm@8.13.1",
|
|
6
6
|
"description": "Donny's ESLint config",
|
|
7
7
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@antfu/eslint-define-config": "1.23.0-2",
|
|
57
57
|
"@antfu/install-pkg": "^0.3.1",
|
|
58
|
-
"@eslint-types/jsdoc": "46.9.
|
|
58
|
+
"@eslint-types/jsdoc": "46.9.1",
|
|
59
59
|
"@eslint-types/typescript-eslint": "^6.16.0",
|
|
60
60
|
"@eslint-types/unicorn": "^50.0.1",
|
|
61
61
|
"@toml-tools/parser": "^1.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-plugin-i": "^2.29.1",
|
|
69
69
|
"eslint-plugin-jsdoc": "^46.9.1",
|
|
70
70
|
"eslint-plugin-jsonc": "^2.11.2",
|
|
71
|
-
"eslint-plugin-n": "^16.
|
|
71
|
+
"eslint-plugin-n": "^16.6.0",
|
|
72
72
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
73
73
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
74
74
|
"eslint-plugin-prettier": "^5.1.2",
|