@lntvow/eslint-config 9.20.0 → 9.20.1

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
@@ -6,7 +6,6 @@ const utils = require('@lntvow/utils');
6
6
  const parse = require('parse-gitignore');
7
7
  const pluginImport = require('eslint-plugin-import-x');
8
8
  const js = require('@eslint/js');
9
- const globals = require('globals');
10
9
  const pluginPrettier = require('eslint-plugin-prettier');
11
10
  const prettierConfig = require('eslint-config-prettier');
12
11
  const eslintPluginRegexp = require('eslint-plugin-regexp');
@@ -26,7 +25,6 @@ const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
26
25
  const parse__default = /*#__PURE__*/_interopDefaultCompat(parse);
27
26
  const pluginImport__default = /*#__PURE__*/_interopDefaultCompat(pluginImport);
28
27
  const js__default = /*#__PURE__*/_interopDefaultCompat(js);
29
- const globals__default = /*#__PURE__*/_interopDefaultCompat(globals);
30
28
  const pluginPrettier__default = /*#__PURE__*/_interopDefaultCompat(pluginPrettier);
31
29
  const prettierConfig__default = /*#__PURE__*/_interopDefaultCompat(prettierConfig);
32
30
  const pluginStylistic__default = /*#__PURE__*/_interopDefaultCompat(pluginStylistic);
@@ -320,13 +318,10 @@ async function javascript(options = {}) {
320
318
  }
321
319
  },
322
320
  globals: {
323
- ...globals__default.browser,
324
- ...globals__default.es2021,
325
- ...globals__default.node
321
+ // ...globals.browser,
322
+ // ...globals.es2021,
323
+ // ...globals.node,
326
324
  }
327
- },
328
- linterOptions: {
329
- reportUnusedDisableDirectives: true
330
325
  }
331
326
  },
332
327
  {
@@ -740,16 +735,16 @@ async function typescript(options = {}) {
740
735
  name: "lntvow/typescript/setup",
741
736
  plugins: {
742
737
  ts: pluginTs__default
743
- }
744
- },
745
- {
746
- name: "lntvow/typescript/rules",
738
+ },
747
739
  languageOptions: {
748
740
  parser: parserTs__default,
749
741
  parserOptions: {
750
742
  sourceType: "module"
751
743
  }
752
- },
744
+ }
745
+ },
746
+ {
747
+ name: "lntvow/typescript/rules",
753
748
  files,
754
749
  rules: {
755
750
  ...renameRules(pluginTs__default.configs["eslint-recommended"].overrides[0].rules, {
@@ -1101,8 +1096,7 @@ function lntvow(options = {}, ...userConfigs) {
1101
1096
  javascript({
1102
1097
  ...resolveSubOptions(options, "javascript")
1103
1098
  }),
1104
- imports({ typescript: Boolean(enableTypeScript) }),
1105
- prettier()
1099
+ imports({ typescript: Boolean(enableTypeScript) })
1106
1100
  // comments(),
1107
1101
  // node(),
1108
1102
  // jsdoc({
@@ -1134,7 +1128,7 @@ function lntvow(options = {}, ...userConfigs) {
1134
1128
  if (enableStylistic) {
1135
1129
  configs.push(stylistic({ ...resolveSubOptions(options, "stylistic") }));
1136
1130
  }
1137
- configs.push(disables());
1131
+ configs.push(prettier(), disables());
1138
1132
  const fusedConfig = flatConfigProps.reduce((acc, key) => {
1139
1133
  if (key in options) {
1140
1134
  acc[key] = options[key];
@@ -1191,6 +1185,7 @@ exports.ignores = ignores;
1191
1185
  exports.imports = imports;
1192
1186
  exports.javascript = javascript;
1193
1187
  exports.lntvow = lntvow;
1188
+ exports.notInRecommendedRules = notInRecommendedRules;
1194
1189
  exports.prettier = prettier;
1195
1190
  exports.regexp = regexp;
1196
1191
  exports.renameRules = renameRules;
package/dist/index.d.cts CHANGED
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
10328
10328
  }): Promise<TypedFlatConfigItem[]>;
10329
10329
 
10330
10330
  declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
10331
+ declare const notInRecommendedRules: Partial<Rules>;
10331
10332
 
10332
10333
  declare function prettier(): Promise<TypedFlatConfigItem[]>;
10333
10334
 
@@ -10372,4 +10373,4 @@ declare const GLOB_EXCLUDE: string[];
10372
10373
 
10373
10374
  declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
10374
10375
 
10375
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
10376
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/dist/index.d.mts CHANGED
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
10328
10328
  }): Promise<TypedFlatConfigItem[]>;
10329
10329
 
10330
10330
  declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
10331
+ declare const notInRecommendedRules: Partial<Rules>;
10331
10332
 
10332
10333
  declare function prettier(): Promise<TypedFlatConfigItem[]>;
10333
10334
 
@@ -10372,4 +10373,4 @@ declare const GLOB_EXCLUDE: string[];
10372
10373
 
10373
10374
  declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
10374
10375
 
10375
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
10376
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/dist/index.d.ts CHANGED
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
10328
10328
  }): Promise<TypedFlatConfigItem[]>;
10329
10329
 
10330
10330
  declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
10331
+ declare const notInRecommendedRules: Partial<Rules>;
10331
10332
 
10332
10333
  declare function prettier(): Promise<TypedFlatConfigItem[]>;
10333
10334
 
@@ -10372,4 +10373,4 @@ declare const GLOB_EXCLUDE: string[];
10372
10373
 
10373
10374
  declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
10374
10375
 
10375
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
10376
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/dist/index.mjs CHANGED
@@ -4,7 +4,6 @@ import { castArray, isBoolean } from '@lntvow/utils';
4
4
  import parse from 'parse-gitignore';
5
5
  import pluginImport from 'eslint-plugin-import-x';
6
6
  import js from '@eslint/js';
7
- import globals from 'globals';
8
7
  import pluginPrettier from 'eslint-plugin-prettier';
9
8
  import prettierConfig from 'eslint-config-prettier';
10
9
  import { configs } from 'eslint-plugin-regexp';
@@ -301,13 +300,10 @@ async function javascript(options = {}) {
301
300
  }
302
301
  },
303
302
  globals: {
304
- ...globals.browser,
305
- ...globals.es2021,
306
- ...globals.node
303
+ // ...globals.browser,
304
+ // ...globals.es2021,
305
+ // ...globals.node,
307
306
  }
308
- },
309
- linterOptions: {
310
- reportUnusedDisableDirectives: true
311
307
  }
312
308
  },
313
309
  {
@@ -721,16 +717,16 @@ async function typescript(options = {}) {
721
717
  name: "lntvow/typescript/setup",
722
718
  plugins: {
723
719
  ts: pluginTs
724
- }
725
- },
726
- {
727
- name: "lntvow/typescript/rules",
720
+ },
728
721
  languageOptions: {
729
722
  parser: parserTs,
730
723
  parserOptions: {
731
724
  sourceType: "module"
732
725
  }
733
- },
726
+ }
727
+ },
728
+ {
729
+ name: "lntvow/typescript/rules",
734
730
  files,
735
731
  rules: {
736
732
  ...renameRules(pluginTs.configs["eslint-recommended"].overrides[0].rules, {
@@ -1082,8 +1078,7 @@ function lntvow(options = {}, ...userConfigs) {
1082
1078
  javascript({
1083
1079
  ...resolveSubOptions(options, "javascript")
1084
1080
  }),
1085
- imports({ typescript: Boolean(enableTypeScript) }),
1086
- prettier()
1081
+ imports({ typescript: Boolean(enableTypeScript) })
1087
1082
  // comments(),
1088
1083
  // node(),
1089
1084
  // jsdoc({
@@ -1115,7 +1110,7 @@ function lntvow(options = {}, ...userConfigs) {
1115
1110
  if (enableStylistic) {
1116
1111
  configs.push(stylistic({ ...resolveSubOptions(options, "stylistic") }));
1117
1112
  }
1118
- configs.push(disables());
1113
+ configs.push(prettier(), disables());
1119
1114
  const fusedConfig = flatConfigProps.reduce((acc, key) => {
1120
1115
  if (key in options) {
1121
1116
  acc[key] = options[key];
@@ -1136,4 +1131,4 @@ function resolveSubOptions(options, key) {
1136
1131
  return isBoolean(options[key]) ? {} : options[key] || {};
1137
1132
  }
1138
1133
 
1139
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
1134
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-config",
3
- "version": "9.20.0",
3
+ "version": "9.20.1",
4
4
  "description": "eslint-config",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -50,10 +50,10 @@
50
50
  "parse-gitignore": "^2.0.0",
51
51
  "typescript": "^5.6.3",
52
52
  "vue-eslint-parser": "^9.4.3",
53
- "@lntvow/eslint-plugin": "^9.20.0"
53
+ "@lntvow/eslint-plugin": "^9.20.1"
54
54
  },
55
55
  "scripts": {
56
- "dev": "tsup --format esm",
56
+ "dev": "unbuild --stub",
57
57
  "build": "pnpm typegen && unbuild",
58
58
  "typegen": "esno scripts/typegen.ts",
59
59
  "rimraf": "rimraf ./node_modules/"