@robot-inventor/oxlint-config 0.2.0 → 0.3.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 +6 -2
- package/dist/base-rules.js +12 -2
- package/dist/index.d.ts +36 -12
- package/package.json +7 -7
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";
|
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",
|
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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.7",
|
|
43
43
|
"typescript": "^7.0.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@next/eslint-plugin-next": "^16.3.
|
|
46
|
+
"@next/eslint-plugin-next": "^16.3.5",
|
|
47
47
|
"eslint": "^10.10.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.
|
|
51
|
+
"eslint-plugin-jsdoc": "^64.5.2",
|
|
52
|
+
"oxlint": "^1.83.0",
|
|
53
|
+
"oxlint-plugin-react-doctor": "^0.9.14",
|
|
54
54
|
"oxlint-tsgolint": "^7.0.2001"
|
|
55
55
|
}
|
|
56
56
|
}
|