@ntnyq/eslint-config 2.8.1 → 2.8.2
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 +1 -0
- package/dist/index.cjs +343 -314
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +360 -335
- package/package.json +8 -7
package/dist/index.d.cts
CHANGED
|
@@ -9,12 +9,13 @@ export { default as pluginToml } from 'eslint-plugin-toml';
|
|
|
9
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
10
10
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
11
11
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
12
|
+
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
12
13
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
13
14
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
15
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
16
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
17
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
17
|
-
export { default as pluginUnusedImports } from '
|
|
18
|
+
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
18
19
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
19
20
|
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
20
21
|
export { tomlEslintParser as parserToml };
|
|
@@ -496,7 +497,7 @@ interface RuleOptions {
|
|
|
496
497
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
497
498
|
/**
|
|
498
499
|
* Disallow unused variables
|
|
499
|
-
* @see https://
|
|
500
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
500
501
|
*/
|
|
501
502
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>;
|
|
502
503
|
/**
|
|
@@ -8819,15 +8820,17 @@ interface OverridesOptions<Rules = TypedConfigItem['rules']> {
|
|
|
8819
8820
|
/**
|
|
8820
8821
|
* Custom framework support
|
|
8821
8822
|
*/
|
|
8822
|
-
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8823
|
+
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, vitest: enableVitest, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8823
8824
|
vue?: boolean | undefined;
|
|
8824
8825
|
unocss?: boolean | undefined;
|
|
8826
|
+
vitest?: boolean | undefined;
|
|
8825
8827
|
prettier?: boolean | undefined;
|
|
8826
8828
|
markdown?: boolean | undefined;
|
|
8827
8829
|
command?: boolean | undefined;
|
|
8828
8830
|
}): TypedConfigItem[];
|
|
8829
8831
|
|
|
8830
8832
|
declare const hasTypeScript: boolean;
|
|
8833
|
+
declare const hasVitest: boolean;
|
|
8831
8834
|
declare const hasVue: boolean;
|
|
8832
8835
|
declare const hasUnoCSS: boolean;
|
|
8833
8836
|
|
|
@@ -8860,6 +8863,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
|
8860
8863
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
8861
8864
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
8862
8865
|
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
8866
|
+
declare const GLOB_TEST = "**/*.{test,spec}.?([cm])[jt]s?(x)";
|
|
8863
8867
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8864
8868
|
declare const GLOB_CSS = "**/*.css";
|
|
8865
8869
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -8911,6 +8915,11 @@ declare const unocss: TypedConfigItem[];
|
|
|
8911
8915
|
|
|
8912
8916
|
declare const command: TypedConfigItem[];
|
|
8913
8917
|
|
|
8918
|
+
declare const vitest: TypedConfigItem[];
|
|
8919
|
+
|
|
8920
|
+
declare function getVueVersion(): number;
|
|
8921
|
+
declare const vue: TypedConfigItem[];
|
|
8922
|
+
|
|
8914
8923
|
declare const yml: TypedConfigItem[];
|
|
8915
8924
|
|
|
8916
8925
|
declare const toml: TypedConfigItem[];
|
|
@@ -8922,7 +8931,4 @@ declare const jsonc: TypedConfigItem[];
|
|
|
8922
8931
|
|
|
8923
8932
|
declare const markdown: TypedConfigItem[];
|
|
8924
8933
|
|
|
8925
|
-
|
|
8926
|
-
declare const vue: TypedConfigItem[];
|
|
8927
|
-
|
|
8928
|
-
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vue, yml };
|
|
8934
|
+
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,12 +9,13 @@ export { default as pluginToml } from 'eslint-plugin-toml';
|
|
|
9
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
10
10
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
11
11
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
12
|
+
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
12
13
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
13
14
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
15
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
16
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
17
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
17
|
-
export { default as pluginUnusedImports } from '
|
|
18
|
+
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
18
19
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
19
20
|
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
20
21
|
export { tomlEslintParser as parserToml };
|
|
@@ -496,7 +497,7 @@ interface RuleOptions {
|
|
|
496
497
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
497
498
|
/**
|
|
498
499
|
* Disallow unused variables
|
|
499
|
-
* @see https://
|
|
500
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
500
501
|
*/
|
|
501
502
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>;
|
|
502
503
|
/**
|
|
@@ -8819,15 +8820,17 @@ interface OverridesOptions<Rules = TypedConfigItem['rules']> {
|
|
|
8819
8820
|
/**
|
|
8820
8821
|
* Custom framework support
|
|
8821
8822
|
*/
|
|
8822
|
-
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8823
|
+
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, vitest: enableVitest, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8823
8824
|
vue?: boolean | undefined;
|
|
8824
8825
|
unocss?: boolean | undefined;
|
|
8826
|
+
vitest?: boolean | undefined;
|
|
8825
8827
|
prettier?: boolean | undefined;
|
|
8826
8828
|
markdown?: boolean | undefined;
|
|
8827
8829
|
command?: boolean | undefined;
|
|
8828
8830
|
}): TypedConfigItem[];
|
|
8829
8831
|
|
|
8830
8832
|
declare const hasTypeScript: boolean;
|
|
8833
|
+
declare const hasVitest: boolean;
|
|
8831
8834
|
declare const hasVue: boolean;
|
|
8832
8835
|
declare const hasUnoCSS: boolean;
|
|
8833
8836
|
|
|
@@ -8860,6 +8863,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
|
8860
8863
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
8861
8864
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
8862
8865
|
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
8866
|
+
declare const GLOB_TEST = "**/*.{test,spec}.?([cm])[jt]s?(x)";
|
|
8863
8867
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8864
8868
|
declare const GLOB_CSS = "**/*.css";
|
|
8865
8869
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -8911,6 +8915,11 @@ declare const unocss: TypedConfigItem[];
|
|
|
8911
8915
|
|
|
8912
8916
|
declare const command: TypedConfigItem[];
|
|
8913
8917
|
|
|
8918
|
+
declare const vitest: TypedConfigItem[];
|
|
8919
|
+
|
|
8920
|
+
declare function getVueVersion(): number;
|
|
8921
|
+
declare const vue: TypedConfigItem[];
|
|
8922
|
+
|
|
8914
8923
|
declare const yml: TypedConfigItem[];
|
|
8915
8924
|
|
|
8916
8925
|
declare const toml: TypedConfigItem[];
|
|
@@ -8922,7 +8931,4 @@ declare const jsonc: TypedConfigItem[];
|
|
|
8922
8931
|
|
|
8923
8932
|
declare const markdown: TypedConfigItem[];
|
|
8924
8933
|
|
|
8925
|
-
|
|
8926
|
-
declare const vue: TypedConfigItem[];
|
|
8927
|
-
|
|
8928
|
-
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vue, yml };
|
|
8934
|
+
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
|