@ntnyq/eslint-config 3.0.0-beta.5 → 3.0.0-beta.6

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 CHANGED
@@ -60,6 +60,7 @@ __export(src_exports, {
60
60
  command: () => command,
61
61
  comments: () => comments,
62
62
  getOverrides: () => getOverrides,
63
+ gitignore: () => gitignore,
63
64
  hasTypeScript: () => hasTypeScript,
64
65
  hasUnoCSS: () => hasUnoCSS,
65
66
  hasVitest: () => hasVitest,
@@ -997,11 +998,20 @@ var unocss = (options = {}) => [
997
998
  }
998
999
  ];
999
1000
 
1001
+ // src/configs/gitignore.ts
1002
+ var import_eslint_config_flat_gitignore = __toESM(require("eslint-config-flat-gitignore"), 1);
1003
+ var gitignore = (options = {}) => [
1004
+ {
1005
+ ...(0, import_eslint_config_flat_gitignore.default)(options),
1006
+ name: "ntnyq/gitignore"
1007
+ }
1008
+ ];
1009
+
1000
1010
  // src/configs/command.ts
1001
1011
  var import_config = __toESM(require("eslint-plugin-command/config"), 1);
1002
- var command = () => [
1012
+ var command = (options = {}) => [
1003
1013
  {
1004
- ...(0, import_config.default)(),
1014
+ ...(0, import_config.default)(options),
1005
1015
  name: "ntnyq/command"
1006
1016
  }
1007
1017
  ];
@@ -1574,6 +1584,7 @@ var sortTsConfig = () => [
1574
1584
  ];
1575
1585
  var sortI18nLocale = () => [
1576
1586
  {
1587
+ name: "ntnyq/sort/i18n-locale",
1577
1588
  files: ["**/{locales,i18n}/*.json", "**/{locales,i18n}/*.y?(a)ml"],
1578
1589
  rules: {
1579
1590
  "jsonc/sort-keys": [
@@ -1664,10 +1675,15 @@ var markdown = (options = {}) => [
1664
1675
 
1665
1676
  // src/core.ts
1666
1677
  function ntnyq(options = {}, customConfig = []) {
1667
- const configs = [
1668
- /**
1669
- * Basic
1670
- */
1678
+ const configs = [];
1679
+ if (options.gitignore ?? true) {
1680
+ configs.push(
1681
+ ...gitignore({
1682
+ ...resolveSubOptions(options, "gitignore")
1683
+ })
1684
+ );
1685
+ }
1686
+ configs.push(
1671
1687
  ...ignores(options.ignores),
1672
1688
  ...jsx(),
1673
1689
  ...node({
@@ -1680,7 +1696,7 @@ function ntnyq(options = {}, customConfig = []) {
1680
1696
  ...resolveSubOptions(options, "javascript"),
1681
1697
  overrides: getOverrides(options, "javascript")
1682
1698
  })
1683
- ];
1699
+ );
1684
1700
  if (options.unicorn ?? true) {
1685
1701
  configs.push(
1686
1702
  ...unicorn({
@@ -1777,7 +1793,11 @@ function ntnyq(options = {}, customConfig = []) {
1777
1793
  );
1778
1794
  }
1779
1795
  if (options.command ?? true) {
1780
- configs.push(...command());
1796
+ configs.push(
1797
+ ...command({
1798
+ ...resolveSubOptions(options, "command")
1799
+ })
1800
+ );
1781
1801
  }
1782
1802
  configs.push(...toArray(customConfig));
1783
1803
  if (options.prettier ?? true) {
@@ -1822,6 +1842,7 @@ function ntnyq(options = {}, customConfig = []) {
1822
1842
  command,
1823
1843
  comments,
1824
1844
  getOverrides,
1845
+ gitignore,
1825
1846
  hasTypeScript,
1826
1847
  hasUnoCSS,
1827
1848
  hasVitest,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
+ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
+ import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
2
4
  export { default as tseslint } from 'typescript-eslint';
3
5
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
4
6
  export { eslintPluginRegexp as pluginRegexp };
@@ -8861,7 +8863,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
8861
8863
  markers?: string[];
8862
8864
  }
8863
8865
  ];
8864
- type ConfigName = 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/scripts' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
8866
+ type ConfigName = 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/scripts' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
8865
8867
 
8866
8868
  /**
8867
8869
  * Typed flat config item
@@ -8894,6 +8896,8 @@ interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigI
8894
8896
  overrides?: Rules;
8895
8897
  }
8896
8898
  type ConfigIgnoresOptions = string[];
8899
+ type ConfigGitIgnoreOptions = FlatGitignoreOptions;
8900
+ type ConfigCommandOptions = ESLintPluginCommandOptions;
8897
8901
  interface ConfigJsdocOptions extends OptionsOverrides {
8898
8902
  }
8899
8903
  interface ConfigUnoCSSOptions extends OptionsOverrides {
@@ -8960,11 +8964,12 @@ interface ConfigUnusedImportsOptions extends OptionsOverrides {
8960
8964
  * Config factory options
8961
8965
  */
8962
8966
  interface ConfigOptions {
8963
- command?: boolean;
8964
8967
  sortTsConfig?: boolean;
8965
8968
  sortI18nLocale?: boolean;
8966
8969
  sortPackageJson?: boolean;
8967
8970
  ignores?: ConfigIgnoresOptions;
8971
+ command?: boolean | ConfigCommandOptions;
8972
+ gitignore?: boolean | ConfigGitIgnoreOptions;
8968
8973
  imports?: ConfigImportsOptions;
8969
8974
  javascript?: ConfigJavaScriptOptions;
8970
8975
  typescript?: ConfigTypeScriptOptions;
@@ -9087,7 +9092,9 @@ declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
9087
9092
 
9088
9093
  declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
9089
9094
 
9090
- declare const command: () => TypedConfigItem[];
9095
+ declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
9096
+
9097
+ declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
9091
9098
 
9092
9099
  declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
9093
9100
 
@@ -9105,4 +9112,4 @@ declare const jsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
9105
9112
 
9106
9113
  declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
9107
9114
 
9108
- export { type Arrayable, type Awaitable, type ConfigCommentsOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigName, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, 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_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, 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 OptionsFiles, type OptionsOverrides, type ParserOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, command, comments, getOverrides, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
9115
+ export { type Arrayable, type Awaitable, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigName, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, 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_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, 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 OptionsFiles, type OptionsOverrides, type ParserOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, command, comments, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
+ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
+ import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
2
4
  export { default as tseslint } from 'typescript-eslint';
3
5
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
4
6
  export { eslintPluginRegexp as pluginRegexp };
@@ -8861,7 +8863,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
8861
8863
  markers?: string[];
8862
8864
  }
8863
8865
  ];
8864
- type ConfigName = 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/scripts' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
8866
+ type ConfigName = 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/scripts' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
8865
8867
 
8866
8868
  /**
8867
8869
  * Typed flat config item
@@ -8894,6 +8896,8 @@ interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigI
8894
8896
  overrides?: Rules;
8895
8897
  }
8896
8898
  type ConfigIgnoresOptions = string[];
8899
+ type ConfigGitIgnoreOptions = FlatGitignoreOptions;
8900
+ type ConfigCommandOptions = ESLintPluginCommandOptions;
8897
8901
  interface ConfigJsdocOptions extends OptionsOverrides {
8898
8902
  }
8899
8903
  interface ConfigUnoCSSOptions extends OptionsOverrides {
@@ -8960,11 +8964,12 @@ interface ConfigUnusedImportsOptions extends OptionsOverrides {
8960
8964
  * Config factory options
8961
8965
  */
8962
8966
  interface ConfigOptions {
8963
- command?: boolean;
8964
8967
  sortTsConfig?: boolean;
8965
8968
  sortI18nLocale?: boolean;
8966
8969
  sortPackageJson?: boolean;
8967
8970
  ignores?: ConfigIgnoresOptions;
8971
+ command?: boolean | ConfigCommandOptions;
8972
+ gitignore?: boolean | ConfigGitIgnoreOptions;
8968
8973
  imports?: ConfigImportsOptions;
8969
8974
  javascript?: ConfigJavaScriptOptions;
8970
8975
  typescript?: ConfigTypeScriptOptions;
@@ -9087,7 +9092,9 @@ declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
9087
9092
 
9088
9093
  declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
9089
9094
 
9090
- declare const command: () => TypedConfigItem[];
9095
+ declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
9096
+
9097
+ declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
9091
9098
 
9092
9099
  declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
9093
9100
 
@@ -9105,4 +9112,4 @@ declare const jsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
9105
9112
 
9106
9113
  declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
9107
9114
 
9108
- export { type Arrayable, type Awaitable, type ConfigCommentsOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigName, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, 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_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, 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 OptionsFiles, type OptionsOverrides, type ParserOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, command, comments, getOverrides, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
9115
+ export { type Arrayable, type Awaitable, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigName, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, 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_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, 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 OptionsFiles, type OptionsOverrides, type ParserOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, command, comments, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
package/dist/index.js CHANGED
@@ -879,11 +879,20 @@ var unocss = (options = {}) => [
879
879
  }
880
880
  ];
881
881
 
882
+ // src/configs/gitignore.ts
883
+ import createGitIgnore from "eslint-config-flat-gitignore";
884
+ var gitignore = (options = {}) => [
885
+ {
886
+ ...createGitIgnore(options),
887
+ name: "ntnyq/gitignore"
888
+ }
889
+ ];
890
+
882
891
  // src/configs/command.ts
883
892
  import createCommandPlugin from "eslint-plugin-command/config";
884
- var command = () => [
893
+ var command = (options = {}) => [
885
894
  {
886
- ...createCommandPlugin(),
895
+ ...createCommandPlugin(options),
887
896
  name: "ntnyq/command"
888
897
  }
889
898
  ];
@@ -1456,6 +1465,7 @@ var sortTsConfig = () => [
1456
1465
  ];
1457
1466
  var sortI18nLocale = () => [
1458
1467
  {
1468
+ name: "ntnyq/sort/i18n-locale",
1459
1469
  files: ["**/{locales,i18n}/*.json", "**/{locales,i18n}/*.y?(a)ml"],
1460
1470
  rules: {
1461
1471
  "jsonc/sort-keys": [
@@ -1546,10 +1556,15 @@ var markdown = (options = {}) => [
1546
1556
 
1547
1557
  // src/core.ts
1548
1558
  function ntnyq(options = {}, customConfig = []) {
1549
- const configs = [
1550
- /**
1551
- * Basic
1552
- */
1559
+ const configs = [];
1560
+ if (options.gitignore ?? true) {
1561
+ configs.push(
1562
+ ...gitignore({
1563
+ ...resolveSubOptions(options, "gitignore")
1564
+ })
1565
+ );
1566
+ }
1567
+ configs.push(
1553
1568
  ...ignores(options.ignores),
1554
1569
  ...jsx(),
1555
1570
  ...node({
@@ -1562,7 +1577,7 @@ function ntnyq(options = {}, customConfig = []) {
1562
1577
  ...resolveSubOptions(options, "javascript"),
1563
1578
  overrides: getOverrides(options, "javascript")
1564
1579
  })
1565
- ];
1580
+ );
1566
1581
  if (options.unicorn ?? true) {
1567
1582
  configs.push(
1568
1583
  ...unicorn({
@@ -1659,7 +1674,11 @@ function ntnyq(options = {}, customConfig = []) {
1659
1674
  );
1660
1675
  }
1661
1676
  if (options.command ?? true) {
1662
- configs.push(...command());
1677
+ configs.push(
1678
+ ...command({
1679
+ ...resolveSubOptions(options, "command")
1680
+ })
1681
+ );
1663
1682
  }
1664
1683
  configs.push(...toArray(customConfig));
1665
1684
  if (options.prettier ?? true) {
@@ -1703,6 +1722,7 @@ export {
1703
1722
  command,
1704
1723
  comments,
1705
1724
  getOverrides,
1725
+ gitignore,
1706
1726
  hasTypeScript,
1707
1727
  hasUnoCSS,
1708
1728
  hasVitest,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.5",
4
+ "version": "3.0.0-beta.6",
5
5
  "packageManager": "pnpm@9.9.0",
6
6
  "description": "ESLint flat config of ntnyq",
7
7
  "keywords": [
@@ -60,6 +60,7 @@
60
60
  "@types/eslint": "^9.6.1",
61
61
  "@unocss/eslint-plugin": "^0.62.3",
62
62
  "@vitest/eslint-plugin": "^1.1.0",
63
+ "eslint-config-flat-gitignore": "^0.3.0",
63
64
  "eslint-flat-config-utils": "^0.3.1",
64
65
  "eslint-plugin-command": "^0.2.3",
65
66
  "eslint-plugin-import-x": "^4.2.1",