@darksheep/eslint 4.2.1 → 4.3.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 +36 -0
- package/package.json +24 -23
- package/src/index.js +2 -0
- package/src/plugins/json-files.js +35 -0
- package/types/src/plugins/json-files.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.3.1](https://github.com/DarkSheepSoftware/eslint/compare/v4.3.0...v4.3.1) (2024-03-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Fixes
|
|
7
|
+
|
|
8
|
+
* Invalid version range for workspace dependency ([#297](https://github.com/DarkSheepSoftware/eslint/issues/297)) ([554a5f9](https://github.com/DarkSheepSoftware/eslint/commit/554a5f917543f377d95cb213777357e3afc94890))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 📦 Dependencies
|
|
12
|
+
|
|
13
|
+
* **dev:** update dependency @types/node to v20.11.26 ([#295](https://github.com/DarkSheepSoftware/eslint/issues/295)) ([0dc2c8a](https://github.com/DarkSheepSoftware/eslint/commit/0dc2c8a42f808b71cec5f606cf4712ed95053e8f))
|
|
14
|
+
* **lock:** lock file maintenance ([#293](https://github.com/DarkSheepSoftware/eslint/issues/293)) ([fb65e9d](https://github.com/DarkSheepSoftware/eslint/commit/fb65e9d1f55b035e1478a647666db48598a62138))
|
|
15
|
+
* **pkg:** update typescript-eslint monorepo to ~7.2.0 ([#294](https://github.com/DarkSheepSoftware/eslint/issues/294)) ([6625d25](https://github.com/DarkSheepSoftware/eslint/commit/6625d252ac8b58e753ad870a5c3ff13e233593a9))
|
|
16
|
+
|
|
17
|
+
## [4.3.0](https://github.com/DarkSheepSoftware/eslint/compare/v4.2.1...v4.3.0) (2024-03-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🌟 Features
|
|
21
|
+
|
|
22
|
+
* package.json linting ([2ff260c](https://github.com/DarkSheepSoftware/eslint/commit/2ff260c8462d7960fed3a12b87ac9f196b28661b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### 📦 Dependencies
|
|
26
|
+
|
|
27
|
+
* **dev:** update dependency @types/node to v20.11.25 ([#287](https://github.com/DarkSheepSoftware/eslint/issues/287)) ([36c11d3](https://github.com/DarkSheepSoftware/eslint/commit/36c11d3962a199dbf3cdb7211badde30832963a6))
|
|
28
|
+
* **dev:** update dependency type-fest to ~4.12.0 ([#291](https://github.com/DarkSheepSoftware/eslint/issues/291)) ([ac2142e](https://github.com/DarkSheepSoftware/eslint/commit/ac2142e17742e98d3348fba3e0d75509b97d8516))
|
|
29
|
+
* **dev:** update dependency typescript to ~5.4.0 ([#288](https://github.com/DarkSheepSoftware/eslint/issues/288)) ([1298bbb](https://github.com/DarkSheepSoftware/eslint/commit/1298bbbb75e108a42ed0d839515cd013061dff9a))
|
|
30
|
+
* **lock:** lock file maintenance ([#289](https://github.com/DarkSheepSoftware/eslint/issues/289)) ([19274d0](https://github.com/DarkSheepSoftware/eslint/commit/19274d0545fc0082e89e62f51e4bcc882339f947))
|
|
31
|
+
* **pkg:** update dependency eslint-plugin-jsdoc to v48.2.1 ([#290](https://github.com/DarkSheepSoftware/eslint/issues/290)) ([dd40f17](https://github.com/DarkSheepSoftware/eslint/commit/dd40f175880add3e066016617a36089358ebbaa8))
|
|
32
|
+
* **pkg:** update dependency eslint-plugin-regexp to ~2.3.0 ([#292](https://github.com/DarkSheepSoftware/eslint/issues/292)) ([b9872d0](https://github.com/DarkSheepSoftware/eslint/commit/b9872d096937ec767ec3a3c8f15ab6ac97010f9d))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### 🤖 Automation
|
|
36
|
+
|
|
37
|
+
* Make `Features` a 🌟 emoji, it was 💡 ([d2628da](https://github.com/DarkSheepSoftware/eslint/commit/d2628dafb6fe5eb0517b9beade0a59977648c39b))
|
|
38
|
+
|
|
3
39
|
## [4.2.1](https://github.com/DarkSheepSoftware/eslint/compare/v4.2.0...v4.2.1) (2024-03-06)
|
|
4
40
|
|
|
5
41
|
|
package/package.json
CHANGED
|
@@ -1,46 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
7
|
+
},
|
|
4
8
|
"type": "module",
|
|
5
|
-
"packageManager": "yarn@4.1.1",
|
|
6
|
-
"bin": "./src/bin/eslint.cjs",
|
|
7
|
-
"types": "./types/src/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"import": "./src/index.js",
|
|
11
12
|
"types": "./types/src/index.d.ts"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
15
|
+
"types": "./types/src/index.d.ts",
|
|
16
|
+
"bin": "./src/bin/eslint.cjs",
|
|
14
17
|
"files": [
|
|
15
18
|
"src",
|
|
16
19
|
"types"
|
|
17
20
|
],
|
|
18
|
-
"engines": {
|
|
19
|
-
"node": "^20 || ^21"
|
|
20
|
-
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "https://github.com/DarkSheepSoftware/eslint.git"
|
|
24
|
-
},
|
|
25
21
|
"scripts": {
|
|
26
22
|
"githooks": "git config core.hooksPath .githooks"
|
|
27
23
|
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@types/eslint": "~8.56.0",
|
|
30
|
-
"@types/eslint__eslintrc": "~2.1.1",
|
|
31
|
-
"@types/eslint__js": "~8.42.3",
|
|
32
|
-
"@types/estree": "~1.0.2",
|
|
33
|
-
"@types/node": "~20.11.0",
|
|
34
|
-
"type-fest": "~4.11.0",
|
|
35
|
-
"typescript": "~5.3.2"
|
|
36
|
-
},
|
|
37
24
|
"dependencies": {
|
|
38
25
|
"@eslint-community/eslint-plugin-eslint-comments": "~4.1.0",
|
|
39
26
|
"@eslint/eslintrc": "~3.0.0",
|
|
40
27
|
"@eslint/js": "~8.57.0",
|
|
41
28
|
"@stylistic/eslint-plugin": "~1.6.0",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "~7.
|
|
43
|
-
"@typescript-eslint/parser": "~7.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "~7.2.0",
|
|
30
|
+
"@typescript-eslint/parser": "~7.2.0",
|
|
44
31
|
"editorconfig": "~2.0.0",
|
|
45
32
|
"eslint": "~8.57.0",
|
|
46
33
|
"eslint-import-resolver-typescript": "~3.6.1",
|
|
@@ -50,18 +37,32 @@
|
|
|
50
37
|
"eslint-plugin-jsonc": "~2.13.0",
|
|
51
38
|
"eslint-plugin-jsx-a11y": "~6.8.0",
|
|
52
39
|
"eslint-plugin-n": "~17.0.0-0",
|
|
40
|
+
"eslint-plugin-package-json": "~0.10.4",
|
|
53
41
|
"eslint-plugin-promise": "~6.1.1",
|
|
54
42
|
"eslint-plugin-react": "~7.34.0",
|
|
55
|
-
"eslint-plugin-regexp": "~2.
|
|
43
|
+
"eslint-plugin-regexp": "~2.3.0",
|
|
56
44
|
"eslint-plugin-security": "~2.1.0",
|
|
57
45
|
"eslint-plugin-sonarjs": "~0.24.0",
|
|
58
46
|
"eslint-plugin-unicorn": "~51.0.0",
|
|
59
47
|
"eslint-plugin-unused-imports": "~3.1.0",
|
|
60
48
|
"jsonc-eslint-parser": "~2.4.0"
|
|
61
49
|
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/eslint": "~8.56.0",
|
|
52
|
+
"@types/eslint__eslintrc": "~2.1.1",
|
|
53
|
+
"@types/eslint__js": "~8.42.3",
|
|
54
|
+
"@types/estree": "~1.0.2",
|
|
55
|
+
"@types/node": "~20.11.0",
|
|
56
|
+
"type-fest": "~4.12.0",
|
|
57
|
+
"typescript": "~5.4.0"
|
|
58
|
+
},
|
|
62
59
|
"peerDependenciesMeta": {
|
|
63
60
|
"typescript": {
|
|
64
61
|
"optional": true
|
|
65
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"packageManager": "yarn@4.1.1",
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": "^20 || ^21"
|
|
66
67
|
}
|
|
67
68
|
}
|
package/src/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { createEslintCommentsConfig } from './plugins/eslint-comments.js';
|
|
|
10
10
|
import { createEslintImportConfig } from './plugins/import.js';
|
|
11
11
|
import { createEslintJestConfig } from './plugins/jest.js';
|
|
12
12
|
import { createEslintJSDocConfig } from './plugins/jsdoc.js';
|
|
13
|
+
import { createEslintJsonFilesConfig } from './plugins/json-files.js';
|
|
13
14
|
import { createEslintJsonConfig } from './plugins/json.js';
|
|
14
15
|
import { createEslintJsxA11yConfig } from './plugins/jsx-a11y.js';
|
|
15
16
|
import { createEslintNodeConfigs } from './plugins/node.js';
|
|
@@ -33,6 +34,7 @@ const configBuilders = [
|
|
|
33
34
|
createEslintCommentsConfig,
|
|
34
35
|
createEslintImportConfig,
|
|
35
36
|
createEslintNodeConfigs,
|
|
37
|
+
createEslintJsonFilesConfig,
|
|
36
38
|
createEslintJsonConfig,
|
|
37
39
|
createEslintPromiseConfig,
|
|
38
40
|
createEslintTypescriptConfig,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as plugin from 'eslint-plugin-package-json';
|
|
2
|
+
import jsoncParser from 'jsonc-eslint-parser';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Get ESLint config for the regexp plugin
|
|
6
|
+
* @returns {Promise<import('eslint').Linter.FlatConfig[]>}
|
|
7
|
+
*/
|
|
8
|
+
export async function createEslintJsonFilesConfig() {
|
|
9
|
+
// console.info(plugin);
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
plugins: { '@package-json': /** @type {*} */ (plugin) },
|
|
13
|
+
languageOptions: {
|
|
14
|
+
parser: /** @type {*} */ (jsoncParser),
|
|
15
|
+
},
|
|
16
|
+
files: [ 'package.json', '**/package.json' ],
|
|
17
|
+
rules: {
|
|
18
|
+
'@package-json/order-properties': [ 'error', { order: 'sort-package-json' } ],
|
|
19
|
+
'@package-json/sort-collections': 'error',
|
|
20
|
+
|
|
21
|
+
// Seems to break renovate finding changelogs
|
|
22
|
+
'@package-json/prefer-repository-shorthand': 'off',
|
|
23
|
+
// Breaks workspace dependency linking
|
|
24
|
+
// Invalid version range for dependency @darksheep/clone: workspace:~
|
|
25
|
+
'@package-json/valid-package-def': 'off',
|
|
26
|
+
|
|
27
|
+
'@package-json/unique-dependencies': 'error',
|
|
28
|
+
'@package-json/valid-local-dependency': 'error',
|
|
29
|
+
'@package-json/valid-name': 'error',
|
|
30
|
+
'@package-json/valid-repository-directory': 'error',
|
|
31
|
+
'@package-json/valid-version': 'error',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
}
|