linter-bundle 2.14.1 → 2.15.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 +10 -1
- package/README.md +36 -1
- package/package.json +1 -1
- package/stylelint/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,16 @@ 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.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.15.0...HEAD)
|
|
10
|
+
|
|
11
|
+
## [2.15.0] - 2022.05.05
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [stylelint] Disabled `declaration-property-max-values` rule because of false-positives.
|
|
16
|
+
- [stylelint] Disabled `selector-not-notation` for now, because it depends on the project if modern Selectors Level 4 CSS can be used.
|
|
17
|
+
|
|
18
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.14.1...v2.15.0)
|
|
10
19
|
|
|
11
20
|
## [2.14.1] - 2022.05.05
|
|
12
21
|
|
package/README.md
CHANGED
|
@@ -81,6 +81,27 @@ npm install linter-bundle --save-dev
|
|
|
81
81
|
|
|
82
82
|
#### .eslintrc.js
|
|
83
83
|
|
|
84
|
+
##### Minimum configuration
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
module.exports = {
|
|
88
|
+
extends: [
|
|
89
|
+
require.resolve('linter-bundle/eslint'),
|
|
90
|
+
// require.resolve('linter-bundle/eslint/overrides-gatsby'),
|
|
91
|
+
// require.resolve('linter-bundle/eslint/overrides-javascript'),
|
|
92
|
+
require.resolve('linter-bundle/eslint/overrides-javascript-lazy'),
|
|
93
|
+
// require.resolve('linter-bundle/eslint/overrides-jest'),
|
|
94
|
+
require.resolve('linter-bundle/eslint/overrides-jsdoc'),
|
|
95
|
+
// require.resolve('linter-bundle/eslint/overrides-react'),
|
|
96
|
+
// require.resolve('linter-bundle/eslint/overrides-storybook'),
|
|
97
|
+
// require.resolve('linter-bundle/eslint/overrides-type-declarations'),
|
|
98
|
+
// require.resolve('linter-bundle/eslint/overrides-worker')
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
##### Maximum configuration
|
|
104
|
+
|
|
84
105
|
```js
|
|
85
106
|
// Sometimes it's required to adjust specific settings. These can be defined here:
|
|
86
107
|
global.linterBundleSettings = {
|
|
@@ -202,7 +223,7 @@ module.exports = {
|
|
|
202
223
|
|
|
203
224
|
#### .gitignore / .npmignore
|
|
204
225
|
|
|
205
|
-
```
|
|
226
|
+
```cmd
|
|
206
227
|
.eslintcache
|
|
207
228
|
```
|
|
208
229
|
|
|
@@ -389,3 +410,17 @@ To visualize the max line-length rules in VSCode, you can activate rulers, by ad
|
|
|
389
410
|
}
|
|
390
411
|
}
|
|
391
412
|
```
|
|
413
|
+
|
|
414
|
+
## FAQ
|
|
415
|
+
|
|
416
|
+
### How to solve the problem `Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.` ?
|
|
417
|
+
|
|
418
|
+
If you get such an error message:
|
|
419
|
+
|
|
420
|
+
> Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
|
|
421
|
+
> The file does not match your project config: *[any-name]*.js.
|
|
422
|
+
> The file must be included in at least one of the projects provided.
|
|
423
|
+
|
|
424
|
+
the problem is most likely, that your `tsconfig.json` does not cover your JavaScript files and that you don't have a `jsconfig.json` file in your root directory. This is required by the `@typescript-eslint` to use TypeScript for linting of JavaScript files.
|
|
425
|
+
|
|
426
|
+
To solve this problem, either `"include"` your JavaScript files in your `tsconfig.json` (don't forget to set the compiler option `"checkJs"` to `true`) or create a `jsconfig.json` file in your root directory (this can be a copy of your `tsconfig.json` with an `"include"` of your JavaScript files).
|
package/package.json
CHANGED
package/stylelint/index.js
CHANGED
|
@@ -157,7 +157,7 @@ module.exports = {
|
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
|
-
'declaration-property-max-values': { '/.*/': 4 },
|
|
160
|
+
'declaration-property-max-values': null, // { '/.*/': 4 }, @todo disabled because of false-positive with `padding-inline-start: #{24px + $i * 16px};` and `transition: transform, background-color, color, border-color, box-shadow;`
|
|
161
161
|
'declaration-no-important': [true, {
|
|
162
162
|
severity: 'warning'
|
|
163
163
|
}],
|
|
@@ -291,7 +291,7 @@ module.exports = {
|
|
|
291
291
|
'selector-nested-pattern': null,
|
|
292
292
|
'selector-no-qualifying-type': [true, { ignore: ['attribute', 'class'] }],
|
|
293
293
|
'selector-no-vendor-prefix': true,
|
|
294
|
-
'selector-not-notation': 'complex',
|
|
294
|
+
'selector-not-notation': null, // 'complex', @todo Reactivate in 2024. Disabled for now, because it depends on the project if modern Selectors Level 4 CSS can be used.
|
|
295
295
|
'selector-pseudo-class-allowed-list': null,
|
|
296
296
|
'selector-pseudo-class-case': 'lower',
|
|
297
297
|
'selector-pseudo-class-disallowed-list': null,
|