katon-labs-eslint-config 0.0.2 → 0.0.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/index.cjs CHANGED
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  GLOB_YAML: () => GLOB_YAML,
63
63
  StylisticConfigDefaults: () => StylisticConfigDefaults,
64
64
  default: () => src_default,
65
+ ignores: () => ignores,
65
66
  imports: () => imports,
66
67
  katonlabs: () => katonlabs,
67
68
  node: () => node,
@@ -185,10 +186,10 @@ function typescript(options) {
185
186
  "@typescript-eslint/restrict-plus-operands": "error",
186
187
  "@typescript-eslint/strict-boolean-expressions": ["error", { allowNullableBoolean: true, allowNullableObject: true }]
187
188
  };
188
- function makeParser(typeAware, files2, ignores) {
189
+ function makeParser(typeAware, files2, ignores2) {
189
190
  return {
190
191
  files: files2,
191
- ...ignores ? { ignores } : {},
192
+ ...ignores2 ? { ignores: ignores2 } : {},
192
193
  languageOptions: {
193
194
  parser: import_parser.default,
194
195
  parserOptions: {
@@ -533,6 +534,18 @@ function stylistic() {
533
534
  ];
534
535
  }
535
536
 
537
+ // src/configs/ignores.ts
538
+ function ignores() {
539
+ return [
540
+ {
541
+ name: "katon-labs/ignores",
542
+ ignores: [
543
+ ...GLOB_EXCLUDE
544
+ ]
545
+ }
546
+ ];
547
+ }
548
+
536
549
  // src/factory.ts
537
550
  function katonlabs(options = {}) {
538
551
  const { ts } = options;
@@ -544,6 +557,7 @@ function katonlabs(options = {}) {
544
557
  configs.push(perfectionist());
545
558
  configs.push(node());
546
559
  configs.push(stylistic());
560
+ configs.push(ignores());
547
561
  let composer = new import_eslint_flat_config_utils.FlatConfigComposer();
548
562
  composer.append(...configs);
549
563
  return composer;
@@ -584,6 +598,7 @@ var src_default = katonlabs;
584
598
  GLOB_XML,
585
599
  GLOB_YAML,
586
600
  StylisticConfigDefaults,
601
+ ignores,
587
602
  imports,
588
603
  katonlabs,
589
604
  node,
package/dist/index.d.cts CHANGED
@@ -8332,6 +8332,8 @@ declare function node(): TypedFlatConfigItem[];
8332
8332
  declare const StylisticConfigDefaults: StylisticConfig;
8333
8333
  declare function stylistic(): TypedFlatConfigItem[];
8334
8334
 
8335
+ declare function ignores(): TypedFlatConfigItem[];
8336
+
8335
8337
  interface FactoryOptions {
8336
8338
  ts?: TypescriptOptionsFile;
8337
8339
  }
@@ -8368,4 +8370,4 @@ declare const GLOB_TESTS: string[];
8368
8370
  declare const GLOB_ALL_SRC: string[];
8369
8371
  declare const GLOB_EXCLUDE: string[];
8370
8372
 
8371
- export { type FactoryOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, type TypescriptOptionsFile, katonlabs as default, imports, katonlabs, node, perfectionist, stylistic, typescript, unicorn, vue };
8373
+ export { type FactoryOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, type TypescriptOptionsFile, katonlabs as default, ignores, imports, katonlabs, node, perfectionist, stylistic, typescript, unicorn, vue };
package/dist/index.d.ts CHANGED
@@ -8332,6 +8332,8 @@ declare function node(): TypedFlatConfigItem[];
8332
8332
  declare const StylisticConfigDefaults: StylisticConfig;
8333
8333
  declare function stylistic(): TypedFlatConfigItem[];
8334
8334
 
8335
+ declare function ignores(): TypedFlatConfigItem[];
8336
+
8335
8337
  interface FactoryOptions {
8336
8338
  ts?: TypescriptOptionsFile;
8337
8339
  }
@@ -8368,4 +8370,4 @@ declare const GLOB_TESTS: string[];
8368
8370
  declare const GLOB_ALL_SRC: string[];
8369
8371
  declare const GLOB_EXCLUDE: string[];
8370
8372
 
8371
- export { type FactoryOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, type TypescriptOptionsFile, katonlabs as default, imports, katonlabs, node, perfectionist, stylistic, typescript, unicorn, vue };
8373
+ export { type FactoryOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, type TypescriptOptionsFile, katonlabs as default, ignores, imports, katonlabs, node, perfectionist, stylistic, typescript, unicorn, vue };
package/dist/index.js CHANGED
@@ -110,10 +110,10 @@ function typescript(options) {
110
110
  "@typescript-eslint/restrict-plus-operands": "error",
111
111
  "@typescript-eslint/strict-boolean-expressions": ["error", { allowNullableBoolean: true, allowNullableObject: true }]
112
112
  };
113
- function makeParser(typeAware, files2, ignores) {
113
+ function makeParser(typeAware, files2, ignores2) {
114
114
  return {
115
115
  files: files2,
116
- ...ignores ? { ignores } : {},
116
+ ...ignores2 ? { ignores: ignores2 } : {},
117
117
  languageOptions: {
118
118
  parser: parserTS,
119
119
  parserOptions: {
@@ -458,6 +458,18 @@ function stylistic() {
458
458
  ];
459
459
  }
460
460
 
461
+ // src/configs/ignores.ts
462
+ function ignores() {
463
+ return [
464
+ {
465
+ name: "katon-labs/ignores",
466
+ ignores: [
467
+ ...GLOB_EXCLUDE
468
+ ]
469
+ }
470
+ ];
471
+ }
472
+
461
473
  // src/factory.ts
462
474
  function katonlabs(options = {}) {
463
475
  const { ts } = options;
@@ -469,6 +481,7 @@ function katonlabs(options = {}) {
469
481
  configs.push(perfectionist());
470
482
  configs.push(node());
471
483
  configs.push(stylistic());
484
+ configs.push(ignores());
472
485
  let composer = new FlatConfigComposer();
473
486
  composer.append(...configs);
474
487
  return composer;
@@ -509,6 +522,7 @@ export {
509
522
  GLOB_YAML,
510
523
  StylisticConfigDefaults,
511
524
  src_default as default,
525
+ ignores,
512
526
  imports,
513
527
  katonlabs,
514
528
  node,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "katon-labs-eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "packageManager": "bun@1.1.27",
6
6
  "description": "Katon Labs's ESLint config",
7
7
  "author": "Alam Esa Wikanning Katon <naturaatom@gmail.com> (https://github.com/wikanonymous-dev/)",
@@ -24,7 +24,7 @@
24
24
  "build": "bun typegen && tsup --format esm,cjs --clean --dts",
25
25
  "typegen": "esno scripts/typegen.ts",
26
26
  "dev": "npx @eslint/config-inspector --config eslint.config.ts",
27
- "release": "bun publish"
27
+ "release": "bumpp & npm publish"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@eslint/config-inspector": "^0.5.6",