@kurateh/oxlint-config 11.0.0 → 11.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 +29 -30
- package/dist/index.d.cts +6 -16
- package/dist/index.d.ts +6 -16
- package/dist/index.js +28 -33
- package/package.json +6 -3
package/dist/index.cjs
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
function defineConfig(config) {
|
|
5
|
-
return config;
|
|
6
|
-
}
|
|
3
|
+
var oxlint = require('oxlint');
|
|
7
4
|
|
|
8
5
|
// index.ts
|
|
9
|
-
var
|
|
6
|
+
var defaultConfig = {
|
|
10
7
|
jsPlugins: [
|
|
11
8
|
"@kurateh/eslint-plugin",
|
|
12
9
|
"eslint-plugin-perfectionist",
|
|
13
|
-
"eslint-plugin-unused-imports"
|
|
14
|
-
{
|
|
15
|
-
name: "react-fallback",
|
|
16
|
-
specifier: "eslint-plugin-react"
|
|
17
|
-
}
|
|
10
|
+
"eslint-plugin-unused-imports"
|
|
18
11
|
],
|
|
19
12
|
categories: {
|
|
20
13
|
correctness: "warn"
|
|
@@ -106,25 +99,31 @@ var index_default = defineConfig({
|
|
|
106
99
|
{
|
|
107
100
|
fixStyle: "inline-type-imports"
|
|
108
101
|
}
|
|
109
|
-
]
|
|
110
|
-
// react
|
|
111
|
-
"react/react-in-jsx-scope": 0,
|
|
112
|
-
"react-fallback/function-component-definition": [
|
|
113
|
-
1,
|
|
114
|
-
{
|
|
115
|
-
namedComponents: "arrow-function",
|
|
116
|
-
unnamedComponents: "arrow-function"
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"react/jsx-curly-brace-presence": [
|
|
120
|
-
1,
|
|
121
|
-
{
|
|
122
|
-
props: "never",
|
|
123
|
-
children: "never"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"react/no-children-prop": 1
|
|
102
|
+
]
|
|
127
103
|
}
|
|
128
|
-
}
|
|
104
|
+
};
|
|
105
|
+
var ts = oxlint.defineConfig(defaultConfig);
|
|
106
|
+
var reactConfig = structuredClone(defaultConfig);
|
|
107
|
+
reactConfig.rules = {
|
|
108
|
+
...reactConfig.rules,
|
|
109
|
+
"react/react-in-jsx-scope": 0,
|
|
110
|
+
"react/function-component-definition": [
|
|
111
|
+
1,
|
|
112
|
+
{
|
|
113
|
+
namedComponents: "arrow-function",
|
|
114
|
+
unnamedComponents: "arrow-function"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"react/jsx-curly-brace-presence": [
|
|
118
|
+
1,
|
|
119
|
+
{
|
|
120
|
+
props: "never",
|
|
121
|
+
children: "never"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"react/no-children-prop": 1
|
|
125
|
+
};
|
|
126
|
+
var react = oxlint.defineConfig(reactConfig);
|
|
129
127
|
|
|
130
|
-
|
|
128
|
+
exports.react = react;
|
|
129
|
+
exports.ts = ts;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})[];
|
|
1
|
+
import { OxlintConfig } from 'oxlint';
|
|
2
|
+
|
|
3
|
+
declare const ts: {
|
|
4
|
+
jsPlugins: string[];
|
|
6
5
|
categories: {
|
|
7
6
|
correctness: "warn";
|
|
8
7
|
};
|
|
@@ -53,17 +52,8 @@ declare const _default: {
|
|
|
53
52
|
"typescript/consistent-type-imports": [number, {
|
|
54
53
|
fixStyle: "inline-type-imports";
|
|
55
54
|
}];
|
|
56
|
-
"react/react-in-jsx-scope": number;
|
|
57
|
-
"react-fallback/function-component-definition": [number, {
|
|
58
|
-
namedComponents: string;
|
|
59
|
-
unnamedComponents: string;
|
|
60
|
-
}];
|
|
61
|
-
"react/jsx-curly-brace-presence": [number, {
|
|
62
|
-
props: "never";
|
|
63
|
-
children: "never";
|
|
64
|
-
}];
|
|
65
|
-
"react/no-children-prop": number;
|
|
66
55
|
};
|
|
67
56
|
};
|
|
57
|
+
declare const react: OxlintConfig;
|
|
68
58
|
|
|
69
|
-
export {
|
|
59
|
+
export { react, ts };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})[];
|
|
1
|
+
import { OxlintConfig } from 'oxlint';
|
|
2
|
+
|
|
3
|
+
declare const ts: {
|
|
4
|
+
jsPlugins: string[];
|
|
6
5
|
categories: {
|
|
7
6
|
correctness: "warn";
|
|
8
7
|
};
|
|
@@ -53,17 +52,8 @@ declare const _default: {
|
|
|
53
52
|
"typescript/consistent-type-imports": [number, {
|
|
54
53
|
fixStyle: "inline-type-imports";
|
|
55
54
|
}];
|
|
56
|
-
"react/react-in-jsx-scope": number;
|
|
57
|
-
"react-fallback/function-component-definition": [number, {
|
|
58
|
-
namedComponents: string;
|
|
59
|
-
unnamedComponents: string;
|
|
60
|
-
}];
|
|
61
|
-
"react/jsx-curly-brace-presence": [number, {
|
|
62
|
-
props: "never";
|
|
63
|
-
children: "never";
|
|
64
|
-
}];
|
|
65
|
-
"react/no-children-prop": number;
|
|
66
55
|
};
|
|
67
56
|
};
|
|
57
|
+
declare const react: OxlintConfig;
|
|
68
58
|
|
|
69
|
-
export {
|
|
59
|
+
export { react, ts };
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
+
import { defineConfig } from 'oxlint';
|
|
2
3
|
|
|
3
4
|
createRequire(import.meta.url);
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/oxlint@1.73.0_oxlint-tsgolint@0.24.0/node_modules/oxlint/dist/index.js
|
|
6
|
-
function defineConfig(config) {
|
|
7
|
-
return config;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// index.ts
|
|
11
|
-
var index_default = defineConfig({
|
|
5
|
+
var defaultConfig = {
|
|
12
6
|
jsPlugins: [
|
|
13
7
|
"@kurateh/eslint-plugin",
|
|
14
8
|
"eslint-plugin-perfectionist",
|
|
15
|
-
"eslint-plugin-unused-imports"
|
|
16
|
-
{
|
|
17
|
-
name: "react-fallback",
|
|
18
|
-
specifier: "eslint-plugin-react"
|
|
19
|
-
}
|
|
9
|
+
"eslint-plugin-unused-imports"
|
|
20
10
|
],
|
|
21
11
|
categories: {
|
|
22
12
|
correctness: "warn"
|
|
@@ -108,25 +98,30 @@ var index_default = defineConfig({
|
|
|
108
98
|
{
|
|
109
99
|
fixStyle: "inline-type-imports"
|
|
110
100
|
}
|
|
111
|
-
]
|
|
112
|
-
// react
|
|
113
|
-
"react/react-in-jsx-scope": 0,
|
|
114
|
-
"react-fallback/function-component-definition": [
|
|
115
|
-
1,
|
|
116
|
-
{
|
|
117
|
-
namedComponents: "arrow-function",
|
|
118
|
-
unnamedComponents: "arrow-function"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"react/jsx-curly-brace-presence": [
|
|
122
|
-
1,
|
|
123
|
-
{
|
|
124
|
-
props: "never",
|
|
125
|
-
children: "never"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"react/no-children-prop": 1
|
|
101
|
+
]
|
|
129
102
|
}
|
|
130
|
-
}
|
|
103
|
+
};
|
|
104
|
+
var ts = defineConfig(defaultConfig);
|
|
105
|
+
var reactConfig = structuredClone(defaultConfig);
|
|
106
|
+
reactConfig.rules = {
|
|
107
|
+
...reactConfig.rules,
|
|
108
|
+
"react/react-in-jsx-scope": 0,
|
|
109
|
+
"react/function-component-definition": [
|
|
110
|
+
1,
|
|
111
|
+
{
|
|
112
|
+
namedComponents: "arrow-function",
|
|
113
|
+
unnamedComponents: "arrow-function"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"react/jsx-curly-brace-presence": [
|
|
117
|
+
1,
|
|
118
|
+
{
|
|
119
|
+
props: "never",
|
|
120
|
+
children: "never"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"react/no-children-prop": 1
|
|
124
|
+
};
|
|
125
|
+
var react = defineConfig(reactConfig);
|
|
131
126
|
|
|
132
|
-
export {
|
|
127
|
+
export { react, ts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurateh/oxlint-config",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kurateh",
|
|
@@ -23,9 +23,12 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"eslint-plugin-perfectionist": "^5.10.0",
|
|
26
|
-
"eslint-plugin-react": "^7.37.5",
|
|
27
26
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
28
|
-
"@kurateh/eslint-plugin": "11.
|
|
27
|
+
"@kurateh/eslint-plugin": "11.1.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"oxlint": "^1.75.0",
|
|
31
|
+
"typescript": "^6"
|
|
29
32
|
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"build": "tsup",
|