@aiou/eslint-config 1.5.1 → 2.0.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 +328 -762
- package/dist/index.mjs +274 -737
- package/dts/configs/comments.d.ts +2 -2
- package/dts/configs/ignores.d.ts +2 -2
- package/dts/configs/imports.d.ts +2 -2
- package/dts/configs/javascript.d.ts +2 -2
- package/dts/configs/jsonc.d.ts +2 -2
- package/dts/configs/markdown.d.ts +2 -2
- package/dts/configs/next.d.ts +2 -2
- package/dts/configs/progress.d.ts +2 -2
- package/dts/configs/react.d.ts +3 -3
- package/dts/configs/regexp.d.ts +2 -2
- package/dts/configs/stylistic.d.ts +2 -2
- package/dts/configs/tailwindcss.d.ts +2 -2
- package/dts/configs/typescript.d.ts +2 -2
- package/dts/configs/unicorn.d.ts +2 -2
- package/dts/configs/yml.d.ts +2 -2
- package/dts/index.d.ts +6 -2
- package/dts/type.d.ts +10 -0
- package/dts/typegen.d.ts +7896 -0
- package/package.json +45 -30
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const comments: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const comments: () => Config[];
|
package/dts/configs/ignores.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const ignores: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const ignores: () => Config[];
|
package/dts/configs/imports.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const imports: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const imports: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const javascript: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const javascript: () => Config[];
|
package/dts/configs/jsonc.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const jsonc: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const jsonc: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const markdown: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const markdown: () => Config[];
|
package/dts/configs/next.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const next: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const next: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const progress: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const progress: () => Config[];
|
package/dts/configs/react.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const react: () =>
|
|
3
|
-
export declare const ssrReact: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const react: () => Config[];
|
|
3
|
+
export declare const ssrReact: () => Config[];
|
package/dts/configs/regexp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const regexp: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const regexp: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const stylistic: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const stylistic: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const tailwindcss: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const tailwindcss: () => Config[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const typescript: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const typescript: () => Config[];
|
package/dts/configs/unicorn.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const unicorn: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const unicorn: () => Config[];
|
package/dts/configs/yml.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const yml: () =>
|
|
1
|
+
import type { Config } from '../type';
|
|
2
|
+
export declare const yml: () => Config[];
|
package/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Arrayable, type Awaitable, FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
|
+
import type { Linter } from 'eslint';
|
|
3
|
+
import type { Config } from './type';
|
|
4
|
+
import type { ConfigNames } from './typegen';
|
|
5
|
+
export declare const all: Config[];
|
|
2
6
|
interface Options {
|
|
3
7
|
ssr?: boolean;
|
|
4
8
|
regexp?: boolean;
|
|
5
9
|
}
|
|
6
|
-
export declare const aiou: ({ ssr, regexp }?: Options,
|
|
10
|
+
export declare const aiou: ({ ssr, regexp }?: Options, ...userConfigs: Awaitable<Arrayable<Config> | FlatConfigComposer<any, any> | Linter.Config[]>[]) => FlatConfigComposer<Config, ConfigNames>;
|
|
7
11
|
export {};
|
package/dts/type.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { Rules } from './typegen';
|
|
3
|
+
export type Config = Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'> & {
|
|
4
|
+
/**
|
|
5
|
+
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
6
|
+
*
|
|
7
|
+
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
8
|
+
*/
|
|
9
|
+
plugins?: Record<string, any>;
|
|
10
|
+
};
|