@luxass/eslint-config 4.2.3 → 4.2.4
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/{chunk-IASQD7KX.mjs → chunk-3ZMCYBTA.mjs} +2 -14
- package/dist/chunk-MX3BZIQW.mjs +117 -0
- package/dist/{chunk-K6TLNQJF.mjs → chunk-RAIFRO2A.mjs} +0 -1
- package/dist/configs/astro.cjs +45 -7
- package/dist/configs/astro.d.cts +1 -1
- package/dist/configs/astro.d.ts +1 -1
- package/dist/configs/astro.mjs +1 -1
- package/dist/configs/comments.d.cts +1 -1
- package/dist/configs/comments.d.ts +1 -1
- package/dist/configs/formatters.d.cts +1 -1
- package/dist/configs/formatters.d.ts +1 -1
- package/dist/configs/ignores.d.cts +1 -1
- package/dist/configs/ignores.d.ts +1 -1
- package/dist/configs/imports.d.cts +1 -1
- package/dist/configs/imports.d.ts +1 -1
- package/dist/configs/index.cjs +373 -22
- package/dist/configs/index.d.cts +1 -1
- package/dist/configs/index.d.ts +1 -1
- package/dist/configs/index.mjs +12 -4
- package/dist/configs/javascript.cjs +0 -1
- package/dist/configs/javascript.d.cts +1 -1
- package/dist/configs/javascript.d.ts +1 -1
- package/dist/configs/javascript.mjs +1 -1
- package/dist/configs/jsdoc.d.cts +1 -1
- package/dist/configs/jsdoc.d.ts +1 -1
- package/dist/configs/jsonc.d.cts +1 -1
- package/dist/configs/jsonc.d.ts +1 -1
- package/dist/configs/markdown.d.cts +1 -1
- package/dist/configs/markdown.d.ts +1 -1
- package/dist/configs/nextjs.d.cts +1 -1
- package/dist/configs/nextjs.d.ts +1 -1
- package/dist/configs/node.d.cts +1 -1
- package/dist/configs/node.d.ts +1 -1
- package/dist/configs/perfectionist.d.cts +1 -1
- package/dist/configs/perfectionist.d.ts +1 -1
- package/dist/configs/react.d.cts +1 -1
- package/dist/configs/react.d.ts +1 -1
- package/dist/configs/solid.d.cts +1 -1
- package/dist/configs/solid.d.ts +1 -1
- package/dist/configs/sort.d.cts +1 -1
- package/dist/configs/sort.d.ts +1 -1
- package/dist/configs/stylistic.d.cts +1 -1
- package/dist/configs/stylistic.d.ts +1 -1
- package/dist/configs/tailwindcss.d.cts +1 -1
- package/dist/configs/tailwindcss.d.ts +1 -1
- package/dist/configs/test.d.cts +1 -1
- package/dist/configs/test.d.ts +1 -1
- package/dist/configs/toml.d.cts +1 -1
- package/dist/configs/toml.d.ts +1 -1
- package/dist/configs/typescript.cjs +2 -14
- package/dist/configs/typescript.d.cts +1 -1
- package/dist/configs/typescript.d.ts +1 -1
- package/dist/configs/typescript.mjs +1 -1
- package/dist/configs/unicorn.d.cts +1 -1
- package/dist/configs/unicorn.d.ts +1 -1
- package/dist/configs/unocss.d.cts +1 -1
- package/dist/configs/unocss.d.ts +1 -1
- package/dist/configs/vue.d.cts +1 -1
- package/dist/configs/vue.d.ts +1 -1
- package/dist/configs/yaml.d.cts +1 -1
- package/dist/configs/yaml.d.ts +1 -1
- package/dist/index.cjs +60 -35
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +10 -10
- package/dist/{types-A-NO9UF1.d.cts → types-HqEzZfQU.d.cts} +6 -6
- package/dist/{types-A-NO9UF1.d.ts → types-HqEzZfQU.d.ts} +6 -6
- package/package.json +1 -1
- package/dist/chunk-GBLPCM3X.mjs +0 -79
- /package/dist/{chunk-ME2OAMS3.mjs → chunk-YGZJUKJC.mjs} +0 -0
package/dist/configs/react.d.cts
CHANGED
package/dist/configs/react.d.ts
CHANGED
package/dist/configs/solid.d.cts
CHANGED
package/dist/configs/solid.d.ts
CHANGED
package/dist/configs/sort.d.cts
CHANGED
package/dist/configs/sort.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@stylistic/eslint-plugin';
|
|
2
|
-
export { S as StylisticConfig,
|
|
2
|
+
export { S as StylisticConfig, x as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-HqEzZfQU.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@stylistic/eslint-plugin';
|
|
2
|
-
export { S as StylisticConfig,
|
|
2
|
+
export { S as StylisticConfig, x as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-HqEzZfQU.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-
|
|
1
|
+
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-HqEzZfQU.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-
|
|
1
|
+
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-HqEzZfQU.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/test.d.cts
CHANGED
package/dist/configs/test.d.ts
CHANGED
package/dist/configs/toml.d.cts
CHANGED
package/dist/configs/toml.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ async function typescript(options = {}) {
|
|
|
129
129
|
return {
|
|
130
130
|
files: files2,
|
|
131
131
|
...ignores ? { ignores } : {},
|
|
132
|
-
name: `
|
|
132
|
+
name: `luxass:typescript:${typeAware ? "type-aware-parser" : "parser"}`,
|
|
133
133
|
languageOptions: {
|
|
134
134
|
parser: parserTs,
|
|
135
135
|
parserOptions: {
|
|
@@ -160,18 +160,6 @@ async function typescript(options = {}) {
|
|
|
160
160
|
{
|
|
161
161
|
name: "luxass:typescript:rules",
|
|
162
162
|
files,
|
|
163
|
-
languageOptions: {
|
|
164
|
-
parser: parserTs,
|
|
165
|
-
parserOptions: {
|
|
166
|
-
extraFileExtensions: exts.map((ext) => `.${ext}`),
|
|
167
|
-
sourceType: "module",
|
|
168
|
-
...tsconfigPath ? {
|
|
169
|
-
project: tsconfigPath,
|
|
170
|
-
tsconfigRootDir: import_node_process2.default.cwd()
|
|
171
|
-
} : {},
|
|
172
|
-
...parserOptions
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
163
|
rules: {
|
|
176
164
|
...renameRules(
|
|
177
165
|
pluginTs.configs["eslint-recommended"].overrides[0].rules,
|
|
@@ -256,7 +244,7 @@ async function typescript(options = {}) {
|
|
|
256
244
|
}
|
|
257
245
|
},
|
|
258
246
|
{
|
|
259
|
-
name: "
|
|
247
|
+
name: "luxass:typescript:rules-type-aware",
|
|
260
248
|
files: filesTypeAware,
|
|
261
249
|
rules: {
|
|
262
250
|
...tsconfigPath ? typeAwareRules : {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@typescript-eslint/parser';
|
|
2
|
-
export { T as TypeScriptOptions, t as typescript } from '../types-
|
|
2
|
+
export { T as TypeScriptOptions, t as typescript } from '../types-HqEzZfQU.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@typescript-eslint/parser';
|
|
2
|
-
export { T as TypeScriptOptions, t as typescript } from '../types-
|
|
2
|
+
export { T as TypeScriptOptions, t as typescript } from '../types-HqEzZfQU.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/unocss.d.ts
CHANGED
package/dist/configs/vue.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'eslint-processor-vue-blocks';
|
|
2
|
-
export { V as VueOptions, v as vue } from '../types-
|
|
2
|
+
export { V as VueOptions, v as vue } from '../types-HqEzZfQU.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'eslint-processor-vue-blocks';
|
|
2
|
-
export { V as VueOptions, v as vue } from '../types-
|
|
2
|
+
export { V as VueOptions, v as vue } from '../types-HqEzZfQU.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/yaml.d.cts
CHANGED
package/dist/configs/yaml.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -586,7 +586,6 @@ async function javascript(options = {}) {
|
|
|
586
586
|
"no-multi-str": "error",
|
|
587
587
|
"no-new": "error",
|
|
588
588
|
"no-new-func": "error",
|
|
589
|
-
"no-new-object": "error",
|
|
590
589
|
"no-new-symbol": "error",
|
|
591
590
|
"no-new-wrappers": "error",
|
|
592
591
|
"no-obj-calls": "error",
|
|
@@ -1124,7 +1123,7 @@ async function typescript(options = {}) {
|
|
|
1124
1123
|
return {
|
|
1125
1124
|
files: files2,
|
|
1126
1125
|
...ignores2 ? { ignores: ignores2 } : {},
|
|
1127
|
-
name: `
|
|
1126
|
+
name: `luxass:typescript:${typeAware ? "type-aware-parser" : "parser"}`,
|
|
1128
1127
|
languageOptions: {
|
|
1129
1128
|
parser: parserTs,
|
|
1130
1129
|
parserOptions: {
|
|
@@ -1155,18 +1154,6 @@ async function typescript(options = {}) {
|
|
|
1155
1154
|
{
|
|
1156
1155
|
name: "luxass:typescript:rules",
|
|
1157
1156
|
files,
|
|
1158
|
-
languageOptions: {
|
|
1159
|
-
parser: parserTs,
|
|
1160
|
-
parserOptions: {
|
|
1161
|
-
extraFileExtensions: exts.map((ext) => `.${ext}`),
|
|
1162
|
-
sourceType: "module",
|
|
1163
|
-
...tsconfigPath ? {
|
|
1164
|
-
project: tsconfigPath,
|
|
1165
|
-
tsconfigRootDir: import_node_process2.default.cwd()
|
|
1166
|
-
} : {},
|
|
1167
|
-
...parserOptions
|
|
1168
|
-
}
|
|
1169
|
-
},
|
|
1170
1157
|
rules: {
|
|
1171
1158
|
...renameRules(
|
|
1172
1159
|
pluginTs.configs["eslint-recommended"].overrides[0].rules,
|
|
@@ -1251,7 +1238,7 @@ async function typescript(options = {}) {
|
|
|
1251
1238
|
}
|
|
1252
1239
|
},
|
|
1253
1240
|
{
|
|
1254
|
-
name: "
|
|
1241
|
+
name: "luxass:typescript:rules-type-aware",
|
|
1255
1242
|
files: filesTypeAware,
|
|
1256
1243
|
rules: {
|
|
1257
1244
|
...tsconfigPath ? typeAwareRules : {},
|
|
@@ -2121,9 +2108,10 @@ async function astro(options) {
|
|
|
2121
2108
|
name: "luxass:astro:rules",
|
|
2122
2109
|
files,
|
|
2123
2110
|
languageOptions: {
|
|
2124
|
-
// @ts-expect-error hmmm
|
|
2125
2111
|
globals: {
|
|
2126
|
-
|
|
2112
|
+
"astro/astro": true,
|
|
2113
|
+
"es2020": true,
|
|
2114
|
+
"node": true
|
|
2127
2115
|
},
|
|
2128
2116
|
parser: parserAstro,
|
|
2129
2117
|
parserOptions: {
|
|
@@ -2132,28 +2120,65 @@ async function astro(options) {
|
|
|
2132
2120
|
sourceType: "module"
|
|
2133
2121
|
}
|
|
2134
2122
|
},
|
|
2135
|
-
// @ts-expect-error hmmm
|
|
2136
2123
|
rules: {
|
|
2124
|
+
// Disallow conflicting set directives and child contents
|
|
2125
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-conflict-set-directives/
|
|
2126
|
+
"astro/no-conflict-set-directives": "error",
|
|
2127
|
+
// Disallow using deprecated Astro.canonicalURL
|
|
2128
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-canonicalurl/
|
|
2129
|
+
"astro/no-deprecated-astro-canonicalurl": "error",
|
|
2130
|
+
// Disallow using deprecated Astro.fetchContent()
|
|
2131
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-fetchcontent/
|
|
2132
|
+
"astro/no-deprecated-astro-fetchcontent": "error",
|
|
2133
|
+
// Disallow using deprecated Astro.resolve()
|
|
2134
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/
|
|
2135
|
+
"astro/no-deprecated-astro-resolve": "error",
|
|
2136
|
+
// Disallow using deprecated getEntryBySlug()
|
|
2137
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/
|
|
2138
|
+
"astro/no-deprecated-getentrybyslug": "error",
|
|
2139
|
+
// Disallow unused define:vars={...} in style tag
|
|
2140
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/
|
|
2141
|
+
"astro/no-unused-define-vars-in-style": "error",
|
|
2142
|
+
// Disallow warnings when compiling
|
|
2143
|
+
// https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
|
|
2144
|
+
"astro/valid-compile": "error",
|
|
2137
2145
|
"style/jsx-closing-tag-location": "off",
|
|
2138
2146
|
"style/jsx-indent": "off",
|
|
2139
2147
|
"style/jsx-one-expression-per-line": "off",
|
|
2140
|
-
...pluginAstro.configs.all.rules,
|
|
2141
2148
|
"style/multiline-ternary": ["error", "never"],
|
|
2142
2149
|
...overrides
|
|
2143
2150
|
}
|
|
2144
2151
|
},
|
|
2145
2152
|
{
|
|
2146
|
-
name: "luxass:astro:
|
|
2153
|
+
name: "luxass:astro:scripts-js",
|
|
2147
2154
|
files: [
|
|
2148
2155
|
"**/*.astro/*.js",
|
|
2149
2156
|
"*.astro/*.js"
|
|
2150
2157
|
],
|
|
2151
2158
|
languageOptions: {
|
|
2152
|
-
// @ts-expect-error hmmm
|
|
2153
2159
|
globals: {
|
|
2154
|
-
|
|
2160
|
+
browser: true,
|
|
2161
|
+
es2020: true
|
|
2162
|
+
},
|
|
2163
|
+
parserOptions: {
|
|
2164
|
+
sourceType: "module"
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
name: "luxass:astro:scripts-ts",
|
|
2170
|
+
files: [
|
|
2171
|
+
"**/*.astro/*.ts",
|
|
2172
|
+
"*.astro/*.ts"
|
|
2173
|
+
],
|
|
2174
|
+
languageOptions: {
|
|
2175
|
+
globals: {
|
|
2176
|
+
browser: true,
|
|
2177
|
+
es2020: true
|
|
2155
2178
|
},
|
|
2179
|
+
parser: typescript2 ? await interop(import("@typescript-eslint/parser")) : null,
|
|
2156
2180
|
parserOptions: {
|
|
2181
|
+
project: null,
|
|
2157
2182
|
sourceType: "module"
|
|
2158
2183
|
}
|
|
2159
2184
|
}
|
|
@@ -2378,19 +2403,6 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2378
2403
|
return configs;
|
|
2379
2404
|
}
|
|
2380
2405
|
|
|
2381
|
-
// src/constants.ts
|
|
2382
|
-
var VUE_PACKAGES = ["vue", "nuxt", "vitepress", "@slidev/cli"];
|
|
2383
|
-
var FLAT_CONFIG_PROPS = [
|
|
2384
|
-
"files",
|
|
2385
|
-
"ignores",
|
|
2386
|
-
"languageOptions",
|
|
2387
|
-
"linterOptions",
|
|
2388
|
-
"processor",
|
|
2389
|
-
"plugins",
|
|
2390
|
-
"rules",
|
|
2391
|
-
"settings"
|
|
2392
|
-
];
|
|
2393
|
-
|
|
2394
2406
|
// src/configs/toml.ts
|
|
2395
2407
|
async function toml(options = {}) {
|
|
2396
2408
|
const {
|
|
@@ -2712,6 +2724,19 @@ async function solid(options = {}) {
|
|
|
2712
2724
|
];
|
|
2713
2725
|
}
|
|
2714
2726
|
|
|
2727
|
+
// src/constants.ts
|
|
2728
|
+
var VUE_PACKAGES = ["vue", "nuxt", "vitepress", "@slidev/cli"];
|
|
2729
|
+
var FLAT_CONFIG_PROPS = [
|
|
2730
|
+
"files",
|
|
2731
|
+
"ignores",
|
|
2732
|
+
"languageOptions",
|
|
2733
|
+
"linterOptions",
|
|
2734
|
+
"processor",
|
|
2735
|
+
"plugins",
|
|
2736
|
+
"rules",
|
|
2737
|
+
"settings"
|
|
2738
|
+
];
|
|
2739
|
+
|
|
2715
2740
|
// src/factory.ts
|
|
2716
2741
|
async function luxass(options = {}, ...userConfigs) {
|
|
2717
2742
|
const {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConfigOptions,
|
|
1
|
+
import { C as ConfigOptions, p as FlatConfigItem, q as Awaitable, w as UserConfigItem } from './types-HqEzZfQU.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConfigOptions,
|
|
1
|
+
import { C as ConfigOptions, p as FlatConfigItem, q as Awaitable, w as UserConfigItem } from './types-HqEzZfQU.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
solid
|
|
3
|
-
} from "./chunk-C5YCKPY4.mjs";
|
|
4
|
-
import {
|
|
5
|
-
toml
|
|
6
|
-
} from "./chunk-UMUUVFB7.mjs";
|
|
7
|
-
import "./chunk-ME2OAMS3.mjs";
|
|
1
|
+
import "./chunk-YGZJUKJC.mjs";
|
|
8
2
|
import {
|
|
9
3
|
unocss
|
|
10
4
|
} from "./chunk-KJ7ZCBK4.mjs";
|
|
@@ -14,6 +8,9 @@ import {
|
|
|
14
8
|
import {
|
|
15
9
|
yaml
|
|
16
10
|
} from "./chunk-WOYZWHPM.mjs";
|
|
11
|
+
import {
|
|
12
|
+
solid
|
|
13
|
+
} from "./chunk-C5YCKPY4.mjs";
|
|
17
14
|
import {
|
|
18
15
|
sortPackageJson,
|
|
19
16
|
sortTsconfig
|
|
@@ -25,15 +22,18 @@ import {
|
|
|
25
22
|
test
|
|
26
23
|
} from "./chunk-WRURTO5T.mjs";
|
|
27
24
|
import "./chunk-WDSV2EFG.mjs";
|
|
25
|
+
import {
|
|
26
|
+
toml
|
|
27
|
+
} from "./chunk-UMUUVFB7.mjs";
|
|
28
28
|
import {
|
|
29
29
|
typescript
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3ZMCYBTA.mjs";
|
|
31
31
|
import {
|
|
32
32
|
unicorn
|
|
33
33
|
} from "./chunk-RVSUTDCE.mjs";
|
|
34
34
|
import {
|
|
35
35
|
javascript
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RAIFRO2A.mjs";
|
|
37
37
|
import {
|
|
38
38
|
jsdoc
|
|
39
39
|
} from "./chunk-DVQQVCGF.mjs";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-RNFKNSHW.mjs";
|
|
58
58
|
import {
|
|
59
59
|
astro
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MX3BZIQW.mjs";
|
|
61
61
|
import {
|
|
62
62
|
comments
|
|
63
63
|
} from "./chunk-DAJA5AV3.mjs";
|
|
@@ -434,11 +434,6 @@ interface FormattersOptions {
|
|
|
434
434
|
}
|
|
435
435
|
declare function formatters(options?: FormattersOptions | true, stylistic?: StylisticConfig): Promise<FlatConfigItem[]>;
|
|
436
436
|
|
|
437
|
-
interface NoOnlyTestsOptions {
|
|
438
|
-
blocks?: string[];
|
|
439
|
-
focus?: string[];
|
|
440
|
-
}
|
|
441
|
-
|
|
442
437
|
interface TOMLOptions {
|
|
443
438
|
/**
|
|
444
439
|
* Override rules.
|
|
@@ -487,6 +482,11 @@ interface SolidOptions {
|
|
|
487
482
|
}
|
|
488
483
|
declare function solid(options?: SolidOptions): Promise<FlatConfigItem[]>;
|
|
489
484
|
|
|
485
|
+
interface NoOnlyTestsOptions {
|
|
486
|
+
blocks?: string[];
|
|
487
|
+
focus?: string[];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
490
|
type WrapRuleConfig<T extends {
|
|
491
491
|
[key: string]: any;
|
|
492
492
|
}> = {
|
|
@@ -665,4 +665,4 @@ interface ConfigOptions {
|
|
|
665
665
|
solid?: boolean | SolidOptions;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j,
|
|
668
|
+
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j, toml as k, type TOMLOptions as l, solid as m, nextjs as n, type SolidOptions as o, type FlatConfigItem as p, type Awaitable as q, react as r, stylistic as s, typescript as t, unocss as u, vue as v, type UserConfigItem as w, StylisticConfigDefaults as x, yaml as y };
|
|
@@ -434,11 +434,6 @@ interface FormattersOptions {
|
|
|
434
434
|
}
|
|
435
435
|
declare function formatters(options?: FormattersOptions | true, stylistic?: StylisticConfig): Promise<FlatConfigItem[]>;
|
|
436
436
|
|
|
437
|
-
interface NoOnlyTestsOptions {
|
|
438
|
-
blocks?: string[];
|
|
439
|
-
focus?: string[];
|
|
440
|
-
}
|
|
441
|
-
|
|
442
437
|
interface TOMLOptions {
|
|
443
438
|
/**
|
|
444
439
|
* Override rules.
|
|
@@ -487,6 +482,11 @@ interface SolidOptions {
|
|
|
487
482
|
}
|
|
488
483
|
declare function solid(options?: SolidOptions): Promise<FlatConfigItem[]>;
|
|
489
484
|
|
|
485
|
+
interface NoOnlyTestsOptions {
|
|
486
|
+
blocks?: string[];
|
|
487
|
+
focus?: string[];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
490
|
type WrapRuleConfig<T extends {
|
|
491
491
|
[key: string]: any;
|
|
492
492
|
}> = {
|
|
@@ -665,4 +665,4 @@ interface ConfigOptions {
|
|
|
665
665
|
solid?: boolean | SolidOptions;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j,
|
|
668
|
+
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j, toml as k, type TOMLOptions as l, solid as m, nextjs as n, type SolidOptions as o, type FlatConfigItem as p, type Awaitable as q, react as r, stylistic as s, typescript as t, unocss as u, vue as v, type UserConfigItem as w, StylisticConfigDefaults as x, yaml as y };
|
package/package.json
CHANGED
package/dist/chunk-GBLPCM3X.mjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interop
|
|
3
|
-
} from "./chunk-4YBQZLPS.mjs";
|
|
4
|
-
import {
|
|
5
|
-
GLOB_ASTRO
|
|
6
|
-
} from "./chunk-ATRL3UZP.mjs";
|
|
7
|
-
|
|
8
|
-
// src/configs/astro.ts
|
|
9
|
-
async function astro(options) {
|
|
10
|
-
const {
|
|
11
|
-
a11y = false,
|
|
12
|
-
files = [GLOB_ASTRO],
|
|
13
|
-
overrides = {},
|
|
14
|
-
typescript = true
|
|
15
|
-
} = options;
|
|
16
|
-
const [
|
|
17
|
-
pluginAstro,
|
|
18
|
-
parserAstro,
|
|
19
|
-
pluginA11y
|
|
20
|
-
] = await Promise.all([
|
|
21
|
-
interop(import("eslint-plugin-astro")),
|
|
22
|
-
interop(import("astro-eslint-parser")),
|
|
23
|
-
...a11y ? [interop(import("eslint-plugin-jsx-a11y"))] : []
|
|
24
|
-
]);
|
|
25
|
-
return [
|
|
26
|
-
{
|
|
27
|
-
name: "luxass:astro:setup",
|
|
28
|
-
plugins: {
|
|
29
|
-
astro: pluginAstro,
|
|
30
|
-
...a11y ? { "jsx-a11y": pluginA11y } : {}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "luxass:astro:rules",
|
|
35
|
-
files,
|
|
36
|
-
languageOptions: {
|
|
37
|
-
// @ts-expect-error hmmm
|
|
38
|
-
globals: {
|
|
39
|
-
...pluginAstro.configs.base.overrides[0].env
|
|
40
|
-
},
|
|
41
|
-
parser: parserAstro,
|
|
42
|
-
parserOptions: {
|
|
43
|
-
extraFileExtensions: [".astro"],
|
|
44
|
-
parser: typescript ? await interop(import("@typescript-eslint/parser")) : null,
|
|
45
|
-
sourceType: "module"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
// @ts-expect-error hmmm
|
|
49
|
-
rules: {
|
|
50
|
-
"style/jsx-closing-tag-location": "off",
|
|
51
|
-
"style/jsx-indent": "off",
|
|
52
|
-
"style/jsx-one-expression-per-line": "off",
|
|
53
|
-
...pluginAstro.configs.all.rules,
|
|
54
|
-
"style/multiline-ternary": ["error", "never"],
|
|
55
|
-
...overrides
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "luxass:astro:rules:scripts",
|
|
60
|
-
files: [
|
|
61
|
-
"**/*.astro/*.js",
|
|
62
|
-
"*.astro/*.js"
|
|
63
|
-
],
|
|
64
|
-
languageOptions: {
|
|
65
|
-
// @ts-expect-error hmmm
|
|
66
|
-
globals: {
|
|
67
|
-
...pluginAstro.configs.base.overrides[1].env
|
|
68
|
-
},
|
|
69
|
-
parserOptions: {
|
|
70
|
-
sourceType: "module"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export {
|
|
78
|
-
astro
|
|
79
|
-
};
|
|
File without changes
|