@eslint-sets/eslint-config 6.0.0-beta.1 → 6.0.0-beta.3
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 +5 -12
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +9 -2
- package/dist/cli/index.mjs +10 -2
- package/dist/cli/types.d.ts +11 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/configs/angular.d.ts +16 -0
- package/dist/configs/angular.d.ts.map +1 -0
- package/dist/configs/astro.d.ts +11 -0
- package/dist/configs/astro.d.ts.map +1 -0
- package/dist/configs/command.d.ts +7 -0
- package/dist/configs/command.d.ts.map +1 -0
- package/dist/configs/disables.d.ts +7 -0
- package/dist/configs/disables.d.ts.map +1 -0
- package/dist/configs/e18e.d.ts +12 -0
- package/dist/configs/e18e.d.ts.map +1 -0
- package/dist/configs/eslint-comments.d.ts +12 -0
- package/dist/configs/eslint-comments.d.ts.map +1 -0
- package/dist/configs/formatters.d.ts +39 -0
- package/dist/configs/formatters.d.ts.map +1 -0
- package/dist/configs/ignores.d.ts +6 -0
- package/dist/configs/ignores.d.ts.map +1 -0
- package/dist/configs/imports.d.ts +19 -0
- package/dist/configs/imports.d.ts.map +1 -0
- package/dist/configs/index.d.ts +49 -0
- package/dist/configs/index.d.ts.map +1 -0
- package/dist/configs/javascript.d.ts +16 -0
- package/dist/configs/javascript.d.ts.map +1 -0
- package/dist/configs/jsonc.d.ts +11 -0
- package/dist/configs/jsonc.d.ts.map +1 -0
- package/dist/configs/jsx-a11y.d.ts +11 -0
- package/dist/configs/jsx-a11y.d.ts.map +1 -0
- package/dist/configs/markdown.d.ts +11 -0
- package/dist/configs/markdown.d.ts.map +1 -0
- package/dist/configs/nextjs.d.ts +11 -0
- package/dist/configs/nextjs.d.ts.map +1 -0
- package/dist/configs/no-only-tests.d.ts +12 -0
- package/dist/configs/no-only-tests.d.ts.map +1 -0
- package/dist/configs/node.d.ts +6 -0
- package/dist/configs/node.d.ts.map +1 -0
- package/dist/configs/nuxt.d.ts +19 -0
- package/dist/configs/nuxt.d.ts.map +1 -0
- package/dist/configs/perfectionist.d.ts +27 -0
- package/dist/configs/perfectionist.d.ts.map +1 -0
- package/dist/configs/pnpm.d.ts +17 -0
- package/dist/configs/pnpm.d.ts.map +1 -0
- package/dist/configs/prettier.d.ts +77 -0
- package/dist/configs/prettier.d.ts.map +1 -0
- package/dist/configs/react.d.ts +18 -0
- package/dist/configs/react.d.ts.map +1 -0
- package/dist/configs/regexp.d.ts +6 -0
- package/dist/configs/regexp.d.ts.map +1 -0
- package/dist/configs/solid.d.ts +6 -0
- package/dist/configs/solid.d.ts.map +1 -0
- package/dist/configs/sort.d.ts +33 -0
- package/dist/configs/sort.d.ts.map +1 -0
- package/dist/configs/stylistic.d.ts +69 -0
- package/dist/configs/stylistic.d.ts.map +1 -0
- package/dist/configs/svelte.d.ts +17 -0
- package/dist/configs/svelte.d.ts.map +1 -0
- package/dist/configs/test.d.ts +17 -0
- package/dist/configs/test.d.ts.map +1 -0
- package/dist/configs/toml.d.ts +6 -0
- package/dist/configs/toml.d.ts.map +1 -0
- package/dist/configs/typescript.d.ts +32 -0
- package/dist/configs/typescript.d.ts.map +1 -0
- package/dist/configs/unicorn.d.ts +17 -0
- package/dist/configs/unicorn.d.ts.map +1 -0
- package/dist/configs/unocss.d.ts +16 -0
- package/dist/configs/unocss.d.ts.map +1 -0
- package/dist/configs/vue-a11y.d.ts +12 -0
- package/dist/configs/vue-a11y.d.ts.map +1 -0
- package/dist/configs/vue.d.ts +23 -0
- package/dist/configs/vue.d.ts.map +1 -0
- package/dist/configs/yaml.d.ts +11 -0
- package/dist/configs/yaml.d.ts.map +1 -0
- package/dist/constants.d.ts +61 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +15 -21981
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +253 -644
- package/dist/index.mjs +252 -644
- package/dist/plugins.d.ts +65 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/types.d.ts +270 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/git.d.ts +13 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/index.d.ts +51 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/package.json +5 -6
- package/dist/cli/index.d.mts +0 -2
- package/dist/index.d.mts +0 -21996
package/README.md
CHANGED
|
@@ -122,6 +122,8 @@ export default eslintConfig({
|
|
|
122
122
|
astro: true,
|
|
123
123
|
|
|
124
124
|
// Relax rules for scripts (default: true)
|
|
125
|
+
// Applies to: scripts/**, bin/**, cli/**, tasks/**, tools/**
|
|
126
|
+
// Allows: console, process.exit, process.env, shebang, require, etc.
|
|
125
127
|
command: true,
|
|
126
128
|
// Disable rules in config files (default: true)
|
|
127
129
|
disables: true,
|
|
@@ -185,7 +187,6 @@ export default eslintConfig({
|
|
|
185
187
|
|
|
186
188
|
// Or with options:
|
|
187
189
|
react: {
|
|
188
|
-
a11y: true, // Enable JSX accessibility rules
|
|
189
190
|
reactCompiler: true, // React Compiler support
|
|
190
191
|
},
|
|
191
192
|
|
|
@@ -301,7 +302,7 @@ export default eslintConfig({
|
|
|
301
302
|
// Use Prettier with custom options
|
|
302
303
|
export default eslintConfig({
|
|
303
304
|
prettier: {
|
|
304
|
-
printWidth:
|
|
305
|
+
printWidth: 240,
|
|
305
306
|
semi: false,
|
|
306
307
|
singleQuote: true,
|
|
307
308
|
tabWidth: 2,
|
|
@@ -326,9 +327,7 @@ export default eslintConfig({
|
|
|
326
327
|
|
|
327
328
|
// React/JSX accessibility
|
|
328
329
|
export default eslintConfig({
|
|
329
|
-
|
|
330
|
-
a11y: true,
|
|
331
|
-
},
|
|
330
|
+
jsxA11y: true,
|
|
332
331
|
})
|
|
333
332
|
|
|
334
333
|
// Or standalone JSX a11y
|
|
@@ -374,7 +373,6 @@ import eslintConfig from '@eslint-sets/eslint-config'
|
|
|
374
373
|
|
|
375
374
|
export default eslintConfig({
|
|
376
375
|
react: {
|
|
377
|
-
a11y: true,
|
|
378
376
|
reactCompiler: true,
|
|
379
377
|
},
|
|
380
378
|
typescript: true,
|
|
@@ -580,8 +578,7 @@ The following packages are optional and will be used if installed:
|
|
|
580
578
|
|
|
581
579
|
### React
|
|
582
580
|
|
|
583
|
-
-
|
|
584
|
-
- `eslint-plugin-react-hooks` - React Hooks support
|
|
581
|
+
- `@eslint-react/eslint-plugin` - Modern React linting (includes core, dom, web-api, hooks-extra, naming-convention, debug)
|
|
585
582
|
- `eslint-plugin-react-refresh` - React Refresh support
|
|
586
583
|
|
|
587
584
|
### Vue
|
|
@@ -834,10 +831,6 @@ Add to your `.vscode/settings.json`:
|
|
|
834
831
|
}
|
|
835
832
|
```
|
|
836
833
|
|
|
837
|
-
## Comparison with @antfu/eslint-config
|
|
838
|
-
|
|
839
|
-
See [COMPARISON.md](./COMPARISON.md) for a detailed comparison with `@antfu/eslint-config`.
|
|
840
|
-
|
|
841
834
|
## Changelog
|
|
842
835
|
|
|
843
836
|
See [CHANGELOG.md](./CHANGELOG.md) for release history.
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
@@ -23,8 +24,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
24
|
));
|
|
24
25
|
|
|
25
26
|
// src/cli/index.ts
|
|
26
|
-
var import_node_fs = require("fs");
|
|
27
|
-
var import_node_path = require("path");
|
|
27
|
+
var import_node_fs = require("node:fs");
|
|
28
|
+
var import_node_path = require("node:path");
|
|
28
29
|
var p = __toESM(require("@clack/prompts"));
|
|
29
30
|
async function main() {
|
|
30
31
|
console.clear();
|
|
@@ -210,8 +211,14 @@ function getDependencies(answers) {
|
|
|
210
211
|
if (answers.formatter === "prettier") {
|
|
211
212
|
deps.push("prettier");
|
|
212
213
|
}
|
|
214
|
+
if (answers.frameworks.includes("react")) {
|
|
215
|
+
deps.push("@eslint-react/eslint-plugin");
|
|
216
|
+
deps.push("eslint-plugin-react-refresh");
|
|
217
|
+
}
|
|
213
218
|
if (answers.frameworks.includes("nextjs")) {
|
|
214
219
|
deps.push("@next/eslint-plugin-next");
|
|
220
|
+
deps.push("@eslint-react/eslint-plugin");
|
|
221
|
+
deps.push("eslint-plugin-react-refresh");
|
|
215
222
|
}
|
|
216
223
|
if (answers.frameworks.includes("astro")) {
|
|
217
224
|
deps.push("eslint-plugin-astro");
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
// src/cli/index.ts
|
|
2
|
-
import { existsSync, writeFileSync } from "fs";
|
|
3
|
-
import { resolve } from "path";
|
|
4
|
+
import { existsSync, writeFileSync } from "node:fs";
|
|
5
|
+
import { resolve } from "node:path";
|
|
4
6
|
import * as p from "@clack/prompts";
|
|
5
7
|
async function main() {
|
|
6
8
|
console.clear();
|
|
@@ -186,8 +188,14 @@ function getDependencies(answers) {
|
|
|
186
188
|
if (answers.formatter === "prettier") {
|
|
187
189
|
deps.push("prettier");
|
|
188
190
|
}
|
|
191
|
+
if (answers.frameworks.includes("react")) {
|
|
192
|
+
deps.push("@eslint-react/eslint-plugin");
|
|
193
|
+
deps.push("eslint-plugin-react-refresh");
|
|
194
|
+
}
|
|
189
195
|
if (answers.frameworks.includes("nextjs")) {
|
|
190
196
|
deps.push("@next/eslint-plugin-next");
|
|
197
|
+
deps.push("@eslint-react/eslint-plugin");
|
|
198
|
+
deps.push("eslint-plugin-react-refresh");
|
|
191
199
|
}
|
|
192
200
|
if (answers.frameworks.includes("astro")) {
|
|
193
201
|
deps.push("eslint-plugin-astro");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cli/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,OAAO,CAAA;IACxB,YAAY,EAAE,OAAO,CAAA;IACrB,IAAI,EAAE,KAAK,GAAG,KAAK,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Angular configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface AngularOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Template files glob pattern
|
|
9
|
+
*/
|
|
10
|
+
templateFiles?: string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Angular configuration
|
|
14
|
+
*/
|
|
15
|
+
export declare function angular(options?: AngularOptions): Promise<Linter.Config[]>;
|
|
16
|
+
//# sourceMappingURL=angular.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../src/configs/angular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACvD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CA2EpF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Astro configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type AstroOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* Astro configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function astro(options?: AstroOptions): Promise<Linter.Config[]>;
|
|
11
|
+
//# sourceMappingURL=astro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astro.d.ts","sourceRoot":"","sources":["../../src/configs/astro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAA;AAM3C;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CA4ChF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/configs/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAapC;;;GAGG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAkDzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disables.d.ts","sourceRoot":"","sources":["../../src/configs/disables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAepC;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,CAiE1C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* e18e (modernization) configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type E18eOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* e18e modernization configuration
|
|
9
|
+
* Provides rules for modernizing JavaScript/TypeScript code
|
|
10
|
+
*/
|
|
11
|
+
export declare function e18e(options?: E18eOptions): Promise<Linter.Config[]>;
|
|
12
|
+
//# sourceMappingURL=e18e.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e18e.d.ts","sourceRoot":"","sources":["../../src/configs/e18e.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAA;AAU1C;;;GAGG;AACH,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CA+B9E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* ESLint comments configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type EslintCommentsOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* ESLint comments configuration
|
|
9
|
+
* Rules for ESLint directive comments (eslint-disable, etc.)
|
|
10
|
+
*/
|
|
11
|
+
export declare function eslintComments(options?: EslintCommentsOptions): Promise<Linter.Config[]>;
|
|
12
|
+
//# sourceMappingURL=eslint-comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-comments.d.ts","sourceRoot":"","sources":["../../src/configs/eslint-comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAA;AAKpD;;;GAGG;AACH,wBAAsB,cAAc,CACnC,OAAO,GAAE,qBAA0B,GACjC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAiC1B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* External formatters configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface FormattersOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Enable CSS formatting
|
|
9
|
+
* @default 'prettier'
|
|
10
|
+
*/
|
|
11
|
+
css?: 'prettier' | 'none';
|
|
12
|
+
/**
|
|
13
|
+
* Enable GraphQL formatting
|
|
14
|
+
*/
|
|
15
|
+
graphql?: 'prettier' | 'none';
|
|
16
|
+
/**
|
|
17
|
+
* Enable HTML formatting
|
|
18
|
+
* @default 'prettier'
|
|
19
|
+
*/
|
|
20
|
+
html?: 'prettier' | 'none';
|
|
21
|
+
/**
|
|
22
|
+
* Enable Markdown formatting (beyond standard markdown config)
|
|
23
|
+
*/
|
|
24
|
+
markdown?: 'prettier' | 'none';
|
|
25
|
+
/**
|
|
26
|
+
* Enable SVG formatting
|
|
27
|
+
*/
|
|
28
|
+
svg?: 'prettier' | 'none';
|
|
29
|
+
/**
|
|
30
|
+
* Enable XML formatting
|
|
31
|
+
*/
|
|
32
|
+
xml?: 'prettier' | 'none';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* External formatters configuration
|
|
36
|
+
* Provides formatting for CSS, HTML, XML, SVG, GraphQL, and more
|
|
37
|
+
*/
|
|
38
|
+
export declare function formatters(options?: FormattersOptions): Promise<Linter.Config[]>;
|
|
39
|
+
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/configs/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IAC1D;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAE7B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAE9B;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;CACzB;AAOD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAmH1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../src/configs/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC;;GAEG;AACH,wBAAgB,OAAO,CAAC,WAAW,GAAE,MAAM,EAAO,GAAG,MAAM,CAAC,MAAM,CAKjE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Import configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface ImportsOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Enable stylistic rules
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
stylistic?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Import configuration
|
|
15
|
+
*
|
|
16
|
+
* Note: Import sorting is handled by perfectionist/sort-imports, not import-x/order
|
|
17
|
+
*/
|
|
18
|
+
export declare function imports(options?: ImportsOptions): Linter.Config;
|
|
19
|
+
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/configs/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAKhD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,MAAM,CAAC,MAAM,CA6CnE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { Options } from '../types';
|
|
3
|
+
import { angular } from './angular';
|
|
4
|
+
import { astro } from './astro';
|
|
5
|
+
import { command } from './command';
|
|
6
|
+
import { disables } from './disables';
|
|
7
|
+
import { e18e } from './e18e';
|
|
8
|
+
import { eslintComments } from './eslint-comments';
|
|
9
|
+
import { formatters } from './formatters';
|
|
10
|
+
import { ignores } from './ignores';
|
|
11
|
+
import { imports } from './imports';
|
|
12
|
+
import { javascript } from './javascript';
|
|
13
|
+
import { jsonc } from './jsonc';
|
|
14
|
+
import { jsxA11y } from './jsx-a11y';
|
|
15
|
+
import { markdown } from './markdown';
|
|
16
|
+
import { nextjs } from './nextjs';
|
|
17
|
+
import { noOnlyTests } from './no-only-tests';
|
|
18
|
+
import { node } from './node';
|
|
19
|
+
import { nuxt } from './nuxt';
|
|
20
|
+
import { perfectionist } from './perfectionist';
|
|
21
|
+
import { pnpm } from './pnpm';
|
|
22
|
+
import { prettier } from './prettier';
|
|
23
|
+
import { react } from './react';
|
|
24
|
+
import { regexp } from './regexp';
|
|
25
|
+
import { solid } from './solid';
|
|
26
|
+
import { sortPackageJson, sortTsconfig } from './sort';
|
|
27
|
+
import { stylistic } from './stylistic';
|
|
28
|
+
import { svelte } from './svelte';
|
|
29
|
+
import { test } from './test';
|
|
30
|
+
import { toml } from './toml';
|
|
31
|
+
import { typescript } from './typescript';
|
|
32
|
+
import { unicorn } from './unicorn';
|
|
33
|
+
import { unocss } from './unocss';
|
|
34
|
+
import { vue } from './vue';
|
|
35
|
+
import { vueA11y } from './vue-a11y';
|
|
36
|
+
import { yaml } from './yaml';
|
|
37
|
+
/**
|
|
38
|
+
* Create the ESLint configuration
|
|
39
|
+
*/
|
|
40
|
+
export declare function config(options?: Options): Promise<Linter.Config[]>;
|
|
41
|
+
export * from '../constants';
|
|
42
|
+
export { angular, astro, command, disables, e18e, eslintComments, formatters, ignores, imports, javascript, jsonc, jsxA11y, markdown, nextjs, node, noOnlyTests, nuxt, perfectionist, pnpm, prettier, react, regexp, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toml, typescript, unicorn, unocss, vue, vueA11y, yaml, };
|
|
43
|
+
export * from '../plugins';
|
|
44
|
+
export type { FrameworkOptions, Linter, Options, OptionsOverrides, ProjectType } from '../types';
|
|
45
|
+
export * from '../utils';
|
|
46
|
+
export type { ReactOptions } from './react';
|
|
47
|
+
export type { TypeScriptOptions } from './typescript';
|
|
48
|
+
export type { VueOptions } from './vue';
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configs/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* JavaScript configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface JavaScriptOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Whether running in editor environment
|
|
9
|
+
*/
|
|
10
|
+
isInEditor?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* JavaScript base configuration
|
|
14
|
+
*/
|
|
15
|
+
export declare function javascript(options?: JavaScriptOptions): Linter.Config;
|
|
16
|
+
//# sourceMappingURL=javascript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../src/configs/javascript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAKhD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,CAAC,MAAM,CAsMzE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* JSON/JSONC configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type JsoncOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* JSON/JSONC/JSON5 configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function jsonc(options?: JsoncOptions): Linter.Config[];
|
|
11
|
+
//# sourceMappingURL=jsonc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../src/configs/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAKhD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAA;AAE3C;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,CA6CjE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* JSX Accessibility configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type JsxA11yOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* JSX Accessibility configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function jsxA11y(options?: JsxA11yOptions): Promise<Linter.Config[]>;
|
|
11
|
+
//# sourceMappingURL=jsx-a11y.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-a11y.d.ts","sourceRoot":"","sources":["../../src/configs/jsx-a11y.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAA;AAW7C;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAiEpF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Markdown configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type MarkdownOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* Markdown configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function markdown(options?: MarkdownOptions): Promise<Linter.Config[]>;
|
|
11
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/configs/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAK9C;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAwCtF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type NextjsOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* Next.js configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function nextjs(options?: NextjsOptions): Promise<Linter.Config[]>;
|
|
11
|
+
//# sourceMappingURL=nextjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextjs.d.ts","sourceRoot":"","sources":["../../src/configs/nextjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAA;AAK5C;;GAEG;AACH,wBAAsB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CA4ClF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* No only tests configuration options
|
|
5
|
+
*/
|
|
6
|
+
export type NoOnlyTestsOptions = OptionsOverrides;
|
|
7
|
+
/**
|
|
8
|
+
* No only tests configuration
|
|
9
|
+
* Prevents committing .only() tests
|
|
10
|
+
*/
|
|
11
|
+
export declare function noOnlyTests(options?: NoOnlyTestsOptions): Promise<Linter.Config[]>;
|
|
12
|
+
//# sourceMappingURL=no-only-tests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/configs/no-only-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAOjD;;;GAGG;AACH,wBAAsB,WAAW,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAyC5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/configs/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC;;GAEG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,CAmDtC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Nuxt configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface NuxtOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Enable Nuxt-specific rules
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
rules?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Nuxt configuration
|
|
15
|
+
* Note: Nuxt projects use Vue configuration as base
|
|
16
|
+
* This adds Nuxt-specific rules
|
|
17
|
+
*/
|
|
18
|
+
export declare function nuxt(options?: NuxtOptions): Linter.Config[];
|
|
19
|
+
//# sourceMappingURL=nuxt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../../src/configs/nuxt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACpD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,CAoB/D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Perfectionist (sorting) configuration options
|
|
4
|
+
*/
|
|
5
|
+
export interface PerfectionistOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Sorting order
|
|
8
|
+
* @default 'asc'
|
|
9
|
+
*/
|
|
10
|
+
order?: 'asc' | 'desc';
|
|
11
|
+
/**
|
|
12
|
+
* Override rules
|
|
13
|
+
*/
|
|
14
|
+
overrides?: Linter.RulesRecord;
|
|
15
|
+
/**
|
|
16
|
+
* Sorting type
|
|
17
|
+
* @default 'natural'
|
|
18
|
+
*/
|
|
19
|
+
type?: 'natural' | 'line-length' | 'alphabetical';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Perfectionist (sorting) configuration
|
|
23
|
+
*
|
|
24
|
+
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
25
|
+
*/
|
|
26
|
+
export declare function perfectionist(options?: PerfectionistOptions): Linter.Config;
|
|
27
|
+
//# sourceMappingURL=perfectionist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/configs/perfectionist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAA;IAE9B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,cAAc,CAAA;CACjD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,MAAM,CAAC,MAAM,CAyE/E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OptionsOverrides } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* pnpm workspace configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface PnpmOptions extends OptionsOverrides {
|
|
7
|
+
/**
|
|
8
|
+
* Enable catalogs support
|
|
9
|
+
*/
|
|
10
|
+
catalogs?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* pnpm workspace configuration
|
|
14
|
+
* Supports pnpm catalogs and workspace configuration
|
|
15
|
+
*/
|
|
16
|
+
export declare function pnpm(options?: PnpmOptions): Promise<Linter.Config[]>;
|
|
17
|
+
//# sourceMappingURL=pnpm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pnpm.d.ts","sourceRoot":"","sources":["../../src/configs/pnpm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACpD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAUD;;;GAGG;AACH,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CA0B9E"}
|