@robot-inventor/oxlint-config 0.2.0 → 0.4.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/base-rules.d.ts +7 -3
- package/dist/base-rules.js +13 -3
- package/dist/index.d.ts +42 -18
- package/package.json +9 -9
package/dist/base-rules.d.ts
CHANGED
|
@@ -29,10 +29,14 @@ declare const baseRules: {
|
|
|
29
29
|
readonly "max-classes-per-file": "error";
|
|
30
30
|
readonly "max-depth": "error";
|
|
31
31
|
readonly "max-lines": "error";
|
|
32
|
-
readonly "max-lines-per-function": "error"
|
|
32
|
+
readonly "max-lines-per-function": ["error", {
|
|
33
|
+
readonly max: 100;
|
|
34
|
+
}];
|
|
33
35
|
readonly "max-nested-callbacks": "error";
|
|
34
36
|
readonly "max-params": "error";
|
|
35
|
-
readonly "max-statements": "error"
|
|
37
|
+
readonly "max-statements": ["error", {
|
|
38
|
+
readonly max: 20;
|
|
39
|
+
}];
|
|
36
40
|
readonly "new-cap": "error";
|
|
37
41
|
readonly "no-alert": "error";
|
|
38
42
|
readonly "no-array-constructor": "error";
|
|
@@ -217,7 +221,7 @@ declare const baseRules: {
|
|
|
217
221
|
readonly "import/max-dependencies": "error";
|
|
218
222
|
readonly "import/newline-after-import": "error";
|
|
219
223
|
readonly "import/no-unassigned-import": "error";
|
|
220
|
-
readonly "typescript/consistent-return": "
|
|
224
|
+
readonly "typescript/consistent-return": "off";
|
|
221
225
|
readonly "typescript/dot-notation": "error";
|
|
222
226
|
readonly "typescript/await-thenable": "error";
|
|
223
227
|
readonly "typescript/ban-ts-comment": ["error", {
|
package/dist/base-rules.js
CHANGED
|
@@ -32,10 +32,20 @@ const migratedRules = {
|
|
|
32
32
|
"max-classes-per-file": "error",
|
|
33
33
|
"max-depth": "error",
|
|
34
34
|
"max-lines": "error",
|
|
35
|
-
"max-lines-per-function":
|
|
35
|
+
"max-lines-per-function": [
|
|
36
|
+
"error",
|
|
37
|
+
{
|
|
38
|
+
max: 100
|
|
39
|
+
}
|
|
40
|
+
],
|
|
36
41
|
"max-nested-callbacks": "error",
|
|
37
42
|
"max-params": "error",
|
|
38
|
-
"max-statements":
|
|
43
|
+
"max-statements": [
|
|
44
|
+
"error",
|
|
45
|
+
{
|
|
46
|
+
max: 20
|
|
47
|
+
}
|
|
48
|
+
],
|
|
39
49
|
"new-cap": "error",
|
|
40
50
|
"no-alert": "error",
|
|
41
51
|
"no-array-constructor": "error",
|
|
@@ -229,7 +239,7 @@ const migratedRules = {
|
|
|
229
239
|
"import/max-dependencies": "error",
|
|
230
240
|
"import/newline-after-import": "error",
|
|
231
241
|
"import/no-unassigned-import": "error",
|
|
232
|
-
"typescript/consistent-return": "
|
|
242
|
+
"typescript/consistent-return": "off",
|
|
233
243
|
"typescript/dot-notation": "error",
|
|
234
244
|
"typescript/await-thenable": "error",
|
|
235
245
|
"typescript/ban-ts-comment": [
|
package/dist/index.d.ts
CHANGED
|
@@ -42,10 +42,14 @@ declare const oxlintConfigNoJSDoc: {
|
|
|
42
42
|
"max-classes-per-file": "error";
|
|
43
43
|
"max-depth": "error";
|
|
44
44
|
"max-lines": "error";
|
|
45
|
-
"max-lines-per-function": "error"
|
|
45
|
+
"max-lines-per-function": ["error", {
|
|
46
|
+
readonly max: 100;
|
|
47
|
+
}];
|
|
46
48
|
"max-nested-callbacks": "error";
|
|
47
49
|
"max-params": "error";
|
|
48
|
-
"max-statements": "error"
|
|
50
|
+
"max-statements": ["error", {
|
|
51
|
+
readonly max: 20;
|
|
52
|
+
}];
|
|
49
53
|
"new-cap": "error";
|
|
50
54
|
"no-alert": "error";
|
|
51
55
|
"no-array-constructor": "error";
|
|
@@ -230,7 +234,7 @@ declare const oxlintConfigNoJSDoc: {
|
|
|
230
234
|
"import/max-dependencies": "error";
|
|
231
235
|
"import/newline-after-import": "error";
|
|
232
236
|
"import/no-unassigned-import": "error";
|
|
233
|
-
"typescript/consistent-return": "
|
|
237
|
+
"typescript/consistent-return": "off";
|
|
234
238
|
"typescript/dot-notation": "error";
|
|
235
239
|
"typescript/await-thenable": "error";
|
|
236
240
|
"typescript/ban-ts-comment": ["error", {
|
|
@@ -482,10 +486,14 @@ declare const oxlintConfig: {
|
|
|
482
486
|
"max-classes-per-file": "error";
|
|
483
487
|
"max-depth": "error";
|
|
484
488
|
"max-lines": "error";
|
|
485
|
-
"max-lines-per-function": "error"
|
|
489
|
+
"max-lines-per-function": ["error", {
|
|
490
|
+
readonly max: 100;
|
|
491
|
+
}];
|
|
486
492
|
"max-nested-callbacks": "error";
|
|
487
493
|
"max-params": "error";
|
|
488
|
-
"max-statements": "error"
|
|
494
|
+
"max-statements": ["error", {
|
|
495
|
+
readonly max: 20;
|
|
496
|
+
}];
|
|
489
497
|
"new-cap": "error";
|
|
490
498
|
"no-alert": "error";
|
|
491
499
|
"no-array-constructor": "error";
|
|
@@ -670,7 +678,7 @@ declare const oxlintConfig: {
|
|
|
670
678
|
"import/max-dependencies": "error";
|
|
671
679
|
"import/newline-after-import": "error";
|
|
672
680
|
"import/no-unassigned-import": "error";
|
|
673
|
-
"typescript/consistent-return": "
|
|
681
|
+
"typescript/consistent-return": "off";
|
|
674
682
|
"typescript/dot-notation": "error";
|
|
675
683
|
"typescript/await-thenable": "error";
|
|
676
684
|
"typescript/ban-ts-comment": ["error", {
|
|
@@ -941,10 +949,14 @@ declare const oxlintReactConfigNoJSDoc: {
|
|
|
941
949
|
"max-classes-per-file": "error";
|
|
942
950
|
"max-depth": "error";
|
|
943
951
|
"max-lines": "error";
|
|
944
|
-
"max-lines-per-function": "error"
|
|
952
|
+
"max-lines-per-function": ["error", {
|
|
953
|
+
readonly max: 100;
|
|
954
|
+
}];
|
|
945
955
|
"max-nested-callbacks": "error";
|
|
946
956
|
"max-params": "error";
|
|
947
|
-
"max-statements": "error"
|
|
957
|
+
"max-statements": ["error", {
|
|
958
|
+
readonly max: 20;
|
|
959
|
+
}];
|
|
948
960
|
"new-cap": "error";
|
|
949
961
|
"no-alert": "error";
|
|
950
962
|
"no-array-constructor": "error";
|
|
@@ -1129,7 +1141,7 @@ declare const oxlintReactConfigNoJSDoc: {
|
|
|
1129
1141
|
"import/max-dependencies": "error";
|
|
1130
1142
|
"import/newline-after-import": "error";
|
|
1131
1143
|
"import/no-unassigned-import": "error";
|
|
1132
|
-
"typescript/consistent-return": "
|
|
1144
|
+
"typescript/consistent-return": "off";
|
|
1133
1145
|
"typescript/dot-notation": "error";
|
|
1134
1146
|
"typescript/await-thenable": "error";
|
|
1135
1147
|
"typescript/ban-ts-comment": ["error", {
|
|
@@ -1455,10 +1467,14 @@ declare const oxlintReactConfig: {
|
|
|
1455
1467
|
"max-classes-per-file": "error";
|
|
1456
1468
|
"max-depth": "error";
|
|
1457
1469
|
"max-lines": "error";
|
|
1458
|
-
"max-lines-per-function": "error"
|
|
1470
|
+
"max-lines-per-function": ["error", {
|
|
1471
|
+
readonly max: 100;
|
|
1472
|
+
}];
|
|
1459
1473
|
"max-nested-callbacks": "error";
|
|
1460
1474
|
"max-params": "error";
|
|
1461
|
-
"max-statements": "error"
|
|
1475
|
+
"max-statements": ["error", {
|
|
1476
|
+
readonly max: 20;
|
|
1477
|
+
}];
|
|
1462
1478
|
"new-cap": "error";
|
|
1463
1479
|
"no-alert": "error";
|
|
1464
1480
|
"no-array-constructor": "error";
|
|
@@ -1643,7 +1659,7 @@ declare const oxlintReactConfig: {
|
|
|
1643
1659
|
"import/max-dependencies": "error";
|
|
1644
1660
|
"import/newline-after-import": "error";
|
|
1645
1661
|
"import/no-unassigned-import": "error";
|
|
1646
|
-
"typescript/consistent-return": "
|
|
1662
|
+
"typescript/consistent-return": "off";
|
|
1647
1663
|
"typescript/dot-notation": "error";
|
|
1648
1664
|
"typescript/await-thenable": "error";
|
|
1649
1665
|
"typescript/ban-ts-comment": ["error", {
|
|
@@ -1988,10 +2004,14 @@ declare const oxlintNextConfigNoJSDoc: {
|
|
|
1988
2004
|
"max-classes-per-file": "error";
|
|
1989
2005
|
"max-depth": "error";
|
|
1990
2006
|
"max-lines": "error";
|
|
1991
|
-
"max-lines-per-function": "error"
|
|
2007
|
+
"max-lines-per-function": ["error", {
|
|
2008
|
+
readonly max: 100;
|
|
2009
|
+
}];
|
|
1992
2010
|
"max-nested-callbacks": "error";
|
|
1993
2011
|
"max-params": "error";
|
|
1994
|
-
"max-statements": "error"
|
|
2012
|
+
"max-statements": ["error", {
|
|
2013
|
+
readonly max: 20;
|
|
2014
|
+
}];
|
|
1995
2015
|
"new-cap": "error";
|
|
1996
2016
|
"no-alert": "error";
|
|
1997
2017
|
"no-array-constructor": "error";
|
|
@@ -2176,7 +2196,7 @@ declare const oxlintNextConfigNoJSDoc: {
|
|
|
2176
2196
|
"import/max-dependencies": "error";
|
|
2177
2197
|
"import/newline-after-import": "error";
|
|
2178
2198
|
"import/no-unassigned-import": "error";
|
|
2179
|
-
"typescript/consistent-return": "
|
|
2199
|
+
"typescript/consistent-return": "off";
|
|
2180
2200
|
"typescript/dot-notation": "error";
|
|
2181
2201
|
"typescript/await-thenable": "error";
|
|
2182
2202
|
"typescript/ban-ts-comment": ["error", {
|
|
@@ -2531,10 +2551,14 @@ declare const oxlintNextConfig: {
|
|
|
2531
2551
|
"max-classes-per-file": "error";
|
|
2532
2552
|
"max-depth": "error";
|
|
2533
2553
|
"max-lines": "error";
|
|
2534
|
-
"max-lines-per-function": "error"
|
|
2554
|
+
"max-lines-per-function": ["error", {
|
|
2555
|
+
readonly max: 100;
|
|
2556
|
+
}];
|
|
2535
2557
|
"max-nested-callbacks": "error";
|
|
2536
2558
|
"max-params": "error";
|
|
2537
|
-
"max-statements": "error"
|
|
2559
|
+
"max-statements": ["error", {
|
|
2560
|
+
readonly max: 20;
|
|
2561
|
+
}];
|
|
2538
2562
|
"new-cap": "error";
|
|
2539
2563
|
"no-alert": "error";
|
|
2540
2564
|
"no-array-constructor": "error";
|
|
@@ -2719,7 +2743,7 @@ declare const oxlintNextConfig: {
|
|
|
2719
2743
|
"import/max-dependencies": "error";
|
|
2720
2744
|
"import/newline-after-import": "error";
|
|
2721
2745
|
"import/no-unassigned-import": "error";
|
|
2722
|
-
"typescript/consistent-return": "
|
|
2746
|
+
"typescript/consistent-return": "off";
|
|
2723
2747
|
"typescript/dot-notation": "error";
|
|
2724
2748
|
"typescript/await-thenable": "error";
|
|
2725
2749
|
"typescript/ban-ts-comment": ["error", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "My Oxlint config preset",
|
|
5
5
|
"homepage": "https://github.com/Robot-Inventor/oxlint-config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@changesets/changelog-github": "^1.0.1",
|
|
40
|
-
"@changesets/cli": "^3.0.
|
|
40
|
+
"@changesets/cli": "^3.0.3",
|
|
41
41
|
"@robot-inventor/tsconfig-base": "^7.2.0",
|
|
42
|
-
"prettier": "^3.9.
|
|
42
|
+
"prettier": "^3.9.8",
|
|
43
43
|
"typescript": "^7.0.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@next/eslint-plugin-next": "^16.3.
|
|
47
|
-
"eslint": "^10.
|
|
46
|
+
"@next/eslint-plugin-next": "^16.3.5",
|
|
47
|
+
"eslint": "^10.11.0",
|
|
48
48
|
"eslint-import-resolver-node": "^0.4.0",
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
50
50
|
"eslint-plugin-import-x": "^4.17.1",
|
|
51
|
-
"eslint-plugin-jsdoc": "^64.
|
|
52
|
-
"oxlint": "^1.
|
|
53
|
-
"oxlint-plugin-react-doctor": "^0.9.
|
|
54
|
-
"oxlint-tsgolint": "^7.0.
|
|
51
|
+
"eslint-plugin-jsdoc": "^64.5.4",
|
|
52
|
+
"oxlint": "^1.83.0",
|
|
53
|
+
"oxlint-plugin-react-doctor": "^0.9.14",
|
|
54
|
+
"oxlint-tsgolint": "^7.0.2002"
|
|
55
55
|
}
|
|
56
56
|
}
|