@robot-inventor/oxlint-config 0.1.0 → 0.2.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/README.md +2 -5
- package/dist/base-rules.d.ts +3 -1
- package/dist/base-rules.js +6 -1
- package/dist/index.d.ts +30 -6
- package/dist/index.js +4 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# oxlint-config
|
|
2
2
|
|
|
3
|
-
[@Robot-Inventor](https://github.com/Robot-Inventor/)'s
|
|
3
|
+
[@Robot-Inventor](https://github.com/Robot-Inventor/)'s Oxlint config presets.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -31,8 +31,7 @@ The `NoJSDoc` presets check existing JSDoc comments but do not require JSDoc on
|
|
|
31
31
|
|
|
32
32
|
## Overriding rules
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
that type-aware linting, settings, and JavaScript plugin registrations are retained:
|
|
34
|
+
Do not use a preset only through `extends: [preset]`; root-level options and settings would not be inherited.
|
|
36
35
|
|
|
37
36
|
```ts
|
|
38
37
|
import { oxlintNextConfigNoJSDoc } from "@robot-inventor/oxlint-config";
|
|
@@ -45,5 +44,3 @@ export default defineConfig({
|
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
```
|
|
48
|
-
|
|
49
|
-
Do not use a preset only through `extends: [preset]`; root-level options and settings would not be inherited.
|
package/dist/base-rules.d.ts
CHANGED
|
@@ -20,7 +20,9 @@ declare const baseRules: {
|
|
|
20
20
|
readonly "grouped-accessor-pairs": "error";
|
|
21
21
|
readonly "guard-for-in": "error";
|
|
22
22
|
readonly "id-denylist": "error";
|
|
23
|
-
readonly "id-length": "error"
|
|
23
|
+
readonly "id-length": ["error", {
|
|
24
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
25
|
+
}];
|
|
24
26
|
readonly "id-match": "error";
|
|
25
27
|
readonly "init-declarations": "error";
|
|
26
28
|
readonly "logical-assignment-operators": "error";
|
package/dist/base-rules.js
CHANGED
|
@@ -20,7 +20,12 @@ const migratedRules = {
|
|
|
20
20
|
"grouped-accessor-pairs": "error",
|
|
21
21
|
"guard-for-in": "error",
|
|
22
22
|
"id-denylist": "error",
|
|
23
|
-
"id-length":
|
|
23
|
+
"id-length": [
|
|
24
|
+
"error",
|
|
25
|
+
{
|
|
26
|
+
exceptions: ["T", "K", "i", "j", "x", "y", "z"]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
24
29
|
"id-match": "error",
|
|
25
30
|
"init-declarations": "error",
|
|
26
31
|
"logical-assignment-operators": "error",
|
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,9 @@ declare const oxlintConfigNoJSDoc: {
|
|
|
33
33
|
"grouped-accessor-pairs": "error";
|
|
34
34
|
"guard-for-in": "error";
|
|
35
35
|
"id-denylist": "error";
|
|
36
|
-
"id-length": "error"
|
|
36
|
+
"id-length": ["error", {
|
|
37
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
38
|
+
}];
|
|
37
39
|
"id-match": "error";
|
|
38
40
|
"init-declarations": "error";
|
|
39
41
|
"logical-assignment-operators": "error";
|
|
@@ -471,7 +473,9 @@ declare const oxlintConfig: {
|
|
|
471
473
|
"grouped-accessor-pairs": "error";
|
|
472
474
|
"guard-for-in": "error";
|
|
473
475
|
"id-denylist": "error";
|
|
474
|
-
"id-length": "error"
|
|
476
|
+
"id-length": ["error", {
|
|
477
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
478
|
+
}];
|
|
475
479
|
"id-match": "error";
|
|
476
480
|
"init-declarations": "error";
|
|
477
481
|
"logical-assignment-operators": "error";
|
|
@@ -928,7 +932,9 @@ declare const oxlintReactConfigNoJSDoc: {
|
|
|
928
932
|
"grouped-accessor-pairs": "error";
|
|
929
933
|
"guard-for-in": "error";
|
|
930
934
|
"id-denylist": "error";
|
|
931
|
-
"id-length": "error"
|
|
935
|
+
"id-length": ["error", {
|
|
936
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
937
|
+
}];
|
|
932
938
|
"id-match": "error";
|
|
933
939
|
"init-declarations": "error";
|
|
934
940
|
"logical-assignment-operators": "error";
|
|
@@ -1399,6 +1405,9 @@ declare const oxlintReactConfigNoJSDoc: {
|
|
|
1399
1405
|
};
|
|
1400
1406
|
readonly "react-doctor": {
|
|
1401
1407
|
readonly capabilities: readonly ["react-compiler"];
|
|
1408
|
+
readonly jsxMaxDepth: {
|
|
1409
|
+
readonly max: 4;
|
|
1410
|
+
};
|
|
1402
1411
|
};
|
|
1403
1412
|
};
|
|
1404
1413
|
};
|
|
@@ -1437,7 +1446,9 @@ declare const oxlintReactConfig: {
|
|
|
1437
1446
|
"grouped-accessor-pairs": "error";
|
|
1438
1447
|
"guard-for-in": "error";
|
|
1439
1448
|
"id-denylist": "error";
|
|
1440
|
-
"id-length": "error"
|
|
1449
|
+
"id-length": ["error", {
|
|
1450
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
1451
|
+
}];
|
|
1441
1452
|
"id-match": "error";
|
|
1442
1453
|
"init-declarations": "error";
|
|
1443
1454
|
"logical-assignment-operators": "error";
|
|
@@ -1927,6 +1938,9 @@ declare const oxlintReactConfig: {
|
|
|
1927
1938
|
};
|
|
1928
1939
|
readonly "react-doctor": {
|
|
1929
1940
|
readonly capabilities: readonly ["react-compiler"];
|
|
1941
|
+
readonly jsxMaxDepth: {
|
|
1942
|
+
readonly max: 4;
|
|
1943
|
+
};
|
|
1930
1944
|
};
|
|
1931
1945
|
};
|
|
1932
1946
|
};
|
|
@@ -1965,7 +1979,9 @@ declare const oxlintNextConfigNoJSDoc: {
|
|
|
1965
1979
|
"grouped-accessor-pairs": "error";
|
|
1966
1980
|
"guard-for-in": "error";
|
|
1967
1981
|
"id-denylist": "error";
|
|
1968
|
-
"id-length": "error"
|
|
1982
|
+
"id-length": ["error", {
|
|
1983
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
1984
|
+
}];
|
|
1969
1985
|
"id-match": "error";
|
|
1970
1986
|
"init-declarations": "error";
|
|
1971
1987
|
"logical-assignment-operators": "error";
|
|
@@ -2465,6 +2481,9 @@ declare const oxlintNextConfigNoJSDoc: {
|
|
|
2465
2481
|
};
|
|
2466
2482
|
readonly "react-doctor": {
|
|
2467
2483
|
readonly capabilities: readonly ["react-compiler"];
|
|
2484
|
+
readonly jsxMaxDepth: {
|
|
2485
|
+
readonly max: 4;
|
|
2486
|
+
};
|
|
2468
2487
|
};
|
|
2469
2488
|
};
|
|
2470
2489
|
};
|
|
@@ -2503,7 +2522,9 @@ declare const oxlintNextConfig: {
|
|
|
2503
2522
|
"grouped-accessor-pairs": "error";
|
|
2504
2523
|
"guard-for-in": "error";
|
|
2505
2524
|
"id-denylist": "error";
|
|
2506
|
-
"id-length": "error"
|
|
2525
|
+
"id-length": ["error", {
|
|
2526
|
+
readonly exceptions: ["T", "K", "i", "j", "x", "y", "z"];
|
|
2527
|
+
}];
|
|
2507
2528
|
"id-match": "error";
|
|
2508
2529
|
"init-declarations": "error";
|
|
2509
2530
|
"logical-assignment-operators": "error";
|
|
@@ -3022,6 +3043,9 @@ declare const oxlintNextConfig: {
|
|
|
3022
3043
|
};
|
|
3023
3044
|
readonly "react-doctor": {
|
|
3024
3045
|
readonly capabilities: readonly ["react-compiler"];
|
|
3046
|
+
readonly jsxMaxDepth: {
|
|
3047
|
+
readonly max: 4;
|
|
3048
|
+
};
|
|
3025
3049
|
};
|
|
3026
3050
|
};
|
|
3027
3051
|
};
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "My Oxlint config preset",
|
|
5
5
|
"homepage": "https://github.com/Robot-Inventor/oxlint-config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc",
|
|
32
|
-
"lint": "oxlint src oxlint.config.ts",
|
|
32
|
+
"lint": "tsc && oxlint src oxlint.config.ts",
|
|
33
33
|
"format": "prettier --write \"src/**/*.ts\" oxlint.config.ts",
|
|
34
34
|
"format:check": "prettier --check \"src/**/*.ts\" oxlint.config.ts",
|
|
35
35
|
"ci:version": "changeset version",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@next/eslint-plugin-next": "^16.3.4",
|
|
47
|
-
"eslint": "^10.
|
|
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.3.
|
|
51
|
+
"eslint-plugin-jsdoc": "^64.3.9",
|
|
52
52
|
"oxlint": "^1.82.0",
|
|
53
53
|
"oxlint-plugin-react-doctor": "^0.9.13",
|
|
54
54
|
"oxlint-tsgolint": "^7.0.2001"
|