linter-bundle 7.1.0 → 7.1.1

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
@@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.1.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.1.1...HEAD)
10
+
11
+ ## [7.1.1] - 2025-03-15
12
+
13
+ ### Fixed
14
+
15
+ - [eslint/react] Fixed `Key "plugins": Cannot redefine plugin "linter-bundle".` issue
16
+
17
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.1.0...v7.1.1)
10
18
 
11
19
  ## [7.1.0] - 2025-03-15
12
20
 
@@ -21,7 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
21
29
  - [eslint] Added custom linter rule [`linter-bundle/enforce-ternary-parens`](./eslint/rules/enforce-ternary-parens.md) which ensures ternary expressions are wrapped in parentheses
22
30
  - [eslint] Added custom linter rule [`linter-bundle/no-extra-spaces-in-generics`](./eslint/rules/no-extra-spaces-in-generics.md) to disallows spaces after the `<` and before the `>` in TypeScript generics
23
31
  - [eslint] Added custom linter rule [`linter-bundle/no-ternary-return`](./eslint/rules/no-ternary-return.md) which disallows ternary expressions as return values for better readability
24
- - [eslint] Configure [`padding-line-between-statements`](https://eslint.org/docs/latest/rules/padding-line-between-statements) to enforce line-breaks before `return`, `throw`, `break`, `continue`, around multi-line block statements and around `const`, `let`, `var` groups
32
+ - [eslint] Configured [`padding-line-between-statements`](https://eslint.org/docs/latest/rules/padding-line-between-statements) to enforce line-breaks before `return`, `throw`, `break`, `continue`, around multi-line block statements and around `const`, `let`, `var` groups
25
33
  - [eslint/react] Added custom linter rule [`linter-bundle/ensure-lucide-import-consistency`](./eslint/rules/ensure-lucide-import-consistency.md) to enforces using [Lucide](https://lucide.dev/guide/packages/lucide-react) prefix for lucide-react imports and their usage
26
34
  - [eslint] Updated `eslint-import-resolver-typescript` from `3.8.4` to `3.9.0`
27
35
  - [stylelint] Updated `stylelint` from `16.15.0` to `16.16.0`
package/eslint/index.mjs CHANGED
@@ -24,6 +24,7 @@ import { linterBundleConfig } from '../helper/linter-bundle-config.js';
24
24
 
25
25
  import enforceLogicalExpressionParens from './rules/enforce-logical-expression-parens.mjs';
26
26
  import enforceTernaryParensRule from './rules/enforce-ternary-parens.mjs';
27
+ import ensureLucideImportConsistencyRule from './rules/ensure-lucide-import-consistency.mjs';
27
28
  import noExtraSpacesInGenericsRule from './rules/no-extra-spaces-in-generics.mjs';
28
29
  import noTernaryReturnRule from './rules/no-ternary-return.mjs';
29
30
  import noUnnecessaryTypeofRule from './rules/no-unnecessary-typeof.mjs';
@@ -53,6 +54,7 @@ export default [
53
54
  rules: {
54
55
  'enforce-logical-expression-parens': enforceLogicalExpressionParens,
55
56
  'enforce-ternary-parens': enforceTernaryParensRule,
57
+ 'ensure-lucide-import-consistency': ensureLucideImportConsistencyRule,
56
58
  'no-extra-spaces-in-generics': noExtraSpacesInGenericsRule,
57
59
  'no-ternary-return': noTernaryReturnRule,
58
60
  'no-unnecessary-typeof': noUnnecessaryTypeofRule,
package/eslint/react.mjs CHANGED
@@ -9,19 +9,12 @@ import * as reactHooksPlugin from 'eslint-plugin-react-hooks';
9
9
  import * as ensureType from '../helper/ensure-type.mjs';
10
10
  import { linterBundleConfig } from '../helper/linter-bundle-config.js';
11
11
 
12
- import ensureLucideImportConsistencyRule from './rules/ensure-lucide-import-consistency.mjs';
13
-
14
12
  export default [
15
13
  {
16
14
  plugins: {
17
15
  'react-hooks': reactHooksPlugin,
18
16
  'react': reactPlugin,
19
- '@stylistic/jsx': stylisticJSXPlugin,
20
- 'linter-bundle': {
21
- rules: {
22
- 'ensure-lucide-import-consistency': ensureLucideImportConsistencyRule
23
- }
24
- }
17
+ '@stylistic/jsx': stylisticJSXPlugin
25
18
  }
26
19
  },
27
20
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "type": "module",
5
5
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
6
6
  "keywords": [