@meteorlxy/eslint-config 5.0.1 → 6.1.0
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 +16 -7
- package/dist/index.d.cts +10 -2
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +16 -7
- package/package.json +11 -10
- package/LICENSE +0 -22
package/dist/index.cjs
CHANGED
|
@@ -515,6 +515,7 @@ const builtinRules = {
|
|
|
515
515
|
"no-ternary": "off",
|
|
516
516
|
"no-this-before-super": "error",
|
|
517
517
|
"no-throw-literal": "error",
|
|
518
|
+
"no-unassigned-vars": "error",
|
|
518
519
|
"no-undef": "error",
|
|
519
520
|
"no-undef-init": "error",
|
|
520
521
|
"no-undefined": "off",
|
|
@@ -825,7 +826,7 @@ const importsRules = {
|
|
|
825
826
|
"import/no-nodejs-modules": "off",
|
|
826
827
|
"import/no-relative-packages": "error",
|
|
827
828
|
"import/no-relative-parent-imports": "off",
|
|
828
|
-
"import/no-rename-default": "
|
|
829
|
+
"import/no-rename-default": "off",
|
|
829
830
|
"import/no-restricted-paths": "off",
|
|
830
831
|
"import/no-self-import": "error",
|
|
831
832
|
"import/no-unassigned-import": "off",
|
|
@@ -1390,7 +1391,14 @@ const typescriptRules = {
|
|
|
1390
1391
|
// deprecated
|
|
1391
1392
|
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
|
|
1392
1393
|
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1393
|
-
"@typescript-eslint/no-unnecessary-type-assertion":
|
|
1394
|
+
"@typescript-eslint/no-unnecessary-type-assertion": [
|
|
1395
|
+
"warn",
|
|
1396
|
+
{
|
|
1397
|
+
checkLiteralConstAssertions: false,
|
|
1398
|
+
typesToIgnore: []
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"@typescript-eslint/no-unnecessary-type-conversion": "warn",
|
|
1394
1402
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
1395
1403
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
1396
1404
|
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
@@ -1570,6 +1578,12 @@ const vueRules = {
|
|
|
1570
1578
|
}
|
|
1571
1579
|
],
|
|
1572
1580
|
"vue/define-props-declaration": ["error", "type-based"],
|
|
1581
|
+
"vue/define-props-destructuring": [
|
|
1582
|
+
"error",
|
|
1583
|
+
{
|
|
1584
|
+
destructure: "always"
|
|
1585
|
+
}
|
|
1586
|
+
],
|
|
1573
1587
|
"vue/dot-notation": "off",
|
|
1574
1588
|
// builtin extension - checked by typescript?
|
|
1575
1589
|
"vue/enforce-style-attribute": [
|
|
@@ -2038,20 +2052,15 @@ const vue = async ({
|
|
|
2038
2052
|
}
|
|
2039
2053
|
},
|
|
2040
2054
|
processor: vuePlugin.processors[".vue"],
|
|
2041
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2042
2055
|
rules: {
|
|
2043
2056
|
...vuePlugin.configs.base.rules,
|
|
2044
|
-
// @ts-expect-error - types are not correct
|
|
2045
2057
|
...vuePlugin.configs.essential.rules,
|
|
2046
|
-
// @ts-expect-error - types are not correct
|
|
2047
2058
|
...vuePlugin.configs["strongly-recommended"].rules,
|
|
2048
|
-
// @ts-expect-error - types are not correct
|
|
2049
2059
|
...vuePlugin.configs.recommended.rules,
|
|
2050
2060
|
...vuePlugin.configs["no-layout-rules"].rules,
|
|
2051
2061
|
...vueRules,
|
|
2052
2062
|
...overrides
|
|
2053
2063
|
}
|
|
2054
|
-
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2055
2064
|
}
|
|
2056
2065
|
];
|
|
2057
2066
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -415,6 +415,7 @@ declare const builtinRules: {
|
|
|
415
415
|
'no-ternary': "off";
|
|
416
416
|
'no-this-before-super': "error";
|
|
417
417
|
'no-throw-literal': "error";
|
|
418
|
+
'no-unassigned-vars': "error";
|
|
418
419
|
'no-undef': "error";
|
|
419
420
|
'no-undef-init': "error";
|
|
420
421
|
'no-undefined': "off";
|
|
@@ -623,7 +624,7 @@ declare const importsRules: {
|
|
|
623
624
|
'import/no-nodejs-modules': "off";
|
|
624
625
|
'import/no-relative-packages': "error";
|
|
625
626
|
'import/no-relative-parent-imports': "off";
|
|
626
|
-
'import/no-rename-default': "
|
|
627
|
+
'import/no-rename-default': "off";
|
|
627
628
|
'import/no-restricted-paths': "off";
|
|
628
629
|
'import/no-self-import': "error";
|
|
629
630
|
'import/no-unassigned-import': "off";
|
|
@@ -1104,7 +1105,11 @@ declare const typescriptRules: {
|
|
|
1104
1105
|
'@typescript-eslint/no-type-alias': "off";
|
|
1105
1106
|
'@typescript-eslint/no-unnecessary-parameter-property-assignment': "error";
|
|
1106
1107
|
'@typescript-eslint/no-unnecessary-qualifier': "off";
|
|
1107
|
-
'@typescript-eslint/no-unnecessary-type-assertion': "warn"
|
|
1108
|
+
'@typescript-eslint/no-unnecessary-type-assertion': ["warn", {
|
|
1109
|
+
checkLiteralConstAssertions: boolean;
|
|
1110
|
+
typesToIgnore: never[];
|
|
1111
|
+
}];
|
|
1112
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "warn";
|
|
1108
1113
|
'@typescript-eslint/no-unsafe-argument': "warn";
|
|
1109
1114
|
'@typescript-eslint/no-unsafe-assignment': "warn";
|
|
1110
1115
|
'@typescript-eslint/no-unsafe-member-access': "warn";
|
|
@@ -1233,6 +1238,9 @@ declare const vueRules: {
|
|
|
1233
1238
|
order: string[];
|
|
1234
1239
|
}];
|
|
1235
1240
|
'vue/define-props-declaration': ["error", string];
|
|
1241
|
+
'vue/define-props-destructuring': ["error", {
|
|
1242
|
+
destructure: string;
|
|
1243
|
+
}];
|
|
1236
1244
|
'vue/dot-notation': "off";
|
|
1237
1245
|
'vue/enforce-style-attribute': ["off", {
|
|
1238
1246
|
allow: string[];
|
package/dist/index.d.mts
CHANGED
|
@@ -415,6 +415,7 @@ declare const builtinRules: {
|
|
|
415
415
|
'no-ternary': "off";
|
|
416
416
|
'no-this-before-super': "error";
|
|
417
417
|
'no-throw-literal': "error";
|
|
418
|
+
'no-unassigned-vars': "error";
|
|
418
419
|
'no-undef': "error";
|
|
419
420
|
'no-undef-init': "error";
|
|
420
421
|
'no-undefined': "off";
|
|
@@ -623,7 +624,7 @@ declare const importsRules: {
|
|
|
623
624
|
'import/no-nodejs-modules': "off";
|
|
624
625
|
'import/no-relative-packages': "error";
|
|
625
626
|
'import/no-relative-parent-imports': "off";
|
|
626
|
-
'import/no-rename-default': "
|
|
627
|
+
'import/no-rename-default': "off";
|
|
627
628
|
'import/no-restricted-paths': "off";
|
|
628
629
|
'import/no-self-import': "error";
|
|
629
630
|
'import/no-unassigned-import': "off";
|
|
@@ -1104,7 +1105,11 @@ declare const typescriptRules: {
|
|
|
1104
1105
|
'@typescript-eslint/no-type-alias': "off";
|
|
1105
1106
|
'@typescript-eslint/no-unnecessary-parameter-property-assignment': "error";
|
|
1106
1107
|
'@typescript-eslint/no-unnecessary-qualifier': "off";
|
|
1107
|
-
'@typescript-eslint/no-unnecessary-type-assertion': "warn"
|
|
1108
|
+
'@typescript-eslint/no-unnecessary-type-assertion': ["warn", {
|
|
1109
|
+
checkLiteralConstAssertions: boolean;
|
|
1110
|
+
typesToIgnore: never[];
|
|
1111
|
+
}];
|
|
1112
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "warn";
|
|
1108
1113
|
'@typescript-eslint/no-unsafe-argument': "warn";
|
|
1109
1114
|
'@typescript-eslint/no-unsafe-assignment': "warn";
|
|
1110
1115
|
'@typescript-eslint/no-unsafe-member-access': "warn";
|
|
@@ -1233,6 +1238,9 @@ declare const vueRules: {
|
|
|
1233
1238
|
order: string[];
|
|
1234
1239
|
}];
|
|
1235
1240
|
'vue/define-props-declaration': ["error", string];
|
|
1241
|
+
'vue/define-props-destructuring': ["error", {
|
|
1242
|
+
destructure: string;
|
|
1243
|
+
}];
|
|
1236
1244
|
'vue/dot-notation': "off";
|
|
1237
1245
|
'vue/enforce-style-attribute': ["off", {
|
|
1238
1246
|
allow: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -415,6 +415,7 @@ declare const builtinRules: {
|
|
|
415
415
|
'no-ternary': "off";
|
|
416
416
|
'no-this-before-super': "error";
|
|
417
417
|
'no-throw-literal': "error";
|
|
418
|
+
'no-unassigned-vars': "error";
|
|
418
419
|
'no-undef': "error";
|
|
419
420
|
'no-undef-init': "error";
|
|
420
421
|
'no-undefined': "off";
|
|
@@ -623,7 +624,7 @@ declare const importsRules: {
|
|
|
623
624
|
'import/no-nodejs-modules': "off";
|
|
624
625
|
'import/no-relative-packages': "error";
|
|
625
626
|
'import/no-relative-parent-imports': "off";
|
|
626
|
-
'import/no-rename-default': "
|
|
627
|
+
'import/no-rename-default': "off";
|
|
627
628
|
'import/no-restricted-paths': "off";
|
|
628
629
|
'import/no-self-import': "error";
|
|
629
630
|
'import/no-unassigned-import': "off";
|
|
@@ -1104,7 +1105,11 @@ declare const typescriptRules: {
|
|
|
1104
1105
|
'@typescript-eslint/no-type-alias': "off";
|
|
1105
1106
|
'@typescript-eslint/no-unnecessary-parameter-property-assignment': "error";
|
|
1106
1107
|
'@typescript-eslint/no-unnecessary-qualifier': "off";
|
|
1107
|
-
'@typescript-eslint/no-unnecessary-type-assertion': "warn"
|
|
1108
|
+
'@typescript-eslint/no-unnecessary-type-assertion': ["warn", {
|
|
1109
|
+
checkLiteralConstAssertions: boolean;
|
|
1110
|
+
typesToIgnore: never[];
|
|
1111
|
+
}];
|
|
1112
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "warn";
|
|
1108
1113
|
'@typescript-eslint/no-unsafe-argument': "warn";
|
|
1109
1114
|
'@typescript-eslint/no-unsafe-assignment': "warn";
|
|
1110
1115
|
'@typescript-eslint/no-unsafe-member-access': "warn";
|
|
@@ -1233,6 +1238,9 @@ declare const vueRules: {
|
|
|
1233
1238
|
order: string[];
|
|
1234
1239
|
}];
|
|
1235
1240
|
'vue/define-props-declaration': ["error", string];
|
|
1241
|
+
'vue/define-props-destructuring': ["error", {
|
|
1242
|
+
destructure: string;
|
|
1243
|
+
}];
|
|
1236
1244
|
'vue/dot-notation': "off";
|
|
1237
1245
|
'vue/enforce-style-attribute': ["off", {
|
|
1238
1246
|
allow: string[];
|
package/dist/index.mjs
CHANGED
|
@@ -503,6 +503,7 @@ const builtinRules = {
|
|
|
503
503
|
"no-ternary": "off",
|
|
504
504
|
"no-this-before-super": "error",
|
|
505
505
|
"no-throw-literal": "error",
|
|
506
|
+
"no-unassigned-vars": "error",
|
|
506
507
|
"no-undef": "error",
|
|
507
508
|
"no-undef-init": "error",
|
|
508
509
|
"no-undefined": "off",
|
|
@@ -813,7 +814,7 @@ const importsRules = {
|
|
|
813
814
|
"import/no-nodejs-modules": "off",
|
|
814
815
|
"import/no-relative-packages": "error",
|
|
815
816
|
"import/no-relative-parent-imports": "off",
|
|
816
|
-
"import/no-rename-default": "
|
|
817
|
+
"import/no-rename-default": "off",
|
|
817
818
|
"import/no-restricted-paths": "off",
|
|
818
819
|
"import/no-self-import": "error",
|
|
819
820
|
"import/no-unassigned-import": "off",
|
|
@@ -1378,7 +1379,14 @@ const typescriptRules = {
|
|
|
1378
1379
|
// deprecated
|
|
1379
1380
|
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
|
|
1380
1381
|
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1381
|
-
"@typescript-eslint/no-unnecessary-type-assertion":
|
|
1382
|
+
"@typescript-eslint/no-unnecessary-type-assertion": [
|
|
1383
|
+
"warn",
|
|
1384
|
+
{
|
|
1385
|
+
checkLiteralConstAssertions: false,
|
|
1386
|
+
typesToIgnore: []
|
|
1387
|
+
}
|
|
1388
|
+
],
|
|
1389
|
+
"@typescript-eslint/no-unnecessary-type-conversion": "warn",
|
|
1382
1390
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
1383
1391
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
1384
1392
|
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
@@ -1558,6 +1566,12 @@ const vueRules = {
|
|
|
1558
1566
|
}
|
|
1559
1567
|
],
|
|
1560
1568
|
"vue/define-props-declaration": ["error", "type-based"],
|
|
1569
|
+
"vue/define-props-destructuring": [
|
|
1570
|
+
"error",
|
|
1571
|
+
{
|
|
1572
|
+
destructure: "always"
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1561
1575
|
"vue/dot-notation": "off",
|
|
1562
1576
|
// builtin extension - checked by typescript?
|
|
1563
1577
|
"vue/enforce-style-attribute": [
|
|
@@ -2026,20 +2040,15 @@ const vue = async ({
|
|
|
2026
2040
|
}
|
|
2027
2041
|
},
|
|
2028
2042
|
processor: vuePlugin.processors[".vue"],
|
|
2029
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2030
2043
|
rules: {
|
|
2031
2044
|
...vuePlugin.configs.base.rules,
|
|
2032
|
-
// @ts-expect-error - types are not correct
|
|
2033
2045
|
...vuePlugin.configs.essential.rules,
|
|
2034
|
-
// @ts-expect-error - types are not correct
|
|
2035
2046
|
...vuePlugin.configs["strongly-recommended"].rules,
|
|
2036
|
-
// @ts-expect-error - types are not correct
|
|
2037
2047
|
...vuePlugin.configs.recommended.rules,
|
|
2038
2048
|
...vuePlugin.configs["no-layout-rules"].rules,
|
|
2039
2049
|
...vueRules,
|
|
2040
2050
|
...overrides
|
|
2041
2051
|
}
|
|
2042
|
-
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2043
2052
|
}
|
|
2044
2053
|
];
|
|
2045
2054
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -32,25 +32,26 @@
|
|
|
32
32
|
"clean": "rimraf ./dist"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
37
|
-
"@typescript-eslint/utils": "^8.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
36
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
37
|
+
"@typescript-eslint/utils": "^8.33.1",
|
|
38
38
|
"confusing-browser-globals": "^1.0.11",
|
|
39
39
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
40
|
-
"eslint-config-prettier": "^10.1.
|
|
40
|
+
"eslint-config-prettier": "^10.1.5",
|
|
41
41
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
42
|
-
"eslint-plugin-import-x": "^4.
|
|
42
|
+
"eslint-plugin-import-x": "^4.15.1",
|
|
43
43
|
"eslint-plugin-markdown": "^5.1.0",
|
|
44
|
-
"globals": "^16.
|
|
44
|
+
"globals": "^16.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
48
48
|
"@types/eslint": "^9.6.1",
|
|
49
|
-
"eslint": "^9.
|
|
49
|
+
"eslint": "^9.28.0",
|
|
50
50
|
"eslint-plugin-react": "^7.37.5",
|
|
51
51
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
52
52
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
53
|
-
"eslint-plugin-vue": "^10.
|
|
53
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
54
|
+
"unbuild": "^3.5.0",
|
|
54
55
|
"vue-eslint-parser": "^10.1.3"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"publishConfig": {
|
|
81
82
|
"access": "public"
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "3f9d9b87e49e46f9789b876deed3806c888edc98"
|
|
84
85
|
}
|
package/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020-present meteorlxy
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|