linter-bundle 2.11.0 → 2.11.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 +13 -4
- package/eslint/index.js +20 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,18 @@ 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/v2.11.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.11.1...HEAD)
|
|
10
10
|
|
|
11
|
-
## [2.11.
|
|
11
|
+
## [2.11.1] - 2022.03.13
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [eslint] Disabled `@typescript-eslint/no-redundant-type-constituents`, because of false positives with `Promise<... | never>`
|
|
16
|
+
- [eslint] Weaken `@typescript-eslint/naming-convention` rule to allow names with special characters for `objectLiteralProperty`.
|
|
17
|
+
|
|
18
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.11.0...v2.11.1)
|
|
19
|
+
|
|
20
|
+
## [2.11.0] - 2022.03.12
|
|
12
21
|
|
|
13
22
|
### Added
|
|
14
23
|
|
|
@@ -18,12 +27,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
18
27
|
### Changed
|
|
19
28
|
|
|
20
29
|
- [eslint] Updated `eslint` from `8.10.0` to `8.11.0`
|
|
21
|
-
- [eslint]
|
|
30
|
+
- [eslint] Updated `eslint-plugin-jsdoc` from `37.9.7` to `38.0.2`
|
|
22
31
|
- [eslint] Disabled [`unicorn/prefer-json-parse-buffer`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md) rule, as [TypeScript states](https://github.com/microsoft/TypeScript/issues/11842) that string needs to be used as of the ES specification.
|
|
23
32
|
|
|
24
33
|
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.10.1...v2.11.0)
|
|
25
34
|
|
|
26
|
-
## [2.10.1] -
|
|
35
|
+
## [2.10.1] - 2022.03.11
|
|
27
36
|
|
|
28
37
|
### Fixed
|
|
29
38
|
|
package/eslint/index.js
CHANGED
|
@@ -561,10 +561,29 @@ module.exports = {
|
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
selector: 'objectLiteralProperty',
|
|
564
|
+
// `__html` is a property of React's `dangerouslySetInnerHTML` object
|
|
564
565
|
filter: '^__html$',
|
|
565
566
|
types: ['string'],
|
|
566
567
|
format: null
|
|
567
568
|
},
|
|
569
|
+
{
|
|
570
|
+
// Allow properties which only contain digits
|
|
571
|
+
selector: 'objectLiteralProperty',
|
|
572
|
+
filter: '^\\d+$',
|
|
573
|
+
format: null
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
// Allow empty or one-character properties
|
|
577
|
+
selector: 'objectLiteralProperty',
|
|
578
|
+
filter: '^.?$',
|
|
579
|
+
format: null
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
// Allow properties which which don't contain an underscore (to prevent usage of "UPPER_CASE") and contain atleast 4 characters
|
|
583
|
+
selector: 'objectLiteralProperty',
|
|
584
|
+
filter: '^[^_]{4,}$',
|
|
585
|
+
format: null
|
|
586
|
+
},
|
|
568
587
|
{ selector: 'typeProperty', format: ['camelCase', 'PascalCase'] },
|
|
569
588
|
{
|
|
570
589
|
selector: 'typeProperty',
|
|
@@ -641,7 +660,7 @@ module.exports = {
|
|
|
641
660
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
642
661
|
'@typescript-eslint/no-parameter-properties': 'error',
|
|
643
662
|
'@typescript-eslint/no-redeclare': ['error', { ignoreDeclarationMerge: true }],
|
|
644
|
-
'@typescript-eslint/no-redundant-type-constituents': '
|
|
663
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off', // False positive with Promise<... | never>
|
|
645
664
|
'@typescript-eslint/no-require-imports': 'error',
|
|
646
665
|
'@typescript-eslint/no-shadow': 'error',
|
|
647
666
|
'@typescript-eslint/no-this-alias': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linter-bundle",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@types/eslint": "8.4.1",
|
|
74
74
|
"@types/micromatch": "4.0.2",
|
|
75
75
|
"@types/node": "17.0.21",
|
|
76
|
-
"stylelint-find-new-rules": "
|
|
76
|
+
"stylelint-find-new-rules": "4.0.0",
|
|
77
77
|
"typescript": "4.6.2"
|
|
78
78
|
}
|
|
79
79
|
}
|