@kouts/eslint-config 1.3.22 → 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.
Files changed (3) hide show
  1. package/dist/index.cjs +62 -37
  2. package/dist/index.js +62 -37
  3. package/package.json +11 -12
package/dist/index.cjs CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var pluginVitest = require('@vitest/eslint-plugin');
4
4
  var pluginHtml = require('eslint-plugin-html');
5
- var pluginImport = require('eslint-plugin-import-x');
6
5
  var pluginPrettier = require('eslint-plugin-prettier/recommended');
7
6
  var pluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
8
7
  var neostandard = require('neostandard');
@@ -12,6 +11,56 @@ function getDefaultExportFromCjs (x) {
12
11
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
13
12
  }
14
13
 
14
+ var name = "@eslint/js";
15
+ var version$1 = "9.17.0";
16
+ var description = "ESLint JavaScript language implementation";
17
+ var main = "./src/index.js";
18
+ var types = "./types/index.d.ts";
19
+ var scripts = {
20
+ "test:types": "tsc -p tests/types/tsconfig.json"
21
+ };
22
+ var files = [
23
+ "LICENSE",
24
+ "README.md",
25
+ "src",
26
+ "types"
27
+ ];
28
+ var publishConfig = {
29
+ access: "public"
30
+ };
31
+ var repository = {
32
+ type: "git",
33
+ url: "https://github.com/eslint/eslint.git",
34
+ directory: "packages/js"
35
+ };
36
+ var homepage = "https://eslint.org";
37
+ var bugs = "https://github.com/eslint/eslint/issues/";
38
+ var keywords = [
39
+ "javascript",
40
+ "eslint-plugin",
41
+ "eslint"
42
+ ];
43
+ var license = "MIT";
44
+ var engines = {
45
+ node: "^18.18.0 || ^20.9.0 || >=21.1.0"
46
+ };
47
+ var require$$0 = {
48
+ name: name,
49
+ version: version$1,
50
+ description: description,
51
+ main: main,
52
+ types: types,
53
+ scripts: scripts,
54
+ files: files,
55
+ publishConfig: publishConfig,
56
+ repository: repository,
57
+ homepage: homepage,
58
+ bugs: bugs,
59
+ keywords: keywords,
60
+ license: license,
61
+ engines: engines
62
+ };
63
+
15
64
  /*
16
65
  * WARNING: This file is autogenerated using the tools/update-eslint-all.js
17
66
  * script. Do not edit manually.
@@ -316,11 +365,17 @@ var eslintRecommended = Object.freeze({
316
365
  * @author Nicholas C. Zakas
317
366
  */
318
367
 
368
+ const { version } = require$$0;
369
+
319
370
  //------------------------------------------------------------------------------
320
371
  // Public Interface
321
372
  //------------------------------------------------------------------------------
322
373
 
323
374
  var src = {
375
+ meta: {
376
+ name: "@eslint/js",
377
+ version
378
+ },
324
379
  configs: {
325
380
  all: eslintAll,
326
381
  recommended: eslintRecommended
@@ -422,19 +477,6 @@ const vue = (options) => {
422
477
  return config;
423
478
  };
424
479
 
425
- const pluginImportTypescript = Object.keys(pluginImport.flatConfigs.typescript).reduce(
426
- (acc, key) => ({
427
- ...acc,
428
- [key]: Object.keys(pluginImport.flatConfigs.typescript[key]).reduce(
429
- (innerAcc, curr) => ({
430
- ...innerAcc,
431
- [curr.replace("import-x", "import")]: pluginImport.flatConfigs.typescript[key][curr]
432
- }),
433
- {}
434
- )
435
- }),
436
- {}
437
- );
438
480
  const config = (options) => {
439
481
  const opts = {
440
482
  noJsx: true,
@@ -482,32 +524,15 @@ const config = (options) => {
482
524
  ],
483
525
  // Console and debugger settings depending whether we're on production or not
484
526
  "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
485
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
486
- }
487
- },
488
- // Import
489
- {
490
- name: "kouts/import",
491
- plugins: {
492
- import: pluginImport
493
- },
494
- ...opts.ts ? pluginImportTypescript : {},
495
- rules: {
496
- // TypeScript compilation already ensures that named imports exist in the referenced module
497
- // and has its own version of no-unused-vars
527
+ "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
528
+ // Import rules
498
529
  ...opts.ts ? {
499
- "import/named": "off",
530
+ "import-x/named": "off",
500
531
  "no-unused-vars": "off"
501
532
  } : {},
502
- "import/export": "error",
503
- "import/first": "error",
504
- "import/no-duplicates": "error",
505
- "import/no-mutable-exports": "error",
506
- "import/no-named-default": "error",
507
- "import/no-self-import": "error",
508
- "import/no-webpack-loader-syntax": "error",
509
- "import/no-absolute-path": ["error", { esmodule: true, commonjs: true, amd: false }],
510
- "import/newline-after-import": ["error", { count: 1 }]
533
+ "import-x/no-mutable-exports": "error",
534
+ "import-x/newline-after-import": ["error", { count: 1 }],
535
+ "import-x/no-self-import": "error"
511
536
  }
512
537
  },
513
538
  // Sort imports
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import pluginVitest from '@vitest/eslint-plugin';
2
2
  import pluginHtml from 'eslint-plugin-html';
3
- import pluginImport from 'eslint-plugin-import-x';
4
3
  import pluginPrettier from 'eslint-plugin-prettier/recommended';
5
4
  import pluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
6
5
  import neostandard, { plugins, resolveIgnoresFromGitignore } from 'neostandard';
@@ -11,6 +10,56 @@ function getDefaultExportFromCjs (x) {
11
10
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12
11
  }
13
12
 
13
+ var name = "@eslint/js";
14
+ var version$1 = "9.17.0";
15
+ var description = "ESLint JavaScript language implementation";
16
+ var main = "./src/index.js";
17
+ var types = "./types/index.d.ts";
18
+ var scripts = {
19
+ "test:types": "tsc -p tests/types/tsconfig.json"
20
+ };
21
+ var files = [
22
+ "LICENSE",
23
+ "README.md",
24
+ "src",
25
+ "types"
26
+ ];
27
+ var publishConfig = {
28
+ access: "public"
29
+ };
30
+ var repository = {
31
+ type: "git",
32
+ url: "https://github.com/eslint/eslint.git",
33
+ directory: "packages/js"
34
+ };
35
+ var homepage = "https://eslint.org";
36
+ var bugs = "https://github.com/eslint/eslint/issues/";
37
+ var keywords = [
38
+ "javascript",
39
+ "eslint-plugin",
40
+ "eslint"
41
+ ];
42
+ var license = "MIT";
43
+ var engines = {
44
+ node: "^18.18.0 || ^20.9.0 || >=21.1.0"
45
+ };
46
+ var require$$0 = {
47
+ name: name,
48
+ version: version$1,
49
+ description: description,
50
+ main: main,
51
+ types: types,
52
+ scripts: scripts,
53
+ files: files,
54
+ publishConfig: publishConfig,
55
+ repository: repository,
56
+ homepage: homepage,
57
+ bugs: bugs,
58
+ keywords: keywords,
59
+ license: license,
60
+ engines: engines
61
+ };
62
+
14
63
  /*
15
64
  * WARNING: This file is autogenerated using the tools/update-eslint-all.js
16
65
  * script. Do not edit manually.
@@ -315,11 +364,17 @@ var eslintRecommended = Object.freeze({
315
364
  * @author Nicholas C. Zakas
316
365
  */
317
366
 
367
+ const { version } = require$$0;
368
+
318
369
  //------------------------------------------------------------------------------
319
370
  // Public Interface
320
371
  //------------------------------------------------------------------------------
321
372
 
322
373
  var src = {
374
+ meta: {
375
+ name: "@eslint/js",
376
+ version
377
+ },
323
378
  configs: {
324
379
  all: eslintAll,
325
380
  recommended: eslintRecommended
@@ -421,19 +476,6 @@ const vue = (options) => {
421
476
  return config;
422
477
  };
423
478
 
424
- const pluginImportTypescript = Object.keys(pluginImport.flatConfigs.typescript).reduce(
425
- (acc, key) => ({
426
- ...acc,
427
- [key]: Object.keys(pluginImport.flatConfigs.typescript[key]).reduce(
428
- (innerAcc, curr) => ({
429
- ...innerAcc,
430
- [curr.replace("import-x", "import")]: pluginImport.flatConfigs.typescript[key][curr]
431
- }),
432
- {}
433
- )
434
- }),
435
- {}
436
- );
437
479
  const config = (options) => {
438
480
  const opts = {
439
481
  noJsx: true,
@@ -481,32 +523,15 @@ const config = (options) => {
481
523
  ],
482
524
  // Console and debugger settings depending whether we're on production or not
483
525
  "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
484
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
485
- }
486
- },
487
- // Import
488
- {
489
- name: "kouts/import",
490
- plugins: {
491
- import: pluginImport
492
- },
493
- ...opts.ts ? pluginImportTypescript : {},
494
- rules: {
495
- // TypeScript compilation already ensures that named imports exist in the referenced module
496
- // and has its own version of no-unused-vars
526
+ "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
527
+ // Import rules
497
528
  ...opts.ts ? {
498
- "import/named": "off",
529
+ "import-x/named": "off",
499
530
  "no-unused-vars": "off"
500
531
  } : {},
501
- "import/export": "error",
502
- "import/first": "error",
503
- "import/no-duplicates": "error",
504
- "import/no-mutable-exports": "error",
505
- "import/no-named-default": "error",
506
- "import/no-self-import": "error",
507
- "import/no-webpack-loader-syntax": "error",
508
- "import/no-absolute-path": ["error", { esmodule: true, commonjs: true, amd: false }],
509
- "import/newline-after-import": ["error", { count: 1 }]
532
+ "import-x/no-mutable-exports": "error",
533
+ "import-x/newline-after-import": ["error", { count: 1 }],
534
+ "import-x/no-self-import": "error"
510
535
  }
511
536
  },
512
537
  // Sort imports
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@kouts/eslint-config",
3
3
  "type": "module",
4
- "version": "1.3.22",
5
- "packageManager": "pnpm@9.12.3",
4
+ "version": "2.0.0",
5
+ "packageManager": "pnpm@9.15.0",
6
6
  "engines": {
7
7
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
8
8
  },
@@ -70,25 +70,24 @@
70
70
  "url": "git+https://github.com/kouts/eslint-config.git"
71
71
  },
72
72
  "dependencies": {
73
- "@vitest/eslint-plugin": "^1.1.8",
73
+ "@vitest/eslint-plugin": "^1.1.16",
74
74
  "eslint-config-prettier": "^9.1.0",
75
75
  "eslint-plugin-html": "^8.1.2",
76
- "eslint-plugin-import-x": "^4.4.0",
77
76
  "eslint-plugin-prettier": "^5.2.1",
78
77
  "eslint-plugin-simple-import-sort": "^12.1.1",
79
- "eslint-plugin-vue": "^9.30.0",
80
- "neostandard": "^0.11.7",
78
+ "eslint-plugin-vue": "^9.32.0",
79
+ "neostandard": "^0.12.0",
81
80
  "prettier": "^3.3.3"
82
81
  },
83
82
  "devDependencies": {
84
- "@commitlint/cli": "^19.5.0",
85
- "@commitlint/config-conventional": "^19.5.0",
83
+ "@commitlint/cli": "^19.6.1",
84
+ "@commitlint/config-conventional": "^19.6.0",
86
85
  "@semantic-release/changelog": "^6.0.3",
87
86
  "@semantic-release/git": "^10.0.1",
88
- "@types/node": "^22.9.0",
89
- "eslint": "^9.14.0",
90
- "husky": "^9.1.6",
91
- "lint-staged": "^15.2.10",
87
+ "@types/node": "^22.10.2",
88
+ "eslint": "^9.17.0",
89
+ "husky": "^9.1.7",
90
+ "lint-staged": "^15.2.11",
92
91
  "pkgroll": "^2.5.1",
93
92
  "semantic-release": "^24.2.0",
94
93
  "typescript": "^5.5.4"