linter-bundle 6.0.0 → 6.1.0
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 +22 -9
- package/eslint/index.cjs +4 -1
- package/eslint/overrides-javascript.cjs +6 -0
- package/package.json +6 -6
- package/stylelint/index.cjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,20 @@ 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/v6.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v6.1.0...HEAD)
|
|
10
|
+
|
|
11
|
+
## [6.1.0] - 2024-01-24
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [eslint] Updated `@typescript-eslint` from `6.19.0` to `6.19.1`
|
|
16
|
+
- [stylelint] Updated `stylelint-scss` from `6.0.0` to `6.1.0`
|
|
17
|
+
- [eslint] Activate `allowConstantLoopConditions` of [`@typescript-eslint/no-unnecessary-condition`](https://typescript-eslint.io/rules/no-unnecessary-condition/) rule, as this is covered by [`no-constant-condition`](https://archive.eslint.org/docs/rules/no-constant-condition)
|
|
18
|
+
- [eslint] Allow "camelCase" and "PascalCase" style in [`@typescript-eslint/naming-convention`](https://typescript-eslint.io/rules/naming-convention/) rule for imports
|
|
19
|
+
- [eslint/overrides-javascript] Disable [`unicorn/prefer-module`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md) for *.js files in the root directory (so that configuration files are ignored)
|
|
20
|
+
- [stylelint] Make use of new [`scss/no-unused-private-members`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-unused-private-members/README.md) rule
|
|
21
|
+
|
|
22
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v6.0.0...v6.1.0)
|
|
10
23
|
|
|
11
24
|
## [6.0.0] - 2024-01-21
|
|
12
25
|
|
|
@@ -231,7 +244,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
231
244
|
- [eslint] Updated `eslint-plugin-react` from `7.32.2` to `7.33.0`
|
|
232
245
|
- [eslint] Updated `eslint-plugin-unicorn` from `48.0.0` to `48.0.1`
|
|
233
246
|
- [eslint] Reactivated `unicorn/no-empty-file`
|
|
234
|
-
- [eslint] Activated `ignoreConditionalTests` and `ignoreMixedLogicalExpressions` options of [@typescript-eslint/prefer-nullish-coalescing](https://
|
|
247
|
+
- [eslint] Activated `ignoreConditionalTests` and `ignoreMixedLogicalExpressions` options of [@typescript-eslint/prefer-nullish-coalescing](https://typescript-eslint.io/rules/prefer-nullish-coalescing.md) rule
|
|
235
248
|
- [styleint] Set `ignoreFunctions` option to `/^custom-/u` of [`scss/function-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-no-unknown/README.md) rule
|
|
236
249
|
- [stylelint] Ignore SCSS variables in [`declaration-property-value-no-unknown`](https://stylelint.io/user-guide/rules/declaration-property-value-no-unknown/) rule
|
|
237
250
|
- [stylelint] Ignore wrapping parentheses for `grid-template-areas` values in [`declaration-property-value-no-unknown`](https://stylelint.io/user-guide/rules/declaration-property-value-no-unknown/) rule
|
|
@@ -377,12 +390,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
377
390
|
|
|
378
391
|
### Added
|
|
379
392
|
|
|
380
|
-
- [eslint] Added new [`@typescript-eslint/key-spacing`](https://
|
|
381
|
-
- [eslint] Added new [`@typescript-eslint/no-duplicate-type-constituents.md`](https://
|
|
382
|
-
- [eslint] Added new [`@typescript-eslint/no-import-type-side-effects`](https://
|
|
383
|
-
- [eslint] Added new [`@typescript-eslint/no-mixed-enums`](https://
|
|
384
|
-
- [eslint] Added new [`@typescript-eslint/no-unsafe-enum-comparison`](https://
|
|
385
|
-
- [eslint] Added new [`@typescript-eslint/sort-type-constituents`](https://
|
|
393
|
+
- [eslint] Added new [`@typescript-eslint/key-spacing`](https://typescript-eslint.io/rules/key-spacing.md) rule
|
|
394
|
+
- [eslint] Added new [`@typescript-eslint/no-duplicate-type-constituents.md`](https://typescript-eslint.io/rules/no-duplicate-type-constituents.md) rule
|
|
395
|
+
- [eslint] Added new [`@typescript-eslint/no-import-type-side-effects`](https://typescript-eslint.io/rules/no-import-type-side-effects.md) rule
|
|
396
|
+
- [eslint] Added new [`@typescript-eslint/no-mixed-enums`](https://typescript-eslint.io/rules/no-mixed-enums.md) rule
|
|
397
|
+
- [eslint] Added new [`@typescript-eslint/no-unsafe-enum-comparison`](https://typescript-eslint.io/rules/no-unsafe-enum-comparison.md) rule
|
|
398
|
+
- [eslint] Added new [`@typescript-eslint/sort-type-constituents`](https://typescript-eslint.io/rules/sort-type-constituents.md) rule
|
|
386
399
|
- [eslint] Added new [`no-constant-binary-expression`](https://github.com/eslint/eslint/blob/main/docs/src/rules/no-constant-binary-expression.md) rule
|
|
387
400
|
- [eslint] Added new [`functional/prefer-immutable-types`](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/docs/rules/prefer-immutable-types.md) rule, but disabled it
|
|
388
401
|
- [eslint] Added new [`functional/readonly-type`](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/docs/rules/readonly-type.md) rule with option `keyword`
|
|
@@ -900,7 +913,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
900
913
|
- [eslint] Updated `@typescript-eslint` from v5.11.0 to v5.12.0
|
|
901
914
|
- [eslint] Updated `eslint` from v8.8.0 to v8.9.0
|
|
902
915
|
- [eslint] Updated `eslint-plugin-jsdoc` from v37.8.2 to v37.9.1
|
|
903
|
-
- [eslint] Ignore `generics` in [`@typescript-eslint/comma-dangle`](https://
|
|
916
|
+
- [eslint] Ignore `generics` in [`@typescript-eslint/comma-dangle`](https://typescript-eslint.io/rules/comma-dangle.md) to allow [generic component definitions for function components](https://wanago.io/2020/03/09/functional-react-components-with-generic-props-in-typescript/#crayon-620a96e97d44a141656396)
|
|
904
917
|
|
|
905
918
|
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.5.0...v2.6.0)
|
|
906
919
|
|
package/eslint/index.cjs
CHANGED
|
@@ -650,6 +650,9 @@ module.exports = {
|
|
|
650
650
|
// Interface
|
|
651
651
|
{ selector: 'interface', format: ['PascalCase'] },
|
|
652
652
|
|
|
653
|
+
// Import
|
|
654
|
+
{ selector: 'import', format: ['camelCase', 'PascalCase'] },
|
|
655
|
+
|
|
653
656
|
// Type alias
|
|
654
657
|
{ selector: 'typeAlias', format: ['PascalCase'] },
|
|
655
658
|
|
|
@@ -718,7 +721,7 @@ module.exports = {
|
|
|
718
721
|
allowTupleTypes: 'in-unions-and-intersections'
|
|
719
722
|
}],
|
|
720
723
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
721
|
-
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
724
|
+
'@typescript-eslint/no-unnecessary-condition': ['error', { allowConstantLoopConditions: true }],
|
|
722
725
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
723
726
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
724
727
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linter-bundle",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"_test-stylelint": "node ./test-stylelint.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "6.19.
|
|
45
|
-
"@typescript-eslint/parser": "6.19.
|
|
46
|
-
"@typescript-eslint/utils": "6.19.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "6.19.1",
|
|
45
|
+
"@typescript-eslint/parser": "6.19.1",
|
|
46
|
+
"@typescript-eslint/utils": "6.19.1",
|
|
47
47
|
"eslint": "8.56.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
49
49
|
"eslint-import-resolver-webpack": "0.13.8",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
|
|
66
66
|
"stylelint-high-performance-animation": "1.10.0",
|
|
67
67
|
"stylelint-order": "6.0.4",
|
|
68
|
-
"stylelint-scss": "6.
|
|
68
|
+
"stylelint-scss": "6.1.0",
|
|
69
69
|
"stylelint-use-logical-spec": "5.0.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/eslint": "8.56.2",
|
|
77
77
|
"@types/micromatch": "4.0.6",
|
|
78
|
-
"@types/node": "20.11.
|
|
78
|
+
"@types/node": "20.11.6",
|
|
79
79
|
"stylelint-find-new-rules": "5.0.0",
|
|
80
80
|
"typescript": "5.3.3"
|
|
81
81
|
}
|
package/stylelint/index.cjs
CHANGED
|
@@ -1015,6 +1015,7 @@ module.exports = (async () => {
|
|
|
1015
1015
|
'scss/no-duplicate-dollar-variables': true,
|
|
1016
1016
|
'scss/no-duplicate-mixins': true,
|
|
1017
1017
|
'scss/no-global-function-names': true,
|
|
1018
|
+
'scss/no-unused-private-members': true,
|
|
1018
1019
|
'scss/operator-no-newline-after': true,
|
|
1019
1020
|
'scss/operator-no-newline-before': true,
|
|
1020
1021
|
'scss/operator-no-unspaced': true,
|