linter-bundle 2.8.0 → 2.8.4
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 +26 -2
- package/eslint/index.js +3 -3
- package/eslint/overrides-javascript.js +2 -1
- package/eslint/overrides-react.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,13 +6,37 @@ 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.8.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.4...HEAD)
|
|
10
|
+
|
|
11
|
+
## [2.8.4] - 2022.02.19
|
|
12
|
+
|
|
13
|
+
- [eslint] Disabled [`import/no-unused-modules`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md) rule, because of false positives with type exports.
|
|
14
|
+
|
|
15
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.3...v2.8.4)
|
|
16
|
+
|
|
17
|
+
## [2.8.3] - 2022.02.19
|
|
18
|
+
|
|
19
|
+
- [eslint/overrides-react] Disable [`react/no-unused-class-component-methods`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-class-component-methods.md) rule, because of false positives with public methods.
|
|
20
|
+
|
|
21
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.2...v2.8.3)
|
|
22
|
+
|
|
23
|
+
## [2.8.2] - 2022.02.19
|
|
24
|
+
|
|
25
|
+
- [eslint] Disable `@typescript-eslint/no-unnecessary-type-arguments` rule, because of false positives with `React.FunctionComponent` generics
|
|
26
|
+
|
|
27
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.1...v2.8.2)
|
|
28
|
+
|
|
29
|
+
## [2.8.1] - 2022.02.19
|
|
30
|
+
|
|
31
|
+
- [eslint/overrides-javascript] Use [`unicorn/text-encoding-identifier-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) rule, only in JavaScript files.
|
|
32
|
+
|
|
33
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.0...v2.8.1)
|
|
10
34
|
|
|
11
35
|
## [2.8.0] - 2022.02.18
|
|
12
36
|
|
|
13
37
|
- [eslint] Update `eslint-plugin-jsdoc` from v37.9.1 to v37.9.4
|
|
14
38
|
- [eslint] Update `eslint-plugin-unicorn` from v40.1.0 to v41.0.0
|
|
15
|
-
- [eslint] Make use of [`unicorn/text-encoding-identifier-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) rule
|
|
39
|
+
- [eslint] Make use of new [`unicorn/text-encoding-identifier-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) rule
|
|
16
40
|
- [stylelint] Fixed disabling of [`function-no-unknown`](https://github.com/stylelint/stylelint/blob/main/lib/rules/function-no-unknown/README.md) rule, because of false positives
|
|
17
41
|
|
|
18
42
|
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.7.0...v2.8.0)
|
package/eslint/index.js
CHANGED
|
@@ -660,7 +660,7 @@ module.exports = {
|
|
|
660
660
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
661
661
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
662
662
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
663
|
-
'@typescript-eslint/no-unnecessary-type-arguments': '
|
|
663
|
+
'@typescript-eslint/no-unnecessary-type-arguments': 'off', // @todo Disabled because of false positives with `React.FunctionComponent` generics
|
|
664
664
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
665
665
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
666
666
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
@@ -791,7 +791,7 @@ module.exports = {
|
|
|
791
791
|
]
|
|
792
792
|
}],
|
|
793
793
|
'import/no-unresolved': ['error', { caseSensitiveStrict: true }],
|
|
794
|
-
'import/no-unused-modules': ['
|
|
794
|
+
'import/no-unused-modules': ['off', { unusedExports: true }], // Disabled because of false-positive with `export type { ... }` + `import type { ... }`
|
|
795
795
|
'import/no-useless-path-segments': 'error',
|
|
796
796
|
'import/no-webpack-loader-syntax': 'off', // Indeed, you should avoid that, but if we do it, we have a reason for it
|
|
797
797
|
'import/order': ['error', {
|
|
@@ -1005,7 +1005,7 @@ module.exports = {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
}],
|
|
1007
1007
|
'unicorn/template-indent': 'error',
|
|
1008
|
-
'unicorn/text-encoding-identifier-case': '
|
|
1008
|
+
'unicorn/text-encoding-identifier-case': 'off',
|
|
1009
1009
|
'unicorn/throw-new-error': 'error'
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
@@ -109,7 +109,8 @@ module.exports = {
|
|
|
109
109
|
'unicorn/no-process-exit': 'off', // node/no-process-exit
|
|
110
110
|
'unicorn/prefer-module': 'off', // @todo Requires Node.js v13.2. Activate in 2023
|
|
111
111
|
'unicorn/prefer-node-protocol': 'off', // @todo Requires Node.js v16. Activate in 2025
|
|
112
|
-
'unicorn/prevent-abbreviations': ['error', { ignore: ['args', 'dev', 'env', 'i', 'j', 'i18n', 'pkg', 'ref', 'Ref', 'req', 'res', 'setupDevServerMiddleware'] }]
|
|
112
|
+
'unicorn/prevent-abbreviations': ['error', { ignore: ['args', 'dev', 'env', 'i', 'j', 'i18n', 'pkg', 'ref', 'Ref', 'req', 'res', 'setupDevServerMiddleware'] }],
|
|
113
|
+
'unicorn/text-encoding-identifier-case': 'off'
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
]
|
|
@@ -91,7 +91,7 @@ module.exports = {
|
|
|
91
91
|
'react/no-unknown-property': 'error',
|
|
92
92
|
'react/no-unsafe': 'error',
|
|
93
93
|
'react/no-unstable-nested-components': 'error',
|
|
94
|
-
'react/no-unused-class-component-methods': '
|
|
94
|
+
'react/no-unused-class-component-methods': 'off', // @todo False-positives with public methods.
|
|
95
95
|
'react/no-unused-prop-types': 'error',
|
|
96
96
|
'react/no-unused-state': 'error',
|
|
97
97
|
'react/no-will-update-set-state': 'error',
|