@leancodepl/linting 9.5.1 → 9.5.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +23 -13
  3. package/package.json +6 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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.5.3](https://github.com/leancodepl/js_corelibrary/compare/v9.5.2...v9.5.3) (2025-08-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - adjust readme example
11
+ ([1e700ca](https://github.com/leancodepl/js_corelibrary/commit/1e700ca12b83df9c2696ec411f0ab5b7f32ad229))
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.5.2](https://github.com/leancodepl/js_corelibrary/compare/v9.5.1...v9.5.2) (2025-08-13)
19
+
20
+ ### Bug Fixes
21
+
22
+ - build config ([3647b68](https://github.com/leancodepl/js_corelibrary/commit/3647b686cff8716b874d88024eba2c553dc19c5c))
23
+ - linting package readme
24
+ ([b3c5ae6](https://github.com/leancodepl/js_corelibrary/commit/b3c5ae6d615b12ba7fc62f6c0936085789f1299f))
25
+
26
+ # Change Log
27
+
28
+ All notable changes to this project will be documented in this file. See
29
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
30
+
6
31
  ## [9.5.1](https://github.com/leancodepl/js_corelibrary/compare/v9.5.0...v9.5.1) (2025-08-05)
7
32
 
8
33
  **Note:** Version bump only for package @leancodepl/linting
package/README.md CHANGED
@@ -13,8 +13,9 @@ yarn add --dev @leancodepl/linting
13
13
  ## Included Packages
14
14
 
15
15
  - `@leancodepl/eslint-config` - ESLint rules for TypeScript and React
16
- - `@leancodepl/prettier-config` - Prettier formatting configuration
16
+ - `@leancodepl/prettier-config` - Prettier formatting configuration
17
17
  - `@leancodepl/stylelint-config` - Stylelint rules for CSS and SCSS
18
+ - `@leancodepl/resolve-eslint-flat-confgi` - TypeScript resolver for ESlint flat config
18
19
 
19
20
  ## Usage Examples
20
21
 
@@ -22,21 +23,16 @@ yarn add --dev @leancodepl/linting
22
23
 
23
24
  ```javascript
24
25
  // eslint.config.js
25
- import { base, baseReact, imports, a11y } from '@leancodepl/eslint-config';
26
-
27
- export default [
28
- ...base,
29
- ...baseReact,
30
- ...imports,
31
- ...a11y,
32
- ];
26
+ import { base, baseReact, imports, a11y } from "@leancodepl/eslint-config"
27
+
28
+ export default [...base, ...baseReact, ...imports, ...a11y]
33
29
  ```
34
30
 
35
31
  ### Prettier Configuration
36
32
 
37
33
  ```javascript
38
34
  // prettier.config.js
39
- module.exports = require('@leancodepl/prettier-config');
35
+ module.exports = require("@leancodepl/prettier-config")
40
36
  ```
41
37
 
42
38
  ### Stylelint Configuration
@@ -44,6 +40,20 @@ module.exports = require('@leancodepl/prettier-config');
44
40
  ```javascript
45
41
  // stylelint.config.js
46
42
  module.exports = {
47
- extends: '@leancodepl/stylelint-config',
48
- };
49
- ```
43
+ extends: "@leancodepl/stylelint-config",
44
+ }
45
+ ```
46
+
47
+ ### ESlint flat config resolver
48
+
49
+ ```javascript
50
+ // eslint.config.js
51
+ const { resolveFlatConfig } = require("@leancodepl/resolve-eslint-flat-config")
52
+
53
+ const customConfigs = [
54
+ { plugins: { custom: customPlugin }, rules: { "custom/rule": "error" } },
55
+ { plugins: { another: anotherPlugin }, rules: { "another/rule": "warn" } },
56
+ ]
57
+
58
+ module.exports = resolveFlatConfig(customConfigs)
59
+ ```
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@leancodepl/linting",
3
- "version": "9.5.1",
3
+ "version": "9.5.3",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
- "@leancodepl/eslint-config": "9.5.1",
7
- "@leancodepl/prettier-config": "9.5.1",
8
- "@leancodepl/stylelint-config": "9.5.1"
6
+ "@leancodepl/eslint-config": "9.5.3",
7
+ "@leancodepl/prettier-config": "9.5.3",
8
+ "@leancodepl/resolve-eslint-flat-config": "9.5.3",
9
+ "@leancodepl/stylelint-config": "9.5.3"
9
10
  },
10
11
  "publishConfig": {
11
12
  "access": "public",
@@ -27,6 +28,7 @@
27
28
  "keywords": [
28
29
  "linting",
29
30
  "eslint",
31
+ "resolve",
30
32
  "prettier",
31
33
  "stylelint",
32
34
  "typescript",