@storm-software/oxlint 0.0.7 → 0.0.9

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.
@@ -5,10 +5,10 @@ import { typescript } from './chunk-GSFW4I7Y.js';
5
5
  import { unicorn } from './chunk-RCL4IWEM.js';
6
6
  import { combine } from './chunk-NP4DGSOE.js';
7
7
  import { GLOB_EXCLUDE } from './chunk-HZVUO4DQ.js';
8
- import { next } from './chunk-66XRZUEY.js';
8
+ import { next } from './chunk-JT2UTBZO.js';
9
9
  import { node } from './chunk-SGIBJGAV.js';
10
10
  import { pnpm } from './chunk-24KYXRHB.js';
11
- import { prettier } from './chunk-GEMVBBN7.js';
11
+ import { prettier } from './chunk-XPY27NZT.js';
12
12
  import { promise } from './chunk-WQ37FH6C.js';
13
13
  import { reactPerf } from './chunk-JHRYYA2I.js';
14
14
  import { react } from './chunk-OPIMNRNA.js';
@@ -2019,7 +2019,7 @@ async function getStormConfig(options = {}, ...userConfigs) {
2019
2019
  "react-perf": enableReactPerf = enableReact,
2020
2020
  jsx: enableJsx = enableReact,
2021
2021
  next: enableNext = false,
2022
- jsdoc: enableJsdoc = true,
2022
+ jsdoc: enableJsdoc = false,
2023
2023
  node: enableNode = true,
2024
2024
  promise: enablePromise = true,
2025
2025
  prettier: enablePrettier = true,
@@ -13,9 +13,7 @@ function next(options = {}) {
13
13
  "nextjs/no-head-import-in-document": "error"
14
14
  },
15
15
  settings: {
16
- next: {
17
- ...rootDir ? { rootDir } : {}
18
- }
16
+ next: rootDir ? { rootDir } : {}
19
17
  }
20
18
  };
21
19
  }
@@ -0,0 +1,215 @@
1
+ import config from 'eslint-plugin-prettier/recommended';
2
+
3
+ // src/configs/prettier.ts
4
+ var missingPluginPrefixes = [
5
+ "@babel",
6
+ "@stylistic",
7
+ "babel",
8
+ "flowtype",
9
+ "standard"
10
+ ];
11
+ var missingEslintRules = /* @__PURE__ */ new Set([
12
+ "array-bracket-newline",
13
+ "array-bracket-spacing",
14
+ "array-element-newline",
15
+ "arrow-parens",
16
+ "arrow-spacing",
17
+ "block-spacing",
18
+ "brace-style",
19
+ "comma-dangle",
20
+ "comma-spacing",
21
+ "comma-style",
22
+ "computed-property-spacing",
23
+ "dot-location",
24
+ "eol-last",
25
+ "func-call-spacing",
26
+ "function-call-argument-newline",
27
+ "function-paren-newline",
28
+ "generator-star",
29
+ "generator-star-spacing",
30
+ "implicit-arrow-linebreak",
31
+ "indent",
32
+ "indent-legacy",
33
+ "jsx-quotes",
34
+ "key-spacing",
35
+ "keyword-spacing",
36
+ "linebreak-style",
37
+ "lines-around-comment",
38
+ "max-len",
39
+ "max-statements-per-line",
40
+ "multiline-ternary",
41
+ "newline-per-chained-call",
42
+ "new-parens",
43
+ "no-arrow-condition",
44
+ "no-comma-dangle",
45
+ "no-confusing-arrow",
46
+ "no-extra-parens",
47
+ "no-extra-semi",
48
+ "no-floating-decimal",
49
+ "no-mixed-operators",
50
+ "no-mixed-spaces-and-tabs",
51
+ "no-multi-spaces",
52
+ "no-multiple-empty-lines",
53
+ "no-space-before-semi",
54
+ "no-spaced-func",
55
+ "no-tabs",
56
+ "no-trailing-spaces",
57
+ "no-whitespace-before-property",
58
+ "no-wrap-func",
59
+ "nonblock-statement-body-position",
60
+ "object-curly-newline",
61
+ "object-curly-spacing",
62
+ "object-property-newline",
63
+ "one-var-declaration-per-line",
64
+ "operator-linebreak",
65
+ "padded-blocks",
66
+ "quote-props",
67
+ "quotes",
68
+ "rest-spread-spacing",
69
+ "semi",
70
+ "semi-spacing",
71
+ "semi-style",
72
+ "space-after-function-name",
73
+ "space-after-keywords",
74
+ "space-before-blocks",
75
+ "space-before-function-paren",
76
+ "space-before-function-parentheses",
77
+ "space-before-keywords",
78
+ "space-in-brackets",
79
+ "space-infix-ops",
80
+ "space-in-parens",
81
+ "space-return-throw-case",
82
+ "space-unary-ops",
83
+ "space-unary-word-ops",
84
+ "switch-colon-spacing",
85
+ "template-curly-spacing",
86
+ "template-tag-spacing",
87
+ "wrap-iife",
88
+ "wrap-regex",
89
+ "yield-star-spacing"
90
+ ]);
91
+ var missingPluginRules = /* @__PURE__ */ new Set([
92
+ "jsdoc/check-alignment",
93
+ "react/jsx-child-element-spacing",
94
+ "react/jsx-closing-bracket-location",
95
+ "react/jsx-closing-tag-location",
96
+ "react/jsx-curly-newline",
97
+ "react/jsx-curly-spacing",
98
+ "react/jsx-equals-spacing",
99
+ "react/jsx-first-prop-new-line",
100
+ "react/jsx-indent",
101
+ "react/jsx-indent-props",
102
+ "react/jsx-max-props-per-line",
103
+ "react/jsx-newline",
104
+ "react/jsx-one-expression-per-line",
105
+ "react/jsx-props-no-multi-spaces",
106
+ "react/jsx-space-before-closing",
107
+ "react/jsx-tag-spacing",
108
+ "react/jsx-wrap-multilines",
109
+ "typescript/block-spacing",
110
+ "typescript/brace-style",
111
+ "typescript/comma-dangle",
112
+ "typescript/comma-spacing",
113
+ "typescript/func-call-spacing",
114
+ "typescript/indent",
115
+ "typescript/key-spacing",
116
+ "typescript/keyword-spacing",
117
+ "typescript/lines-around-comment",
118
+ "typescript/member-delimiter-style",
119
+ "typescript/no-extra-parens",
120
+ "typescript/no-extra-semi",
121
+ "typescript/object-curly-spacing",
122
+ "typescript/quotes",
123
+ "typescript/semi",
124
+ "typescript/space-before-blocks",
125
+ "typescript/space-before-function-paren",
126
+ "typescript/space-infix-ops",
127
+ "typescript/type-annotation-spacing",
128
+ "@typescript-eslint/block-spacing",
129
+ "@typescript-eslint/brace-style",
130
+ "@typescript-eslint/comma-dangle",
131
+ "@typescript-eslint/comma-spacing",
132
+ "@typescript-eslint/func-call-spacing",
133
+ "@typescript-eslint/indent",
134
+ "@typescript-eslint/key-spacing",
135
+ "@typescript-eslint/keyword-spacing",
136
+ "@typescript-eslint/lines-around-comment",
137
+ "@typescript-eslint/member-delimiter-style",
138
+ "@typescript-eslint/no-extra-parens",
139
+ "@typescript-eslint/no-extra-semi",
140
+ "@typescript-eslint/object-curly-spacing",
141
+ "@typescript-eslint/quotes",
142
+ "@typescript-eslint/semi",
143
+ "@typescript-eslint/space-before-blocks",
144
+ "@typescript-eslint/space-before-function-paren",
145
+ "@typescript-eslint/space-infix-ops",
146
+ "@typescript-eslint/type-annotation-spacing",
147
+ "unicorn/template-indent",
148
+ "vue/array-bracket-newline",
149
+ "vue/array-bracket-spacing",
150
+ "vue/array-element-newline",
151
+ "vue/arrow-spacing",
152
+ "vue/block-spacing",
153
+ "vue/block-tag-newline",
154
+ "vue/brace-style",
155
+ "vue/comma-dangle",
156
+ "vue/comma-spacing",
157
+ "vue/comma-style",
158
+ "vue/dot-location",
159
+ "vue/func-call-spacing",
160
+ "vue/html-closing-bracket-newline",
161
+ "vue/html-closing-bracket-spacing",
162
+ "vue/html-end-tags",
163
+ "vue/html-indent",
164
+ "vue/html-quotes",
165
+ "vue/html-self-closing",
166
+ "vue/key-spacing",
167
+ "vue/keyword-spacing",
168
+ "vue/max-attributes-per-line",
169
+ "vue/max-len",
170
+ "vue/multiline-html-element-content-newline",
171
+ "vue/multiline-ternary",
172
+ "vue/mustache-interpolation-spacing",
173
+ "vue/no-extra-parens",
174
+ "vue/no-multi-spaces",
175
+ "vue/no-spaces-around-equal-signs-in-attribute",
176
+ "vue/object-curly-newline",
177
+ "vue/object-curly-spacing",
178
+ "vue/object-property-newline",
179
+ "vue/operator-linebreak",
180
+ "vue/quote-props",
181
+ "vue/script-indent",
182
+ "vue/singleline-html-element-content-newline",
183
+ "vue/space-infix-ops",
184
+ "vue/space-in-parens",
185
+ "vue/space-unary-ops",
186
+ "vue/template-curly-spacing"
187
+ ]);
188
+ function prettier() {
189
+ const rules = Object.entries(config.rules ?? {}).reduce(
190
+ (ret, [rule, value]) => {
191
+ if (missingPluginPrefixes.some(
192
+ (pluginName) => rule.startsWith(`${pluginName}/`)
193
+ )) {
194
+ return ret;
195
+ }
196
+ if (missingEslintRules.has(rule) || missingPluginRules.has(rule)) {
197
+ return ret;
198
+ }
199
+ ret[rule] = value;
200
+ return ret;
201
+ },
202
+ {}
203
+ );
204
+ return {
205
+ jsPlugins: ["eslint-plugin-prettier"],
206
+ rules: {
207
+ ...rules,
208
+ "prettier/prettier": "error",
209
+ "arrow-body-style": "off",
210
+ "prefer-arrow-callback": "off"
211
+ }
212
+ };
213
+ }
214
+
215
+ export { prettier };
@@ -15,9 +15,7 @@ function next(options = {}) {
15
15
  "nextjs/no-head-import-in-document": "error"
16
16
  },
17
17
  settings: {
18
- next: {
19
- ...rootDir ? { rootDir } : {}
20
- }
18
+ next: rootDir ? { rootDir } : {}
21
19
  }
22
20
  };
23
21
  }
@@ -1 +1 @@
1
- export { next } from '../chunk-66XRZUEY.js';
1
+ export { next } from '../chunk-JT2UTBZO.js';
@@ -7,11 +7,210 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
  var config__default = /*#__PURE__*/_interopDefault(config);
8
8
 
9
9
  // src/configs/prettier.ts
10
+ var missingPluginPrefixes = [
11
+ "@babel",
12
+ "@stylistic",
13
+ "babel",
14
+ "flowtype",
15
+ "standard"
16
+ ];
17
+ var missingEslintRules = /* @__PURE__ */ new Set([
18
+ "array-bracket-newline",
19
+ "array-bracket-spacing",
20
+ "array-element-newline",
21
+ "arrow-parens",
22
+ "arrow-spacing",
23
+ "block-spacing",
24
+ "brace-style",
25
+ "comma-dangle",
26
+ "comma-spacing",
27
+ "comma-style",
28
+ "computed-property-spacing",
29
+ "dot-location",
30
+ "eol-last",
31
+ "func-call-spacing",
32
+ "function-call-argument-newline",
33
+ "function-paren-newline",
34
+ "generator-star",
35
+ "generator-star-spacing",
36
+ "implicit-arrow-linebreak",
37
+ "indent",
38
+ "indent-legacy",
39
+ "jsx-quotes",
40
+ "key-spacing",
41
+ "keyword-spacing",
42
+ "linebreak-style",
43
+ "lines-around-comment",
44
+ "max-len",
45
+ "max-statements-per-line",
46
+ "multiline-ternary",
47
+ "newline-per-chained-call",
48
+ "new-parens",
49
+ "no-arrow-condition",
50
+ "no-comma-dangle",
51
+ "no-confusing-arrow",
52
+ "no-extra-parens",
53
+ "no-extra-semi",
54
+ "no-floating-decimal",
55
+ "no-mixed-operators",
56
+ "no-mixed-spaces-and-tabs",
57
+ "no-multi-spaces",
58
+ "no-multiple-empty-lines",
59
+ "no-space-before-semi",
60
+ "no-spaced-func",
61
+ "no-tabs",
62
+ "no-trailing-spaces",
63
+ "no-whitespace-before-property",
64
+ "no-wrap-func",
65
+ "nonblock-statement-body-position",
66
+ "object-curly-newline",
67
+ "object-curly-spacing",
68
+ "object-property-newline",
69
+ "one-var-declaration-per-line",
70
+ "operator-linebreak",
71
+ "padded-blocks",
72
+ "quote-props",
73
+ "quotes",
74
+ "rest-spread-spacing",
75
+ "semi",
76
+ "semi-spacing",
77
+ "semi-style",
78
+ "space-after-function-name",
79
+ "space-after-keywords",
80
+ "space-before-blocks",
81
+ "space-before-function-paren",
82
+ "space-before-function-parentheses",
83
+ "space-before-keywords",
84
+ "space-in-brackets",
85
+ "space-infix-ops",
86
+ "space-in-parens",
87
+ "space-return-throw-case",
88
+ "space-unary-ops",
89
+ "space-unary-word-ops",
90
+ "switch-colon-spacing",
91
+ "template-curly-spacing",
92
+ "template-tag-spacing",
93
+ "wrap-iife",
94
+ "wrap-regex",
95
+ "yield-star-spacing"
96
+ ]);
97
+ var missingPluginRules = /* @__PURE__ */ new Set([
98
+ "jsdoc/check-alignment",
99
+ "react/jsx-child-element-spacing",
100
+ "react/jsx-closing-bracket-location",
101
+ "react/jsx-closing-tag-location",
102
+ "react/jsx-curly-newline",
103
+ "react/jsx-curly-spacing",
104
+ "react/jsx-equals-spacing",
105
+ "react/jsx-first-prop-new-line",
106
+ "react/jsx-indent",
107
+ "react/jsx-indent-props",
108
+ "react/jsx-max-props-per-line",
109
+ "react/jsx-newline",
110
+ "react/jsx-one-expression-per-line",
111
+ "react/jsx-props-no-multi-spaces",
112
+ "react/jsx-space-before-closing",
113
+ "react/jsx-tag-spacing",
114
+ "react/jsx-wrap-multilines",
115
+ "typescript/block-spacing",
116
+ "typescript/brace-style",
117
+ "typescript/comma-dangle",
118
+ "typescript/comma-spacing",
119
+ "typescript/func-call-spacing",
120
+ "typescript/indent",
121
+ "typescript/key-spacing",
122
+ "typescript/keyword-spacing",
123
+ "typescript/lines-around-comment",
124
+ "typescript/member-delimiter-style",
125
+ "typescript/no-extra-parens",
126
+ "typescript/no-extra-semi",
127
+ "typescript/object-curly-spacing",
128
+ "typescript/quotes",
129
+ "typescript/semi",
130
+ "typescript/space-before-blocks",
131
+ "typescript/space-before-function-paren",
132
+ "typescript/space-infix-ops",
133
+ "typescript/type-annotation-spacing",
134
+ "@typescript-eslint/block-spacing",
135
+ "@typescript-eslint/brace-style",
136
+ "@typescript-eslint/comma-dangle",
137
+ "@typescript-eslint/comma-spacing",
138
+ "@typescript-eslint/func-call-spacing",
139
+ "@typescript-eslint/indent",
140
+ "@typescript-eslint/key-spacing",
141
+ "@typescript-eslint/keyword-spacing",
142
+ "@typescript-eslint/lines-around-comment",
143
+ "@typescript-eslint/member-delimiter-style",
144
+ "@typescript-eslint/no-extra-parens",
145
+ "@typescript-eslint/no-extra-semi",
146
+ "@typescript-eslint/object-curly-spacing",
147
+ "@typescript-eslint/quotes",
148
+ "@typescript-eslint/semi",
149
+ "@typescript-eslint/space-before-blocks",
150
+ "@typescript-eslint/space-before-function-paren",
151
+ "@typescript-eslint/space-infix-ops",
152
+ "@typescript-eslint/type-annotation-spacing",
153
+ "unicorn/template-indent",
154
+ "vue/array-bracket-newline",
155
+ "vue/array-bracket-spacing",
156
+ "vue/array-element-newline",
157
+ "vue/arrow-spacing",
158
+ "vue/block-spacing",
159
+ "vue/block-tag-newline",
160
+ "vue/brace-style",
161
+ "vue/comma-dangle",
162
+ "vue/comma-spacing",
163
+ "vue/comma-style",
164
+ "vue/dot-location",
165
+ "vue/func-call-spacing",
166
+ "vue/html-closing-bracket-newline",
167
+ "vue/html-closing-bracket-spacing",
168
+ "vue/html-end-tags",
169
+ "vue/html-indent",
170
+ "vue/html-quotes",
171
+ "vue/html-self-closing",
172
+ "vue/key-spacing",
173
+ "vue/keyword-spacing",
174
+ "vue/max-attributes-per-line",
175
+ "vue/max-len",
176
+ "vue/multiline-html-element-content-newline",
177
+ "vue/multiline-ternary",
178
+ "vue/mustache-interpolation-spacing",
179
+ "vue/no-extra-parens",
180
+ "vue/no-multi-spaces",
181
+ "vue/no-spaces-around-equal-signs-in-attribute",
182
+ "vue/object-curly-newline",
183
+ "vue/object-curly-spacing",
184
+ "vue/object-property-newline",
185
+ "vue/operator-linebreak",
186
+ "vue/quote-props",
187
+ "vue/script-indent",
188
+ "vue/singleline-html-element-content-newline",
189
+ "vue/space-infix-ops",
190
+ "vue/space-in-parens",
191
+ "vue/space-unary-ops",
192
+ "vue/template-curly-spacing"
193
+ ]);
10
194
  function prettier() {
195
+ const rules = Object.entries(config__default.default.rules ?? {}).reduce(
196
+ (ret, [rule, value]) => {
197
+ if (missingPluginPrefixes.some(
198
+ (pluginName) => rule.startsWith(`${pluginName}/`)
199
+ )) {
200
+ return ret;
201
+ }
202
+ if (missingEslintRules.has(rule) || missingPluginRules.has(rule)) {
203
+ return ret;
204
+ }
205
+ ret[rule] = value;
206
+ return ret;
207
+ },
208
+ {}
209
+ );
11
210
  return {
12
211
  jsPlugins: ["eslint-plugin-prettier"],
13
212
  rules: {
14
- ...config__default.default.rules,
213
+ ...rules,
15
214
  "prettier/prettier": "error",
16
215
  "arrow-body-style": "off",
17
216
  "prefer-arrow-callback": "off"
@@ -1 +1 @@
1
- export { prettier } from '../chunk-GEMVBBN7.js';
1
+ export { prettier } from '../chunk-XPY27NZT.js';
package/dist/index.cjs CHANGED
@@ -2106,9 +2106,7 @@ function next(options = {}) {
2106
2106
  "nextjs/no-head-import-in-document": "error"
2107
2107
  },
2108
2108
  settings: {
2109
- next: {
2110
- ...rootDir ? { rootDir } : {}
2111
- }
2109
+ next: rootDir ? { rootDir } : {}
2112
2110
  }
2113
2111
  };
2114
2112
  }
@@ -2152,11 +2150,210 @@ function pnpm(options) {
2152
2150
  }
2153
2151
  };
2154
2152
  }
2153
+ var missingPluginPrefixes = [
2154
+ "@babel",
2155
+ "@stylistic",
2156
+ "babel",
2157
+ "flowtype",
2158
+ "standard"
2159
+ ];
2160
+ var missingEslintRules = /* @__PURE__ */ new Set([
2161
+ "array-bracket-newline",
2162
+ "array-bracket-spacing",
2163
+ "array-element-newline",
2164
+ "arrow-parens",
2165
+ "arrow-spacing",
2166
+ "block-spacing",
2167
+ "brace-style",
2168
+ "comma-dangle",
2169
+ "comma-spacing",
2170
+ "comma-style",
2171
+ "computed-property-spacing",
2172
+ "dot-location",
2173
+ "eol-last",
2174
+ "func-call-spacing",
2175
+ "function-call-argument-newline",
2176
+ "function-paren-newline",
2177
+ "generator-star",
2178
+ "generator-star-spacing",
2179
+ "implicit-arrow-linebreak",
2180
+ "indent",
2181
+ "indent-legacy",
2182
+ "jsx-quotes",
2183
+ "key-spacing",
2184
+ "keyword-spacing",
2185
+ "linebreak-style",
2186
+ "lines-around-comment",
2187
+ "max-len",
2188
+ "max-statements-per-line",
2189
+ "multiline-ternary",
2190
+ "newline-per-chained-call",
2191
+ "new-parens",
2192
+ "no-arrow-condition",
2193
+ "no-comma-dangle",
2194
+ "no-confusing-arrow",
2195
+ "no-extra-parens",
2196
+ "no-extra-semi",
2197
+ "no-floating-decimal",
2198
+ "no-mixed-operators",
2199
+ "no-mixed-spaces-and-tabs",
2200
+ "no-multi-spaces",
2201
+ "no-multiple-empty-lines",
2202
+ "no-space-before-semi",
2203
+ "no-spaced-func",
2204
+ "no-tabs",
2205
+ "no-trailing-spaces",
2206
+ "no-whitespace-before-property",
2207
+ "no-wrap-func",
2208
+ "nonblock-statement-body-position",
2209
+ "object-curly-newline",
2210
+ "object-curly-spacing",
2211
+ "object-property-newline",
2212
+ "one-var-declaration-per-line",
2213
+ "operator-linebreak",
2214
+ "padded-blocks",
2215
+ "quote-props",
2216
+ "quotes",
2217
+ "rest-spread-spacing",
2218
+ "semi",
2219
+ "semi-spacing",
2220
+ "semi-style",
2221
+ "space-after-function-name",
2222
+ "space-after-keywords",
2223
+ "space-before-blocks",
2224
+ "space-before-function-paren",
2225
+ "space-before-function-parentheses",
2226
+ "space-before-keywords",
2227
+ "space-in-brackets",
2228
+ "space-infix-ops",
2229
+ "space-in-parens",
2230
+ "space-return-throw-case",
2231
+ "space-unary-ops",
2232
+ "space-unary-word-ops",
2233
+ "switch-colon-spacing",
2234
+ "template-curly-spacing",
2235
+ "template-tag-spacing",
2236
+ "wrap-iife",
2237
+ "wrap-regex",
2238
+ "yield-star-spacing"
2239
+ ]);
2240
+ var missingPluginRules = /* @__PURE__ */ new Set([
2241
+ "jsdoc/check-alignment",
2242
+ "react/jsx-child-element-spacing",
2243
+ "react/jsx-closing-bracket-location",
2244
+ "react/jsx-closing-tag-location",
2245
+ "react/jsx-curly-newline",
2246
+ "react/jsx-curly-spacing",
2247
+ "react/jsx-equals-spacing",
2248
+ "react/jsx-first-prop-new-line",
2249
+ "react/jsx-indent",
2250
+ "react/jsx-indent-props",
2251
+ "react/jsx-max-props-per-line",
2252
+ "react/jsx-newline",
2253
+ "react/jsx-one-expression-per-line",
2254
+ "react/jsx-props-no-multi-spaces",
2255
+ "react/jsx-space-before-closing",
2256
+ "react/jsx-tag-spacing",
2257
+ "react/jsx-wrap-multilines",
2258
+ "typescript/block-spacing",
2259
+ "typescript/brace-style",
2260
+ "typescript/comma-dangle",
2261
+ "typescript/comma-spacing",
2262
+ "typescript/func-call-spacing",
2263
+ "typescript/indent",
2264
+ "typescript/key-spacing",
2265
+ "typescript/keyword-spacing",
2266
+ "typescript/lines-around-comment",
2267
+ "typescript/member-delimiter-style",
2268
+ "typescript/no-extra-parens",
2269
+ "typescript/no-extra-semi",
2270
+ "typescript/object-curly-spacing",
2271
+ "typescript/quotes",
2272
+ "typescript/semi",
2273
+ "typescript/space-before-blocks",
2274
+ "typescript/space-before-function-paren",
2275
+ "typescript/space-infix-ops",
2276
+ "typescript/type-annotation-spacing",
2277
+ "@typescript-eslint/block-spacing",
2278
+ "@typescript-eslint/brace-style",
2279
+ "@typescript-eslint/comma-dangle",
2280
+ "@typescript-eslint/comma-spacing",
2281
+ "@typescript-eslint/func-call-spacing",
2282
+ "@typescript-eslint/indent",
2283
+ "@typescript-eslint/key-spacing",
2284
+ "@typescript-eslint/keyword-spacing",
2285
+ "@typescript-eslint/lines-around-comment",
2286
+ "@typescript-eslint/member-delimiter-style",
2287
+ "@typescript-eslint/no-extra-parens",
2288
+ "@typescript-eslint/no-extra-semi",
2289
+ "@typescript-eslint/object-curly-spacing",
2290
+ "@typescript-eslint/quotes",
2291
+ "@typescript-eslint/semi",
2292
+ "@typescript-eslint/space-before-blocks",
2293
+ "@typescript-eslint/space-before-function-paren",
2294
+ "@typescript-eslint/space-infix-ops",
2295
+ "@typescript-eslint/type-annotation-spacing",
2296
+ "unicorn/template-indent",
2297
+ "vue/array-bracket-newline",
2298
+ "vue/array-bracket-spacing",
2299
+ "vue/array-element-newline",
2300
+ "vue/arrow-spacing",
2301
+ "vue/block-spacing",
2302
+ "vue/block-tag-newline",
2303
+ "vue/brace-style",
2304
+ "vue/comma-dangle",
2305
+ "vue/comma-spacing",
2306
+ "vue/comma-style",
2307
+ "vue/dot-location",
2308
+ "vue/func-call-spacing",
2309
+ "vue/html-closing-bracket-newline",
2310
+ "vue/html-closing-bracket-spacing",
2311
+ "vue/html-end-tags",
2312
+ "vue/html-indent",
2313
+ "vue/html-quotes",
2314
+ "vue/html-self-closing",
2315
+ "vue/key-spacing",
2316
+ "vue/keyword-spacing",
2317
+ "vue/max-attributes-per-line",
2318
+ "vue/max-len",
2319
+ "vue/multiline-html-element-content-newline",
2320
+ "vue/multiline-ternary",
2321
+ "vue/mustache-interpolation-spacing",
2322
+ "vue/no-extra-parens",
2323
+ "vue/no-multi-spaces",
2324
+ "vue/no-spaces-around-equal-signs-in-attribute",
2325
+ "vue/object-curly-newline",
2326
+ "vue/object-curly-spacing",
2327
+ "vue/object-property-newline",
2328
+ "vue/operator-linebreak",
2329
+ "vue/quote-props",
2330
+ "vue/script-indent",
2331
+ "vue/singleline-html-element-content-newline",
2332
+ "vue/space-infix-ops",
2333
+ "vue/space-in-parens",
2334
+ "vue/space-unary-ops",
2335
+ "vue/template-curly-spacing"
2336
+ ]);
2155
2337
  function prettier() {
2338
+ const rules = Object.entries(config__default.default.rules ?? {}).reduce(
2339
+ (ret, [rule, value]) => {
2340
+ if (missingPluginPrefixes.some(
2341
+ (pluginName) => rule.startsWith(`${pluginName}/`)
2342
+ )) {
2343
+ return ret;
2344
+ }
2345
+ if (missingEslintRules.has(rule) || missingPluginRules.has(rule)) {
2346
+ return ret;
2347
+ }
2348
+ ret[rule] = value;
2349
+ return ret;
2350
+ },
2351
+ {}
2352
+ );
2156
2353
  return {
2157
2354
  jsPlugins: ["eslint-plugin-prettier"],
2158
2355
  rules: {
2159
- ...config__default.default.rules,
2356
+ ...rules,
2160
2357
  "prettier/prettier": "error",
2161
2358
  "arrow-body-style": "off",
2162
2359
  "prefer-arrow-callback": "off"
@@ -2536,7 +2733,7 @@ async function getStormConfig(options = {}, ...userConfigs) {
2536
2733
  "react-perf": enableReactPerf = enableReact,
2537
2734
  jsx: enableJsx = enableReact,
2538
2735
  next: enableNext = false,
2539
- jsdoc: enableJsdoc = true,
2736
+ jsdoc: enableJsdoc = false,
2540
2737
  node: enableNode = true,
2541
2738
  promise: enablePromise = true,
2542
2739
  prettier: enablePrettier = true,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './chunk-U76ID4TS.js';
2
2
  export { formatConfig } from './chunk-PRECUC4G.js';
3
- import { getStormConfig } from './chunk-3ZEETRNX.js';
4
- export { defineConfig, getConfig, getStormConfig } from './chunk-3ZEETRNX.js';
3
+ import { getStormConfig } from './chunk-BDVBHV3H.js';
4
+ export { defineConfig, getConfig, getStormConfig } from './chunk-BDVBHV3H.js';
5
5
  export { storybook } from './chunk-KRBDXNMO.js';
6
6
  export { test } from './chunk-IYISSAYD.js';
7
7
  export { tsdoc } from './chunk-ORLPYCNP.js';
@@ -9,10 +9,10 @@ export { typescript } from './chunk-GSFW4I7Y.js';
9
9
  export { unicorn } from './chunk-RCL4IWEM.js';
10
10
  export { combine } from './chunk-NP4DGSOE.js';
11
11
  export { GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_TEST } from './chunk-HZVUO4DQ.js';
12
- export { next } from './chunk-66XRZUEY.js';
12
+ export { next } from './chunk-JT2UTBZO.js';
13
13
  export { node } from './chunk-SGIBJGAV.js';
14
14
  export { pnpm } from './chunk-24KYXRHB.js';
15
- export { prettier } from './chunk-GEMVBBN7.js';
15
+ export { prettier } from './chunk-XPY27NZT.js';
16
16
  export { promise } from './chunk-WQ37FH6C.js';
17
17
  export { reactPerf } from './chunk-JHRYYA2I.js';
18
18
  export { react } from './chunk-OPIMNRNA.js';
package/dist/preset.cjs CHANGED
@@ -2106,9 +2106,7 @@ function next(options = {}) {
2106
2106
  "nextjs/no-head-import-in-document": "error"
2107
2107
  },
2108
2108
  settings: {
2109
- next: {
2110
- ...rootDir ? { rootDir } : {}
2111
- }
2109
+ next: rootDir ? { rootDir } : {}
2112
2110
  }
2113
2111
  };
2114
2112
  }
@@ -2152,11 +2150,210 @@ function pnpm(options) {
2152
2150
  }
2153
2151
  };
2154
2152
  }
2153
+ var missingPluginPrefixes = [
2154
+ "@babel",
2155
+ "@stylistic",
2156
+ "babel",
2157
+ "flowtype",
2158
+ "standard"
2159
+ ];
2160
+ var missingEslintRules = /* @__PURE__ */ new Set([
2161
+ "array-bracket-newline",
2162
+ "array-bracket-spacing",
2163
+ "array-element-newline",
2164
+ "arrow-parens",
2165
+ "arrow-spacing",
2166
+ "block-spacing",
2167
+ "brace-style",
2168
+ "comma-dangle",
2169
+ "comma-spacing",
2170
+ "comma-style",
2171
+ "computed-property-spacing",
2172
+ "dot-location",
2173
+ "eol-last",
2174
+ "func-call-spacing",
2175
+ "function-call-argument-newline",
2176
+ "function-paren-newline",
2177
+ "generator-star",
2178
+ "generator-star-spacing",
2179
+ "implicit-arrow-linebreak",
2180
+ "indent",
2181
+ "indent-legacy",
2182
+ "jsx-quotes",
2183
+ "key-spacing",
2184
+ "keyword-spacing",
2185
+ "linebreak-style",
2186
+ "lines-around-comment",
2187
+ "max-len",
2188
+ "max-statements-per-line",
2189
+ "multiline-ternary",
2190
+ "newline-per-chained-call",
2191
+ "new-parens",
2192
+ "no-arrow-condition",
2193
+ "no-comma-dangle",
2194
+ "no-confusing-arrow",
2195
+ "no-extra-parens",
2196
+ "no-extra-semi",
2197
+ "no-floating-decimal",
2198
+ "no-mixed-operators",
2199
+ "no-mixed-spaces-and-tabs",
2200
+ "no-multi-spaces",
2201
+ "no-multiple-empty-lines",
2202
+ "no-space-before-semi",
2203
+ "no-spaced-func",
2204
+ "no-tabs",
2205
+ "no-trailing-spaces",
2206
+ "no-whitespace-before-property",
2207
+ "no-wrap-func",
2208
+ "nonblock-statement-body-position",
2209
+ "object-curly-newline",
2210
+ "object-curly-spacing",
2211
+ "object-property-newline",
2212
+ "one-var-declaration-per-line",
2213
+ "operator-linebreak",
2214
+ "padded-blocks",
2215
+ "quote-props",
2216
+ "quotes",
2217
+ "rest-spread-spacing",
2218
+ "semi",
2219
+ "semi-spacing",
2220
+ "semi-style",
2221
+ "space-after-function-name",
2222
+ "space-after-keywords",
2223
+ "space-before-blocks",
2224
+ "space-before-function-paren",
2225
+ "space-before-function-parentheses",
2226
+ "space-before-keywords",
2227
+ "space-in-brackets",
2228
+ "space-infix-ops",
2229
+ "space-in-parens",
2230
+ "space-return-throw-case",
2231
+ "space-unary-ops",
2232
+ "space-unary-word-ops",
2233
+ "switch-colon-spacing",
2234
+ "template-curly-spacing",
2235
+ "template-tag-spacing",
2236
+ "wrap-iife",
2237
+ "wrap-regex",
2238
+ "yield-star-spacing"
2239
+ ]);
2240
+ var missingPluginRules = /* @__PURE__ */ new Set([
2241
+ "jsdoc/check-alignment",
2242
+ "react/jsx-child-element-spacing",
2243
+ "react/jsx-closing-bracket-location",
2244
+ "react/jsx-closing-tag-location",
2245
+ "react/jsx-curly-newline",
2246
+ "react/jsx-curly-spacing",
2247
+ "react/jsx-equals-spacing",
2248
+ "react/jsx-first-prop-new-line",
2249
+ "react/jsx-indent",
2250
+ "react/jsx-indent-props",
2251
+ "react/jsx-max-props-per-line",
2252
+ "react/jsx-newline",
2253
+ "react/jsx-one-expression-per-line",
2254
+ "react/jsx-props-no-multi-spaces",
2255
+ "react/jsx-space-before-closing",
2256
+ "react/jsx-tag-spacing",
2257
+ "react/jsx-wrap-multilines",
2258
+ "typescript/block-spacing",
2259
+ "typescript/brace-style",
2260
+ "typescript/comma-dangle",
2261
+ "typescript/comma-spacing",
2262
+ "typescript/func-call-spacing",
2263
+ "typescript/indent",
2264
+ "typescript/key-spacing",
2265
+ "typescript/keyword-spacing",
2266
+ "typescript/lines-around-comment",
2267
+ "typescript/member-delimiter-style",
2268
+ "typescript/no-extra-parens",
2269
+ "typescript/no-extra-semi",
2270
+ "typescript/object-curly-spacing",
2271
+ "typescript/quotes",
2272
+ "typescript/semi",
2273
+ "typescript/space-before-blocks",
2274
+ "typescript/space-before-function-paren",
2275
+ "typescript/space-infix-ops",
2276
+ "typescript/type-annotation-spacing",
2277
+ "@typescript-eslint/block-spacing",
2278
+ "@typescript-eslint/brace-style",
2279
+ "@typescript-eslint/comma-dangle",
2280
+ "@typescript-eslint/comma-spacing",
2281
+ "@typescript-eslint/func-call-spacing",
2282
+ "@typescript-eslint/indent",
2283
+ "@typescript-eslint/key-spacing",
2284
+ "@typescript-eslint/keyword-spacing",
2285
+ "@typescript-eslint/lines-around-comment",
2286
+ "@typescript-eslint/member-delimiter-style",
2287
+ "@typescript-eslint/no-extra-parens",
2288
+ "@typescript-eslint/no-extra-semi",
2289
+ "@typescript-eslint/object-curly-spacing",
2290
+ "@typescript-eslint/quotes",
2291
+ "@typescript-eslint/semi",
2292
+ "@typescript-eslint/space-before-blocks",
2293
+ "@typescript-eslint/space-before-function-paren",
2294
+ "@typescript-eslint/space-infix-ops",
2295
+ "@typescript-eslint/type-annotation-spacing",
2296
+ "unicorn/template-indent",
2297
+ "vue/array-bracket-newline",
2298
+ "vue/array-bracket-spacing",
2299
+ "vue/array-element-newline",
2300
+ "vue/arrow-spacing",
2301
+ "vue/block-spacing",
2302
+ "vue/block-tag-newline",
2303
+ "vue/brace-style",
2304
+ "vue/comma-dangle",
2305
+ "vue/comma-spacing",
2306
+ "vue/comma-style",
2307
+ "vue/dot-location",
2308
+ "vue/func-call-spacing",
2309
+ "vue/html-closing-bracket-newline",
2310
+ "vue/html-closing-bracket-spacing",
2311
+ "vue/html-end-tags",
2312
+ "vue/html-indent",
2313
+ "vue/html-quotes",
2314
+ "vue/html-self-closing",
2315
+ "vue/key-spacing",
2316
+ "vue/keyword-spacing",
2317
+ "vue/max-attributes-per-line",
2318
+ "vue/max-len",
2319
+ "vue/multiline-html-element-content-newline",
2320
+ "vue/multiline-ternary",
2321
+ "vue/mustache-interpolation-spacing",
2322
+ "vue/no-extra-parens",
2323
+ "vue/no-multi-spaces",
2324
+ "vue/no-spaces-around-equal-signs-in-attribute",
2325
+ "vue/object-curly-newline",
2326
+ "vue/object-curly-spacing",
2327
+ "vue/object-property-newline",
2328
+ "vue/operator-linebreak",
2329
+ "vue/quote-props",
2330
+ "vue/script-indent",
2331
+ "vue/singleline-html-element-content-newline",
2332
+ "vue/space-infix-ops",
2333
+ "vue/space-in-parens",
2334
+ "vue/space-unary-ops",
2335
+ "vue/template-curly-spacing"
2336
+ ]);
2155
2337
  function prettier() {
2338
+ const rules = Object.entries(config__default.default.rules ?? {}).reduce(
2339
+ (ret, [rule, value]) => {
2340
+ if (missingPluginPrefixes.some(
2341
+ (pluginName) => rule.startsWith(`${pluginName}/`)
2342
+ )) {
2343
+ return ret;
2344
+ }
2345
+ if (missingEslintRules.has(rule) || missingPluginRules.has(rule)) {
2346
+ return ret;
2347
+ }
2348
+ ret[rule] = value;
2349
+ return ret;
2350
+ },
2351
+ {}
2352
+ );
2156
2353
  return {
2157
2354
  jsPlugins: ["eslint-plugin-prettier"],
2158
2355
  rules: {
2159
- ...config__default.default.rules,
2356
+ ...rules,
2160
2357
  "prettier/prettier": "error",
2161
2358
  "arrow-body-style": "off",
2162
2359
  "prefer-arrow-callback": "off"
@@ -2534,7 +2731,7 @@ async function getStormConfig(options = {}, ...userConfigs) {
2534
2731
  "react-perf": enableReactPerf = enableReact,
2535
2732
  jsx: enableJsx = enableReact,
2536
2733
  next: enableNext = false,
2537
- jsdoc: enableJsdoc = true,
2734
+ jsdoc: enableJsdoc = false,
2538
2735
  node: enableNode = true,
2539
2736
  promise: enablePromise = true,
2540
2737
  prettier: enablePrettier = true,
package/dist/preset.js CHANGED
@@ -1,4 +1,4 @@
1
- export { preset_default as default, defineConfig, getConfig, getStormConfig } from './chunk-3ZEETRNX.js';
1
+ export { preset_default as default, defineConfig, getConfig, getStormConfig } from './chunk-BDVBHV3H.js';
2
2
  import './chunk-KRBDXNMO.js';
3
3
  import './chunk-IYISSAYD.js';
4
4
  import './chunk-ORLPYCNP.js';
@@ -6,10 +6,10 @@ import './chunk-GSFW4I7Y.js';
6
6
  import './chunk-RCL4IWEM.js';
7
7
  import './chunk-NP4DGSOE.js';
8
8
  import './chunk-HZVUO4DQ.js';
9
- import './chunk-66XRZUEY.js';
9
+ import './chunk-JT2UTBZO.js';
10
10
  import './chunk-SGIBJGAV.js';
11
11
  import './chunk-24KYXRHB.js';
12
- import './chunk-GEMVBBN7.js';
12
+ import './chunk-XPY27NZT.js';
13
13
  import './chunk-WQ37FH6C.js';
14
14
  import './chunk-JHRYYA2I.js';
15
15
  import './chunk-OPIMNRNA.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/oxlint",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "description": "A package containing the base Oxlint configuration used by Storm Software across many projects.",
6
6
  "keywords": ["oxlint", "oxlint-config", "storm-ops", "storm-software"],
@@ -127,9 +127,9 @@
127
127
  "types": "./dist/index.d.ts",
128
128
  "files": ["dist/**/*"],
129
129
  "dependencies": {
130
- "@storm-software/eslint-plugin-banner": "0.0.7",
131
- "@storm-software/eslint-plugin-pnpm": "0.0.7",
132
- "@storm-software/eslint-plugin-tsdoc": "0.0.7",
130
+ "@storm-software/eslint-plugin-banner": "0.0.8",
131
+ "@storm-software/eslint-plugin-pnpm": "0.0.8",
132
+ "@storm-software/eslint-plugin-tsdoc": "0.0.8",
133
133
  "defu": "^6.1.7",
134
134
  "eslint-config-prettier": "^10.1.8",
135
135
  "eslint-plugin-prettier": "^5.5.6",
@@ -151,5 +151,5 @@
151
151
  },
152
152
  "peerDependencies": { "oxlint": "^1.68.0", "oxlint-tsgolint": "^0.14.2" },
153
153
  "publishConfig": { "access": "public" },
154
- "gitHead": "2edf2f31d40773cf35694a29842bd1b257160479"
154
+ "gitHead": "26f7a9ce6b6143aeac371a55816e83d27b6ea4d6"
155
155
  }
@@ -1,16 +0,0 @@
1
- import config from 'eslint-plugin-prettier/recommended';
2
-
3
- // src/configs/prettier.ts
4
- function prettier() {
5
- return {
6
- jsPlugins: ["eslint-plugin-prettier"],
7
- rules: {
8
- ...config.rules,
9
- "prettier/prettier": "error",
10
- "arrow-body-style": "off",
11
- "prefer-arrow-callback": "off"
12
- }
13
- };
14
- }
15
-
16
- export { prettier };