linter-bundle 4.0.0 → 4.0.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 +14 -1
- package/eslint/index.js +1 -1
- package/eslint/overrides-gatsby.js +2 -2
- package/eslint/overrides-javascript.js +1 -1
- package/eslint/overrides-type-declarations.js +1 -1
- package/lint.js +1 -1
- package/package.json +1 -1
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/v4.0.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v4.0.1...HEAD)
|
|
10
|
+
|
|
11
|
+
## [4.0.1] - 2023-08-31
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [eslint] Disabled `unicorn/filename-case` in favour of the new linter-bundle `files` task
|
|
16
|
+
- [files] Fixed path to `files` task
|
|
17
|
+
|
|
18
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v4.0.0...v4.0.1)
|
|
10
19
|
|
|
11
20
|
## [4.0.0] - 2023-08-30
|
|
12
21
|
|
|
@@ -14,6 +23,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
14
23
|
|
|
15
24
|
- [general] The global configuration variable `global.linterBundleSettings` has been replaced by a `.linter-bundle.json` / `.linter-bundle.cjs` / `.linter-bundle.js` configuration file in the projects root directory
|
|
16
25
|
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- [general] New `files` task which ensures that files in the project match the restrictions defined in the linter-bundle configuration file.
|
|
29
|
+
|
|
17
30
|
### Changed
|
|
18
31
|
|
|
19
32
|
- [eslint] Updated `eslint-plugin-jsdoc` from `46.5.0` to `46.5.1`
|
package/eslint/index.js
CHANGED
|
@@ -931,7 +931,7 @@ module.exports = {
|
|
|
931
931
|
'unicorn/escape-case': 'error',
|
|
932
932
|
'unicorn/expiring-todo-comments': 'error',
|
|
933
933
|
'unicorn/explicit-length-check': 'error',
|
|
934
|
-
'unicorn/filename-case': ['
|
|
934
|
+
'unicorn/filename-case': ['off', { // Disabled in favour of the linter-bundle `files` task
|
|
935
935
|
cases: {
|
|
936
936
|
camelCase: true,
|
|
937
937
|
pascalCase: true
|
|
@@ -62,7 +62,7 @@ module.exports = {
|
|
|
62
62
|
* eslint-plugin-unicorn
|
|
63
63
|
* @see https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
64
64
|
*/
|
|
65
|
-
'unicorn/filename-case': ['
|
|
65
|
+
'unicorn/filename-case': ['off', { // Disabled in favour of the linter-bundle `files` task
|
|
66
66
|
cases: {
|
|
67
67
|
camelCase: true,
|
|
68
68
|
pascalCase: true
|
|
@@ -87,7 +87,7 @@ module.exports = {
|
|
|
87
87
|
* eslint-plugin-unicorn
|
|
88
88
|
* @see https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
89
89
|
*/
|
|
90
|
-
'unicorn/filename-case': ['
|
|
90
|
+
'unicorn/filename-case': ['off', { // Disabled in favour of the linter-bundle `files` task
|
|
91
91
|
cases: {
|
|
92
92
|
kebabCase: true
|
|
93
93
|
}
|
|
@@ -92,7 +92,7 @@ module.exports = {
|
|
|
92
92
|
*
|
|
93
93
|
* @see https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
94
94
|
*/
|
|
95
|
-
'unicorn/filename-case': ['
|
|
95
|
+
'unicorn/filename-case': ['off', { // Disabled in favour of the linter-bundle `files` task
|
|
96
96
|
cases: {
|
|
97
97
|
kebabCase: true
|
|
98
98
|
}
|
|
@@ -28,7 +28,7 @@ module.exports = {
|
|
|
28
28
|
*
|
|
29
29
|
* @see https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
30
30
|
*/
|
|
31
|
-
'unicorn/filename-case': ['
|
|
31
|
+
'unicorn/filename-case': ['off', { // Disabled in favour of the linter-bundle `files` task
|
|
32
32
|
cases: {
|
|
33
33
|
kebabCase: true,
|
|
34
34
|
pascalCase: true
|
package/lint.js
CHANGED
|
@@ -135,7 +135,7 @@ async function runFilesTask (taskName, taskConfig) {
|
|
|
135
135
|
return runTask({
|
|
136
136
|
taskName,
|
|
137
137
|
taskConfig: newTaskConfig,
|
|
138
|
-
command: `node ./files ${includes}`
|
|
138
|
+
command: `node "${path.resolve(__dirname, './files/index.js')}" ${includes}`
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
|