@kasoa/eslint-config 0.0.26 → 0.0.28

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
@@ -51,8 +51,8 @@ export default defineConfig(node, {
51
51
 
52
52
  ## Configurations
53
53
 
54
- - **`base`**: Core rules for TypeScript, imports, code quality, and testing.
55
- - **`node`**: Extends `base` with Node.js-specific rules.
54
+ - **`base`**: Core rules for TypeScript, imports, and code quality.
55
+ - **`node`**: Extends `base` with Node.js-specific and Vitest rules.
56
56
  - **`react`**: Extends `base` with React-specific rules.
57
57
 
58
58
  All configs use Prettier-compatible rules and enforce strict standards.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,kCAchB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,IAAI,kCAYhB,CAAC"}
@@ -9,5 +9,4 @@ import { sonarjsConfig } from "./sonarjs.js";
9
9
  import { typescriptEslintConfig } from "./typescript-eslint.js";
10
10
  import { unicornXConfig } from "./unicorn-x.js";
11
11
  import { unusedImportsConfig } from "./unused-imports.js";
12
- import { vitestConfig } from "./vitest.js";
13
- export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, sonarjsConfig, regexpConfig, eslintConfigPrettier);
12
+ export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, sonarjsConfig, regexpConfig, eslintConfigPrettier);
@@ -1,3 +1,3 @@
1
- import * as regexpPlugin from "eslint-plugin-regexp";
1
+ import regexpPlugin from "eslint-plugin-regexp";
2
2
  import { defineConfig } from "eslint/config";
3
3
  export const regexpConfig = defineConfig(regexpPlugin.configs["flat/recommended"]);
@@ -1 +1 @@
1
- {"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAqBxB,CAAC"}
1
+ {"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAoBxB,CAAC"}
@@ -20,6 +20,5 @@ export const sonarjsConfig = defineConfig({
20
20
  // eslint-disable-next-line sonarjs/no-hardcoded-passwords -- rule identifier contains the word "password"
21
21
  "sonarjs/no-hardcoded-passwords": "error",
22
22
  "sonarjs/no-hardcoded-ip": "error",
23
- "sonarjs/code-eval": "error",
24
23
  },
25
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,kCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,kCAA+C,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { defineConfig } from "eslint/config";
2
2
  import { base } from "../base/index.js";
3
3
  import { nodeConfig } from "./n.js";
4
- export const node = defineConfig(base, nodeConfig);
4
+ import { vitestConfig } from "./vitest.js";
5
+ export const node = defineConfig(base, nodeConfig, vitestConfig);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../../src/node/vitest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import vitest from "@vitest/eslint-plugin";
2
2
  import { defineConfig } from "eslint/config";
3
3
  export const vitestConfig = defineConfig({
4
- ...vitest.configs.all,
4
+ ...vitest.configs.recommended,
5
5
  files: ["**/tests/**", "**/*.test.ts", "**/*.test.tsx"],
6
6
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kasoa/eslint-config",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Kasoa's ESLint config",
@@ -35,36 +35,35 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@eslint-react/eslint-plugin": "^2.12.4",
39
- "@eslint/js": "latest",
40
- "@vitest/eslint-plugin": "^1.6.7",
41
- "eslint": "^9.39.2",
42
- "eslint-config-flat-gitignore": "^2.1.0",
38
+ "@eslint-react/eslint-plugin": "^2.13.0",
39
+ "@eslint/js": "^10.0.1",
40
+ "@vitest/eslint-plugin": "^1.6.9",
41
+ "eslint": "^10.0.2",
42
+ "eslint-config-flat-gitignore": "^2.2.1",
43
43
  "eslint-config-prettier": "^10.1.8",
44
- "eslint-plugin-import-lite": "0.5.0",
44
+ "eslint-plugin-import-lite": "0.5.2",
45
45
  "eslint-plugin-jsx-a11y": "^6.10.2",
46
46
  "eslint-plugin-jsx-a11y-x": "^0.1.1",
47
- "eslint-plugin-n": "^17.23.2",
48
- "eslint-plugin-perfectionist": "^5.5.0",
47
+ "eslint-plugin-n": "^17.24.0",
48
+ "eslint-plugin-perfectionist": "^5.6.0",
49
49
  "eslint-plugin-react-hooks": "^7.0.1",
50
- "eslint-plugin-react-refresh": "^0.5.0",
51
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.8.5",
50
+ "eslint-plugin-react-refresh": "^0.5.2",
51
+ "eslint-plugin-react-you-might-not-need-an-effect": "^0.9.1",
52
52
  "eslint-plugin-regexp": "^3.0.0",
53
- "eslint-plugin-sonarjs": "^3.0.7",
53
+ "eslint-plugin-sonarjs": "^4.0.0",
54
54
  "eslint-plugin-unicorn-x": "^3.2.1",
55
55
  "eslint-plugin-unused-imports": "^4.4.1",
56
56
  "globals": "^17.3.0",
57
- "typescript-eslint": "^8.55.0"
57
+ "typescript-eslint": "^8.56.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
61
- "@types/node": "^25.2.3",
62
- "@typescript/native-preview": "^7.0.0-dev.20260211.1",
63
- "prettier": "^3.8.1",
64
- "@kasoa/tsconfig": "0.0.0"
61
+ "@types/node": "^25.3.0",
62
+ "@typescript/native-preview": "^7.0.0-dev.20260224.1",
63
+ "prettier": "^3.8.1"
65
64
  },
66
65
  "peerDependencies": {
67
- "eslint": "^9.35.0"
66
+ "eslint": ">=9.35.0 <11"
68
67
  },
69
68
  "engines": {
70
69
  "node": ">=24"
@@ -1 +0,0 @@
1
- {"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../../src/base/vitest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
File without changes