@eslinted/core 22.1.4-rc.3 → 22.1.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.
Files changed (43) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +128 -128
  4. package/.mocharc.yml +15 -15
  5. package/LICENSE +20 -20
  6. package/README.md +4 -4
  7. package/eslint.config.js +3 -3
  8. package/package.json +55 -55
  9. package/src/_test/index.ts +266 -266
  10. package/src/factory.ts +306 -306
  11. package/src/index.spec.ts +106 -106
  12. package/src/index.ts +87 -87
  13. package/src/interface/config/index.ts +42 -42
  14. package/src/interface/config/rule.ts +12 -12
  15. package/src/interface/index.ts +3 -3
  16. package/src/interface/input/configuration/attachment.ts +13 -13
  17. package/src/interface/input/configuration/defaults.ts +24 -24
  18. package/src/interface/input/configuration/extensions.ts +25 -25
  19. package/src/interface/input/configuration/index.ts +17 -17
  20. package/src/interface/input/configuration/manifest/index.ts +15 -15
  21. package/src/interface/input/configuration/settings.ts +18 -18
  22. package/src/interface/input/imports/index.ts +16 -16
  23. package/src/interface/input/imports/optional.ts +11 -11
  24. package/src/interface/input/imports/required.ts +13 -13
  25. package/src/interface/input/index.ts +22 -22
  26. package/src/interface/output/configs/attachment.ts +13 -13
  27. package/src/interface/output/configs/global/ignores.d.ts +6 -6
  28. package/src/interface/output/configs/global/index.d.ts +3 -3
  29. package/src/interface/output/configs/global/plugins.d.ts +6 -6
  30. package/src/interface/output/configs/global/settings.d.ts +11 -11
  31. package/src/interface/output/configs/index.d.ts +3 -3
  32. package/src/interface/output/configs/scoped/index.d.ts +2 -2
  33. package/src/interface/output/configs/scoped/rules.d.ts +12 -12
  34. package/src/interface/output/configs/scoped/settings.d.ts +15 -15
  35. package/src/interface/output/index.d.ts +12 -12
  36. package/src/scope/dependencies/index.ts +2 -2
  37. package/src/scope/dependencies/parsers.ts +5 -5
  38. package/src/scope/dependencies/plugins.ts +12 -12
  39. package/src/scope/index.spec.ts +136 -136
  40. package/src/scope/index.ts +18 -18
  41. package/src/scope/tree/index.spec.ts +124 -124
  42. package/src/scope/tree/index.ts +22 -22
  43. package/tsconfig.json +156 -156
@@ -1,36 +1,36 @@
1
- name: NPM Publish (RELEASE)
2
- on:
3
- push:
4
- tags:
5
- - v[0-9]+.[0-9]+.[0-9]+
6
- jobs:
7
- publish-release:
8
- name: Build/Publish (RELEASE)
9
- environment:
10
- name: RELEASE
11
- url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
- permissions:
13
- contents: read
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout
17
- id: checkout
18
- uses: actions/checkout@v4
19
- with:
20
- submodules: true
21
- lfs: false
22
- - name: Install Node
23
- id: node
24
- uses: actions/setup-node@v4
25
- with:
26
- node-version: 22
27
- check-latest: true
28
- registry-url: "https://registry.npmjs.org"
29
- - name: Install Dependencies
30
- id: ci
31
- run: npm ci
32
- - name: Publish to NPM
33
- id: publish
34
- run: npm publish
35
- env:
36
- NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
1
+ name: NPM Publish (RELEASE)
2
+ on:
3
+ push:
4
+ tags:
5
+ - v[0-9]+.[0-9]+.[0-9]+
6
+ jobs:
7
+ publish-release:
8
+ name: Build/Publish (RELEASE)
9
+ environment:
10
+ name: RELEASE
11
+ url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
+ permissions:
13
+ contents: read
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ id: checkout
18
+ uses: actions/checkout@v4
19
+ with:
20
+ submodules: true
21
+ lfs: false
22
+ - name: Install Node
23
+ id: node
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: 22
27
+ check-latest: true
28
+ registry-url: "https://registry.npmjs.org"
29
+ - name: Install Dependencies
30
+ id: ci
31
+ run: npm ci
32
+ - name: Publish to NPM
33
+ id: publish
34
+ run: npm publish
35
+ env:
36
+ NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
@@ -1,36 +1,36 @@
1
- name: NPM Publish (rc)
2
- on:
3
- push:
4
- tags:
5
- - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
6
- jobs:
7
- publish-rc:
8
- name: Build/Publish (rc)
9
- environment:
10
- name: rc
11
- url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
- permissions:
13
- contents: read
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout
17
- id: checkout
18
- uses: actions/checkout@v4
19
- with:
20
- submodules: true
21
- lfs: false
22
- - name: Install Node
23
- id: node
24
- uses: actions/setup-node@v4
25
- with:
26
- node-version: 22
27
- check-latest: true
28
- registry-url: "https://registry.npmjs.org"
29
- - name: Install Dependencies
30
- id: ci
31
- run: npm ci
32
- - name: Publish to NPM
33
- id: publish
34
- run: npm publish
35
- env:
36
- NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
1
+ name: NPM Publish (rc)
2
+ on:
3
+ push:
4
+ tags:
5
+ - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
6
+ jobs:
7
+ publish-rc:
8
+ name: Build/Publish (rc)
9
+ environment:
10
+ name: rc
11
+ url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
+ permissions:
13
+ contents: read
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ id: checkout
18
+ uses: actions/checkout@v4
19
+ with:
20
+ submodules: true
21
+ lfs: false
22
+ - name: Install Node
23
+ id: node
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: 22
27
+ check-latest: true
28
+ registry-url: "https://registry.npmjs.org"
29
+ - name: Install Dependencies
30
+ id: ci
31
+ run: npm ci
32
+ - name: Publish to NPM
33
+ id: publish
34
+ run: npm publish
35
+ env:
36
+ NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
@@ -1,128 +1,128 @@
1
- {
2
- // #region v38.0.0
3
- "$schema": "https://gist.githubusercontent.com/jimmy-zhening-luo/e0d6b5715f0df18bc462f752520bd485/raw",
4
- "$help": {
5
- "link": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md",
6
- },
7
- // #endregion
8
- "heading-increment": true /* MD001 */,
9
- "heading-style": {
10
- "style": "atx",
11
- } /* MD003 */,
12
- "ul-style": false /* MD004 */,
13
- "list-indent": true /* MD005 */,
14
- "ul-indent": {
15
- "indent": 2,
16
- "start_indent": 2,
17
- "start_indented": false,
18
- } /* MD007 */,
19
- "no-trailing-spaces": {
20
- "br_spaces": 0,
21
- "list_item_empty_lines": false,
22
- "strict": true,
23
- } /* MD009 */,
24
- "no-hard-tabs": {
25
- "spaces_per_tab": 2,
26
- "code_blocks": true,
27
- "ignore_code_languages": [],
28
- } /* MD010 */,
29
- "no-reversed-links": false /* MD011 */,
30
- "no-multiple-blanks": {
31
- "maximum": 1,
32
- } /* MD012 */,
33
- "line-length": false /* MD013 */,
34
- "commands-show-output": true /* MD014 */,
35
- "no-missing-space-atx": true /* MD018 */,
36
- "no-multiple-space-atx": true /* MD019 */,
37
- "no-missing-space-closed-atx": true /* MD020 */,
38
- "no-multiple-space-closed-atx": true /* MD021 */,
39
- "blanks-around-headings": {
40
- "lines_above": 1,
41
- "lines_below": 0,
42
- } /* MD022 */,
43
- "heading-start-left": true /* MD023 */,
44
- "no-duplicate-heading": {
45
- "siblings_only": true,
46
- } /* MD024 */,
47
- "single-title": false /* MD025, single-h1 */,
48
- "no-trailing-punctuation": {
49
- "punctuation": "" /* @default: .,;:!。,;:! */,
50
- } /* MD026 */,
51
- "no-multiple-space-blockquote": true /* MD027 */,
52
- "no-blanks-blockquote": true /* MD028 */,
53
- "ol-prefix": {
54
- "style": "one_or_ordered",
55
- } /* MD029 */,
56
- "list-marker-space": {
57
- "ol_multi": 1,
58
- "ol_single": 1,
59
- "ul_multi": 1,
60
- "ul_single": 1,
61
- } /* MD030 */,
62
- "blanks-around-fences": {
63
- "list_items": false,
64
- } /* MD031 */,
65
- "blanks-around-lists": true /* MD032 */,
66
- "no-inline-html": {
67
- "allowed_elements": [
68
- "br",
69
- "details",
70
- "img",
71
- "summary",
72
- ],
73
- } /* MD033 */,
74
- "no-bare-urls": true /* MD034 */,
75
- "hr-style": {
76
- "style": "---",
77
- } /* MD035 */,
78
- "no-emphasis-as-heading": false /* MD036 */,
79
- "no-space-in-emphasis": true /* MD037 */,
80
- "no-space-in-code": false /* MD038 */,
81
- "no-space-in-links": true /* MD039 */,
82
- "fenced-code-language": {
83
- "allowed_languages": [],
84
- "language_only": false,
85
- } /* MD040 */,
86
- "first-line-heading": false /* MD041, first-line-h1 */,
87
- "no-empty-links": true /* MD042 */,
88
- "required-headings": false /* MD043 */,
89
- "proper-names": false /* MD044 */,
90
- "no-alt-text": true /* MD045 */,
91
- "code-block-style": {
92
- "style": "fenced",
93
- } /* MD046 */,
94
- "single-trailing-newline": true /* MD047 */,
95
- "code-fence-style": {
96
- "style": "backtick",
97
- } /* MD048 */,
98
- "emphasis-style": {
99
- "style": "underscore",
100
- } /* MD049 */,
101
- "strong-style": {
102
- "style": "underscore",
103
- } /* MD050 */,
104
- "link-fragments": {
105
- "ignore_case": false /* @default: false */,
106
- } /* MD051 */,
107
- "reference-links-images": {
108
- "shortcut_syntax": false,
109
- } /* MD052 */,
110
- "link-image-reference-definitions": {
111
- "ignored_definitions": [
112
- "//",
113
- ] /* @default: ["//"] */,
114
- } /* MD053 */,
115
- "link-image-style": {
116
- "autolink": true,
117
- "collapsed": true,
118
- "full": true,
119
- "inline": true,
120
- "shortcut": true,
121
- "url_inline": true,
122
- } /* MD054 */,
123
- "table-pipe-style": {
124
- "style": "leading_and_trailing",
125
- } /* MD055 */,
126
- "table-column-count": true /* MD056 */,
127
- "blanks-around-tables": false /* MD058 */,
128
- }
1
+ {
2
+ // #region v38.0.0
3
+ "$schema": "https://gist.githubusercontent.com/jimmy-zhening-luo/e0d6b5715f0df18bc462f752520bd485/raw",
4
+ "$help": {
5
+ "link": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md",
6
+ },
7
+ // #endregion
8
+ "heading-increment": true /* MD001 */,
9
+ "heading-style": {
10
+ "style": "atx",
11
+ } /* MD003 */,
12
+ "ul-style": false /* MD004 */,
13
+ "list-indent": true /* MD005 */,
14
+ "ul-indent": {
15
+ "indent": 2,
16
+ "start_indent": 2,
17
+ "start_indented": false,
18
+ } /* MD007 */,
19
+ "no-trailing-spaces": {
20
+ "br_spaces": 0,
21
+ "list_item_empty_lines": false,
22
+ "strict": true,
23
+ } /* MD009 */,
24
+ "no-hard-tabs": {
25
+ "spaces_per_tab": 2,
26
+ "code_blocks": true,
27
+ "ignore_code_languages": [],
28
+ } /* MD010 */,
29
+ "no-reversed-links": false /* MD011 */,
30
+ "no-multiple-blanks": {
31
+ "maximum": 1,
32
+ } /* MD012 */,
33
+ "line-length": false /* MD013 */,
34
+ "commands-show-output": true /* MD014 */,
35
+ "no-missing-space-atx": true /* MD018 */,
36
+ "no-multiple-space-atx": true /* MD019 */,
37
+ "no-missing-space-closed-atx": true /* MD020 */,
38
+ "no-multiple-space-closed-atx": true /* MD021 */,
39
+ "blanks-around-headings": {
40
+ "lines_above": 1,
41
+ "lines_below": 0,
42
+ } /* MD022 */,
43
+ "heading-start-left": true /* MD023 */,
44
+ "no-duplicate-heading": {
45
+ "siblings_only": true,
46
+ } /* MD024 */,
47
+ "single-title": false /* MD025, single-h1 */,
48
+ "no-trailing-punctuation": {
49
+ "punctuation": "" /* @default: .,;:!。,;:! */,
50
+ } /* MD026 */,
51
+ "no-multiple-space-blockquote": true /* MD027 */,
52
+ "no-blanks-blockquote": true /* MD028 */,
53
+ "ol-prefix": {
54
+ "style": "one_or_ordered",
55
+ } /* MD029 */,
56
+ "list-marker-space": {
57
+ "ol_multi": 1,
58
+ "ol_single": 1,
59
+ "ul_multi": 1,
60
+ "ul_single": 1,
61
+ } /* MD030 */,
62
+ "blanks-around-fences": {
63
+ "list_items": false,
64
+ } /* MD031 */,
65
+ "blanks-around-lists": true /* MD032 */,
66
+ "no-inline-html": {
67
+ "allowed_elements": [
68
+ "br",
69
+ "details",
70
+ "img",
71
+ "summary",
72
+ ],
73
+ } /* MD033 */,
74
+ "no-bare-urls": true /* MD034 */,
75
+ "hr-style": {
76
+ "style": "---",
77
+ } /* MD035 */,
78
+ "no-emphasis-as-heading": false /* MD036 */,
79
+ "no-space-in-emphasis": true /* MD037 */,
80
+ "no-space-in-code": false /* MD038 */,
81
+ "no-space-in-links": true /* MD039 */,
82
+ "fenced-code-language": {
83
+ "allowed_languages": [],
84
+ "language_only": false,
85
+ } /* MD040 */,
86
+ "first-line-heading": false /* MD041, first-line-h1 */,
87
+ "no-empty-links": true /* MD042 */,
88
+ "required-headings": false /* MD043 */,
89
+ "proper-names": false /* MD044 */,
90
+ "no-alt-text": true /* MD045 */,
91
+ "code-block-style": {
92
+ "style": "fenced",
93
+ } /* MD046 */,
94
+ "single-trailing-newline": true /* MD047 */,
95
+ "code-fence-style": {
96
+ "style": "backtick",
97
+ } /* MD048 */,
98
+ "emphasis-style": {
99
+ "style": "underscore",
100
+ } /* MD049 */,
101
+ "strong-style": {
102
+ "style": "underscore",
103
+ } /* MD050 */,
104
+ "link-fragments": {
105
+ "ignore_case": false /* @default: false */,
106
+ } /* MD051 */,
107
+ "reference-links-images": {
108
+ "shortcut_syntax": false,
109
+ } /* MD052 */,
110
+ "link-image-reference-definitions": {
111
+ "ignored_definitions": [
112
+ "//",
113
+ ] /* @default: ["//"] */,
114
+ } /* MD053 */,
115
+ "link-image-style": {
116
+ "autolink": true,
117
+ "collapsed": true,
118
+ "full": true,
119
+ "inline": true,
120
+ "shortcut": true,
121
+ "url_inline": true,
122
+ } /* MD054 */,
123
+ "table-pipe-style": {
124
+ "style": "leading_and_trailing",
125
+ } /* MD055 */,
126
+ "table-column-count": true /* MD056 */,
127
+ "blanks-around-tables": false /* MD058 */,
128
+ }
package/.mocharc.yml CHANGED
@@ -1,15 +1,15 @@
1
- ####################
2
- ### .mocharc ###
3
- ### 1105.1.0 ###
4
- ####################
5
-
6
- # https://mochajs.org/#configuration-format
7
- # https://mochajs.org/#command-line-usage
8
-
9
- spec:
10
- - "dist/**/*.spec.js"
11
- extension:
12
- - js
13
- - cjs
14
- - mjs
15
- # require: dist/_test/hooks.js
1
+ ####################
2
+ ### .mocharc ###
3
+ ### 1105.1.0 ###
4
+ ####################
5
+
6
+ # https://mochajs.org/#configuration-format
7
+ # https://mochajs.org/#command-line-usage
8
+
9
+ spec:
10
+ - "dist/**/*.spec.js"
11
+ extension:
12
+ - js
13
+ - cjs
14
+ - mjs
15
+ # require: dist/_test/hooks.js
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- # MIT License
2
- Copyright (c) 2024 Jimmy Zhening Luo
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
1
+ # MIT License
2
+ Copyright (c) 2024 Jimmy Zhening Luo
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [`@eslinted/core`](https://www.npmjs.com/package/@eslinted/core)
2
- [![NPM Publish (RELEASE)](https://github.com/jimmy-zhening-luo/linted-core/actions/workflows/RELEASE.yml/badge.svg)](https://github.com/jimmy-zhening-luo/linted-core/actions/workflows/RELEASE.yml)
3
-
4
- Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.
1
+ # [`@eslinted/core`](https://www.npmjs.com/package/@eslinted/core)
2
+ [![NPM Publish (RELEASE)](https://github.com/jimmy-zhening-luo/linted-core/actions/workflows/RELEASE.yml/badge.svg)](https://github.com/jimmy-zhening-luo/linted-core/actions/workflows/RELEASE.yml)
3
+
4
+ Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.
package/eslint.config.js CHANGED
@@ -1,3 +1,3 @@
1
- import linted from "linted";
2
-
3
- export default linted();
1
+ import linted from "linted";
2
+
3
+ export default linted();
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "$pkg": "2211.1.2-alpha.1",
3
- "$schema": "https://json.schemastore.org/package",
4
- "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
- "name": "@eslinted/core",
6
- "version": "22.1.4-rc.3",
7
- "repository": "github:jimmy-zhening-luo/linted-core",
8
- "private": false,
9
- "engineStrict": true,
10
- "engines": {
11
- "node": "^22",
12
- "npm": "^10 || ^11"
13
- },
14
- "type": "module",
15
- "peerDependenciesMeta": {},
16
- "dependencies": {
17
- "globals": "^16.3.0"
18
- },
19
- "devDependencies": {
20
- "@types/chai": "^5.2.2",
21
- "@types/mocha": "^10.0.10",
22
- "chai": "^5.2.1",
23
- "mocha": "^11.7.1",
24
- "ts-add-js-extension": "^1.6.6",
25
- "typescript": "^5.8.3"
26
- },
27
- "main": "dist/index.js",
28
- "types": "dist/index.d.ts",
29
- "scripts": {
30
- "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
31
- "prebuild": "npm run clean",
32
- "build": "tsc && ts-add-js-extension --dir=dist",
33
- "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
34
- "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
35
- "lint": "eslint --cache --fix \"{,{src,tests,static,typings,public,tools,.github,.vscode}/**/}*.{{,[cm]}[jt]s,svelte,html,css,json{,c},code-snippets,y{,a}ml}\"",
36
- "pretest": "npm run build",
37
- "test": "mocha",
38
- "test:svelte": "",
39
- "prestart": "npm test",
40
- "start": "node .",
41
- "start:svelte": "vite preview --open",
42
- "prepublishOnly": "npm test",
43
- "postpublish": "cmd --% /c for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest || npm run postpublish:default",
44
- "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
45
- "predeploy": "npm test",
46
- "deploy": ""
47
- },
48
- "publishConfig": {
49
- "tag": "next"
50
- },
51
- "license": "MIT",
52
- "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
53
- "keywords": [],
54
- "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
55
- }
1
+ {
2
+ "$pkg": "2211.1.2-rc.0",
3
+ "$schema": "https://json.schemastore.org/package",
4
+ "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
+ "name": "@eslinted/core",
6
+ "version": "22.1.4",
7
+ "repository": "github:jimmy-zhening-luo/linted-core",
8
+ "private": false,
9
+ "engineStrict": true,
10
+ "engines": {
11
+ "node": "^22",
12
+ "npm": "^10 || ^11"
13
+ },
14
+ "type": "module",
15
+ "peerDependenciesMeta": {},
16
+ "dependencies": {
17
+ "globals": "^16.3.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/chai": "^5.2.2",
21
+ "@types/mocha": "^10.0.10",
22
+ "chai": "^5.2.1",
23
+ "mocha": "^11.7.1",
24
+ "ts-add-js-extension": "^1.6.6",
25
+ "typescript": "^5.8.3"
26
+ },
27
+ "main": "dist/index.js",
28
+ "types": "dist/index.d.ts",
29
+ "scripts": {
30
+ "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
31
+ "prebuild": "npm run clean",
32
+ "build": "tsc && ts-add-js-extension --dir=dist",
33
+ "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
34
+ "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
35
+ "lint": "eslint --cache --fix \"{,{src,tests,static,typings,public,tools,.github,.vscode}/**/}*.{{,[cm]}[jt]s,svelte,html,css,json{,c},code-snippets,y{,a}ml}\"",
36
+ "pretest": "npm run build",
37
+ "test": "mocha",
38
+ "test:svelte": "",
39
+ "prestart": "npm test",
40
+ "start": "node .",
41
+ "start:svelte": "vite preview --open",
42
+ "prepublishOnly": "npm test",
43
+ "postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish:default",
44
+ "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
45
+ "predeploy": "npm test",
46
+ "deploy": ""
47
+ },
48
+ "publishConfig": {
49
+ "tag": "next"
50
+ },
51
+ "license": "MIT",
52
+ "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
53
+ "keywords": [],
54
+ "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
55
+ }