@kouts/eslint-config 1.3.20 → 1.3.22

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 CHANGED
@@ -31,7 +31,7 @@ export default [
31
31
 
32
32
  #### Customizing the config
33
33
 
34
- The configuration comes with default settings that extend the [neostandard config](https://github.com/neostandard/neostandard/tree/main?tab=readme-ov-file#configuration-options) config. You can further customize it by passing an object to the `config` function:
34
+ The configuration comes with default settings that extend the [neostandard](https://github.com/neostandard/neostandard/tree/main?tab=readme-ov-file#configuration-options) config. You can further customize it by passing an object to the `config` function:
35
35
 
36
36
  **Config settings defaults:**
37
37
 
package/dist/index.cjs CHANGED
@@ -334,8 +334,6 @@ const typescript = [
334
334
  {
335
335
  name: "kouts/typescript",
336
336
  rules: {
337
- // Disable 'no-unused-vars' since TypeScript has its own version
338
- "no-unused-vars": "off",
339
337
  // Prefer T[] instead of Array<T>
340
338
  "@typescript-eslint/array-type": ["error", { default: "array" }],
341
339
  // Prefer type over interface for objects
@@ -496,7 +494,11 @@ const config = (options) => {
496
494
  ...opts.ts ? pluginImportTypescript : {},
497
495
  rules: {
498
496
  // TypeScript compilation already ensures that named imports exist in the referenced module
499
- ...opts.ts ? { "import/named": "off" } : {},
497
+ // and has its own version of no-unused-vars
498
+ ...opts.ts ? {
499
+ "import/named": "off",
500
+ "no-unused-vars": "off"
501
+ } : {},
500
502
  "import/export": "error",
501
503
  "import/first": "error",
502
504
  "import/no-duplicates": "error",
package/dist/index.js CHANGED
@@ -333,8 +333,6 @@ const typescript = [
333
333
  {
334
334
  name: "kouts/typescript",
335
335
  rules: {
336
- // Disable 'no-unused-vars' since TypeScript has its own version
337
- "no-unused-vars": "off",
338
336
  // Prefer T[] instead of Array<T>
339
337
  "@typescript-eslint/array-type": ["error", { default: "array" }],
340
338
  // Prefer type over interface for objects
@@ -495,7 +493,11 @@ const config = (options) => {
495
493
  ...opts.ts ? pluginImportTypescript : {},
496
494
  rules: {
497
495
  // TypeScript compilation already ensures that named imports exist in the referenced module
498
- ...opts.ts ? { "import/named": "off" } : {},
496
+ // and has its own version of no-unused-vars
497
+ ...opts.ts ? {
498
+ "import/named": "off",
499
+ "no-unused-vars": "off"
500
+ } : {},
499
501
  "import/export": "error",
500
502
  "import/first": "error",
501
503
  "import/no-duplicates": "error",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kouts/eslint-config",
3
3
  "type": "module",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "packageManager": "pnpm@9.12.3",
6
6
  "engines": {
7
7
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -70,7 +70,7 @@
70
70
  "url": "git+https://github.com/kouts/eslint-config.git"
71
71
  },
72
72
  "dependencies": {
73
- "@vitest/eslint-plugin": "^1.1.7",
73
+ "@vitest/eslint-plugin": "^1.1.8",
74
74
  "eslint-config-prettier": "^9.1.0",
75
75
  "eslint-plugin-html": "^8.1.2",
76
76
  "eslint-plugin-import-x": "^4.4.0",
@@ -85,7 +85,7 @@
85
85
  "@commitlint/config-conventional": "^19.5.0",
86
86
  "@semantic-release/changelog": "^6.0.3",
87
87
  "@semantic-release/git": "^10.0.1",
88
- "@types/node": "^22.8.7",
88
+ "@types/node": "^22.9.0",
89
89
  "eslint": "^9.14.0",
90
90
  "husky": "^9.1.6",
91
91
  "lint-staged": "^15.2.10",