@leancodepl/eslint-plugin 9.7.0 → 9.7.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.7.3](https://github.com/leancodepl/js_corelibrary/compare/v9.7.2...v9.7.3) (2026-02-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - remove tests from eslint plugin output
11
+ ([1166fa1](https://github.com/leancodepl/js_corelibrary/commit/1166fa126dc46fb925d5f7507b6170eb67c856cf))
12
+
13
+ # Change Log
14
+
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
17
+
18
+ ## [9.7.2](https://github.com/leancodepl/js_corelibrary/compare/v9.7.1...v9.7.2) (2026-01-20)
19
+
20
+ **Note:** Version bump only for package @leancodepl/eslint-plugin
21
+
22
+ # Change Log
23
+
24
+ All notable changes to this project will be documented in this file. See
25
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
26
+
27
+ ## [9.7.1](https://github.com/leancodepl/js_corelibrary/compare/v9.7.0...v9.7.1) (2026-01-20)
28
+
29
+ **Note:** Version bump only for package @leancodepl/eslint-plugin
30
+
31
+ # Change Log
32
+
33
+ All notable changes to this project will be documented in this file. See
34
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
35
+
6
36
  # [9.7.0](https://github.com/leancodepl/js_corelibrary/compare/v9.6.6...v9.7.0) (2025-12-18)
7
37
 
8
38
  ### Bug Fixes
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@leancodepl/eslint-plugin",
3
- "version": "9.7.0",
3
+ "version": "9.7.3",
4
4
  "license": "Apache-2.0",
5
- "type": "commonjs",
5
+ "type": "module",
6
6
  "main": "src/index.js",
7
7
  "dependencies": {
8
8
  "@typescript-eslint/utils": ">=8.0.0",
@@ -17,7 +17,7 @@
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
19
  "engines": {
20
- "node": ">=18.0.0"
20
+ "node": ">=22.0.0"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -42,4 +42,4 @@
42
42
  "url": "https://leancode.co"
43
43
  },
44
44
  "sideEffects": false
45
- }
45
+ }
package/project.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "tags": [],
7
7
  "targets": {
8
8
  "build": {
9
- "command": "node tools/scripts/copy.mjs packages/linters/eslint-plugin {args.outputPath} && rm -rf {args.outputPath}/src/__tests__",
9
+ "command": "node tools/scripts/copy.mjs packages/linters/eslint-plugin {args.outputPath} && rm -r {args.outputPath}/src/__tests__",
10
10
  "configurations": {
11
11
  "args": {
12
12
  "outputPath": "{options.outputPath}"
@@ -19,13 +19,6 @@
19
19
  "publish": {
20
20
  "command": "node tools/scripts/publish.mjs @leancodepl/eslint-plugin {args.registry} {args.ver} {args.tag}",
21
21
  "dependsOn": ["build"]
22
- },
23
- "test": {
24
- "executor": "@nx/jest:jest",
25
- "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
26
- "options": {
27
- "jestConfig": "packages/linters/eslint-plugin/jest.config.js"
28
- }
29
22
  }
30
23
  }
31
24
  }
package/src/index.js CHANGED
@@ -1,3 +1 @@
1
- const { leancodePlugin } = require("./lib/eslint-plugin.js")
2
-
3
- module.exports = { leancodePlugin }
1
+ export { leancodePlugin } from "./lib/eslint-plugin.js"
@@ -1,4 +1,4 @@
1
- const { switchCaseBracesRules } = require("../rules/switch-case-braces.js")
1
+ import { switchCaseBracesRules } from "../rules/switch-case-braces.js"
2
2
 
3
3
  /**
4
4
  * @typedef {import('@typescript-eslint/utils').TSESLint.FlatConfig.Plugin} Plugin
@@ -10,4 +10,4 @@ const leancodePlugin = {
10
10
  rules: { "switch-case-braces": switchCaseBracesRules },
11
11
  }
12
12
 
13
- module.exports = { leancodePlugin }
13
+ export { leancodePlugin }
@@ -129,4 +129,4 @@ const switchCaseBracesRules = {
129
129
  defaultOptions: [],
130
130
  }
131
131
 
132
- module.exports = { switchCaseBracesRules }
132
+ export { switchCaseBracesRules }
package/vite.config.ts ADDED
@@ -0,0 +1,20 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /// <reference types='vitest' />
3
+ import { defineConfig } from "vite"
4
+
5
+ export default defineConfig(() => ({
6
+ root: import.meta.dirname,
7
+ cacheDir: "../../node_modules/.vite/packages/linters/eslint-plugin",
8
+ plugins: [],
9
+ test: {
10
+ name: "linters/eslint-plugin",
11
+ watch: false,
12
+ globals: true,
13
+ environment: "node",
14
+ include: ["{src,__tests__}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
15
+ reporters: ["default"],
16
+ coverage: {
17
+ provider: "v8" as const,
18
+ },
19
+ },
20
+ }))
@@ -0,0 +1,20 @@
1
+ import { defineConfig } from "vitest/config"
2
+
3
+ export default defineConfig(() => ({
4
+ root: import.meta.dirname,
5
+ cacheDir: "../../node_modules/.vite/packages/linters/eslint-plugin",
6
+ plugins: [],
7
+ test: {
8
+ name: "linters/eslint-plugin",
9
+ watch: false,
10
+ globals: true,
11
+ environment: "node",
12
+ include: ["{src,__tests__}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
13
+ reporters: ["default"],
14
+ passWithNoTests: true,
15
+ coverage: {
16
+ reportsDirectory: "../../coverage/packages/linters/eslint-plugin",
17
+ provider: "v8" as const,
18
+ },
19
+ },
20
+ }))
package/jest.config.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- displayName: "@leancodepl/eslint-plugin",
3
- moduleFileExtensions: ["js"],
4
- testEnvironment: "node",
5
- coverageDirectory: "../../../coverage/packages/linters/eslint-plugin",
6
- testMatch: ["<rootDir>/src/**/__tests__/**/*.spec.js"],
7
- transform: {},
8
- }