@meteorlxy/eslint-config 3.0.1 → 3.1.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/dist/index.cjs +11 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +11 -7
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -870,13 +870,10 @@ const markdownShimRules = {
|
|
|
870
870
|
"no-unused-vars": "off",
|
|
871
871
|
"strict": "off",
|
|
872
872
|
"unicode-bom": "off",
|
|
873
|
-
// typescript-eslint rules
|
|
873
|
+
// typescript-eslint rules, should disable type checking
|
|
874
|
+
...tsPlugin__default.configs["disable-type-checked"].rules,
|
|
874
875
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
875
876
|
"@typescript-eslint/no-unused-vars": "off",
|
|
876
|
-
// typescript-eslint type-checking rules
|
|
877
|
-
...Object.fromEntries(
|
|
878
|
-
Object.entries(tsPlugin__default.rules).filter(([, rule]) => rule.meta.docs?.requiresTypeChecking).map(([name]) => [`@typescript-eslint/${name}`, "off"])
|
|
879
|
-
),
|
|
880
877
|
// import rules
|
|
881
878
|
"import/no-extraneous-dependencies": "off",
|
|
882
879
|
"import/no-unresolved": "off"
|
|
@@ -1260,7 +1257,8 @@ const typescriptRules = {
|
|
|
1260
1257
|
}
|
|
1261
1258
|
],
|
|
1262
1259
|
"@typescript-eslint/no-shadow": "error",
|
|
1263
|
-
"@typescript-eslint/no-throw-literal": "
|
|
1260
|
+
"@typescript-eslint/no-throw-literal": "off",
|
|
1261
|
+
// deprecated
|
|
1264
1262
|
"@typescript-eslint/no-unused-expressions": [
|
|
1265
1263
|
"error",
|
|
1266
1264
|
{
|
|
@@ -1335,6 +1333,7 @@ const typescriptRules = {
|
|
|
1335
1333
|
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
1336
1334
|
"@typescript-eslint/no-useless-empty-export": "off",
|
|
1337
1335
|
"@typescript-eslint/no-var-requires": ["error", { allow: [] }],
|
|
1336
|
+
"@typescript-eslint/only-throw-error": "error",
|
|
1338
1337
|
"@typescript-eslint/padding-line-between-statements": "off",
|
|
1339
1338
|
"@typescript-eslint/parameter-properties": [
|
|
1340
1339
|
"off",
|
|
@@ -1579,7 +1578,12 @@ const markdown = async ({
|
|
|
1579
1578
|
parserOptions: {
|
|
1580
1579
|
ecmaFeatures: {
|
|
1581
1580
|
impliedStrict: true
|
|
1582
|
-
}
|
|
1581
|
+
},
|
|
1582
|
+
// disable type-checking rules
|
|
1583
|
+
program: null,
|
|
1584
|
+
// used in typescript-eslint's disable-type-checking config, might be a typo program -> programs
|
|
1585
|
+
programs: null,
|
|
1586
|
+
project: false
|
|
1583
1587
|
}
|
|
1584
1588
|
},
|
|
1585
1589
|
rules: {
|
package/dist/index.d.cts
CHANGED
|
@@ -40,7 +40,7 @@ declare const react: ({ files, overrides, }?: EslintReactOptions) => Promise<Fla
|
|
|
40
40
|
interface EslintTypescriptOptions {
|
|
41
41
|
files?: FlatConfig.Config['files'];
|
|
42
42
|
overrides?: FlatConfig.Config['rules'];
|
|
43
|
-
tsconfigPath?: string;
|
|
43
|
+
tsconfigPath?: string[] | string;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Typescript configuration for eslint.
|
package/dist/index.d.mts
CHANGED
|
@@ -40,7 +40,7 @@ declare const react: ({ files, overrides, }?: EslintReactOptions) => Promise<Fla
|
|
|
40
40
|
interface EslintTypescriptOptions {
|
|
41
41
|
files?: FlatConfig.Config['files'];
|
|
42
42
|
overrides?: FlatConfig.Config['rules'];
|
|
43
|
-
tsconfigPath?: string;
|
|
43
|
+
tsconfigPath?: string[] | string;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Typescript configuration for eslint.
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare const react: ({ files, overrides, }?: EslintReactOptions) => Promise<Fla
|
|
|
40
40
|
interface EslintTypescriptOptions {
|
|
41
41
|
files?: FlatConfig.Config['files'];
|
|
42
42
|
overrides?: FlatConfig.Config['rules'];
|
|
43
|
-
tsconfigPath?: string;
|
|
43
|
+
tsconfigPath?: string[] | string;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Typescript configuration for eslint.
|
package/dist/index.mjs
CHANGED
|
@@ -858,13 +858,10 @@ const markdownShimRules = {
|
|
|
858
858
|
"no-unused-vars": "off",
|
|
859
859
|
"strict": "off",
|
|
860
860
|
"unicode-bom": "off",
|
|
861
|
-
// typescript-eslint rules
|
|
861
|
+
// typescript-eslint rules, should disable type checking
|
|
862
|
+
...tsPlugin.configs["disable-type-checked"].rules,
|
|
862
863
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
863
864
|
"@typescript-eslint/no-unused-vars": "off",
|
|
864
|
-
// typescript-eslint type-checking rules
|
|
865
|
-
...Object.fromEntries(
|
|
866
|
-
Object.entries(tsPlugin.rules).filter(([, rule]) => rule.meta.docs?.requiresTypeChecking).map(([name]) => [`@typescript-eslint/${name}`, "off"])
|
|
867
|
-
),
|
|
868
865
|
// import rules
|
|
869
866
|
"import/no-extraneous-dependencies": "off",
|
|
870
867
|
"import/no-unresolved": "off"
|
|
@@ -1248,7 +1245,8 @@ const typescriptRules = {
|
|
|
1248
1245
|
}
|
|
1249
1246
|
],
|
|
1250
1247
|
"@typescript-eslint/no-shadow": "error",
|
|
1251
|
-
"@typescript-eslint/no-throw-literal": "
|
|
1248
|
+
"@typescript-eslint/no-throw-literal": "off",
|
|
1249
|
+
// deprecated
|
|
1252
1250
|
"@typescript-eslint/no-unused-expressions": [
|
|
1253
1251
|
"error",
|
|
1254
1252
|
{
|
|
@@ -1323,6 +1321,7 @@ const typescriptRules = {
|
|
|
1323
1321
|
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
1324
1322
|
"@typescript-eslint/no-useless-empty-export": "off",
|
|
1325
1323
|
"@typescript-eslint/no-var-requires": ["error", { allow: [] }],
|
|
1324
|
+
"@typescript-eslint/only-throw-error": "error",
|
|
1326
1325
|
"@typescript-eslint/padding-line-between-statements": "off",
|
|
1327
1326
|
"@typescript-eslint/parameter-properties": [
|
|
1328
1327
|
"off",
|
|
@@ -1567,7 +1566,12 @@ const markdown = async ({
|
|
|
1567
1566
|
parserOptions: {
|
|
1568
1567
|
ecmaFeatures: {
|
|
1569
1568
|
impliedStrict: true
|
|
1570
|
-
}
|
|
1569
|
+
},
|
|
1570
|
+
// disable type-checking rules
|
|
1571
|
+
program: null,
|
|
1572
|
+
// used in typescript-eslint's disable-type-checking config, might be a typo program -> programs
|
|
1573
|
+
programs: null,
|
|
1574
|
+
project: false
|
|
1571
1575
|
}
|
|
1572
1576
|
},
|
|
1573
1577
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"clean": "rimraf ./dist"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
36
|
-
"@typescript-eslint/parser": "^7.
|
|
37
|
-
"@typescript-eslint/utils": "^7.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
36
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
37
|
+
"@typescript-eslint/utils": "^7.4.0",
|
|
38
38
|
"confusing-browser-globals": "^1.0.11",
|
|
39
39
|
"eslint-config-prettier": "^9.1.0",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-i": "^2.29.1",
|
|
42
42
|
"eslint-plugin-markdown": "^4.0.1",
|
|
43
|
-
"globals": "^
|
|
43
|
+
"globals": "^15.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "0c296eb01fca436f082f92a70a61c252f4c21272"
|
|
83
83
|
}
|