@eslinted/defaults 12.16.1-rc.1 → 12.16.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.
Files changed (88) hide show
  1. package/.github/workflows/RELEASE.yml +30 -30
  2. package/.github/workflows/rc.yml +30 -30
  3. package/.markdownlint.jsonc +97 -97
  4. package/.mocharc.yml +11 -11
  5. package/LICENSE +20 -20
  6. package/README.md +4 -4
  7. package/eslint.config.js +3 -3
  8. package/package.json +53 -54
  9. package/src/files/_factory/index.ts +76 -76
  10. package/src/files/_factory/project/index.ts +2 -2
  11. package/src/files/_factory/project/roots.ts +4 -4
  12. package/src/files/_factory/project/subroots.ts +8 -8
  13. package/src/files/css.ts +5 -5
  14. package/src/files/html.ts +5 -5
  15. package/src/files/index.ts +23 -23
  16. package/src/files/js.ts +5 -5
  17. package/src/files/json.ts +5 -5
  18. package/src/files/jsonc.ts +5 -5
  19. package/src/files/jsoncc.ts +9 -9
  20. package/src/files/mocha.ts +5 -5
  21. package/src/files/svelte.ts +5 -5
  22. package/src/files/ts.ts +5 -5
  23. package/src/files/yml.ts +8 -8
  24. package/src/ignores/base.ts +5 -5
  25. package/src/ignores/ignores/css.ts +1 -1
  26. package/src/ignores/ignores/html.ts +1 -1
  27. package/src/ignores/ignores/js.ts +1 -1
  28. package/src/ignores/ignores/json.ts +1 -1
  29. package/src/ignores/ignores/jsonc.ts +1 -1
  30. package/src/ignores/ignores/jsoncc.ts +1 -1
  31. package/src/ignores/ignores/mocha.ts +1 -1
  32. package/src/ignores/ignores/svelte.ts +1 -1
  33. package/src/ignores/ignores/ts.ts +1 -1
  34. package/src/ignores/ignores/yml.ts +1 -1
  35. package/src/ignores/index.ts +25 -25
  36. package/src/index.ts +10 -10
  37. package/src/rules/_strings/id.ts +21 -21
  38. package/src/rules/_strings/index.ts +3 -3
  39. package/src/rules/_strings/option.ts +30 -30
  40. package/src/rules/_strings/state.spec.ts +64 -64
  41. package/src/rules/_strings/state.ts +4 -4
  42. package/src/rules/css/enable.ts +31 -31
  43. package/src/rules/css/index.ts +3 -3
  44. package/src/rules/enable.ts +390 -390
  45. package/src/rules/html/index.ts +3 -3
  46. package/src/rules/html/plugin/index.ts +114 -114
  47. package/src/rules/index.ts +27 -27
  48. package/src/rules/json/enable.ts +18 -18
  49. package/src/rules/json/index.ts +9 -9
  50. package/src/rules/json/plugin/extension.ts +60 -60
  51. package/src/rules/json/plugin/index.ts +35 -35
  52. package/src/rules/jsonc/index.ts +3 -3
  53. package/src/rules/jsonc/plugin/index.ts +12 -12
  54. package/src/rules/jsoncc/index.ts +3 -3
  55. package/src/rules/jsoncc/plugin/index.ts +16 -16
  56. package/src/rules/mocha/chai/expect.ts +16 -16
  57. package/src/rules/mocha/chai/index.ts +18 -18
  58. package/src/rules/mocha/disable.ts +13 -13
  59. package/src/rules/mocha/enable.ts +36 -36
  60. package/src/rules/mocha/index.ts +11 -11
  61. package/src/rules/stylistic.ts +507 -507
  62. package/src/rules/svelte/disable.ts +19 -19
  63. package/src/rules/svelte/enable.ts +157 -157
  64. package/src/rules/svelte/extension/disable.ts +14 -14
  65. package/src/rules/svelte/extension/index.ts +17 -17
  66. package/src/rules/svelte/index.ts +11 -11
  67. package/src/rules/ts/disable.ts +30 -30
  68. package/src/rules/ts/enable.ts +188 -188
  69. package/src/rules/ts/extension/disable.ts +35 -35
  70. package/src/rules/ts/extension/index.ts +62 -62
  71. package/src/rules/ts/index.ts +11 -11
  72. package/src/rules/yml/enable.ts +32 -32
  73. package/src/rules/yml/extension.ts +53 -53
  74. package/src/rules/yml/index.ts +7 -7
  75. package/src/settings/base.ts +6 -6
  76. package/src/settings/index.ts +7 -7
  77. package/src/settings/registry.ts +23 -23
  78. package/src/settings/settings/css.ts +9 -9
  79. package/src/settings/settings/html.ts +10 -10
  80. package/src/settings/settings/js.ts +8 -8
  81. package/src/settings/settings/json.ts +7 -7
  82. package/src/settings/settings/jsonc.ts +9 -9
  83. package/src/settings/settings/jsoncc.ts +9 -9
  84. package/src/settings/settings/mocha.ts +8 -8
  85. package/src/settings/settings/svelte.ts +10 -10
  86. package/src/settings/settings/ts.ts +30 -30
  87. package/src/settings/settings/yml.ts +9 -9
  88. package/tsconfig.json +75 -75
@@ -1,30 +1,30 @@
1
- --- # RELEASE.yml
2
- name: NPM Publish (RELEASE)
3
- on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+'] } }
4
- jobs:
5
- publish-release:
6
- name: Build/Publish (RELEASE)
7
- environment:
8
- name: RELEASE
9
- url: https://www.npmjs.com/package/@eslinted/defaults?activeTab=versions
10
- permissions: { contents: read }
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout
14
- id: checkout
15
- uses: actions/checkout@v4
16
- - name: Install Node
17
- id: node
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: 22
21
- registry-url: https://registry.npmjs.org
22
- - name: Install Dependencies
23
- id: ci
24
- run: npm ci
25
- - name: Publish to NPM
26
- id: publish
27
- run: npm publish
28
- env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
-
30
- ...
1
+ --- # RELEASE.yml
2
+ name: NPM Publish (RELEASE)
3
+ on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+'] } }
4
+ jobs:
5
+ publish-release:
6
+ name: Build/Publish (RELEASE)
7
+ environment:
8
+ name: RELEASE
9
+ url: https://www.npmjs.com/package/@eslinted/defaults?activeTab=versions
10
+ permissions: { contents: read }
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ id: checkout
15
+ uses: actions/checkout@v4
16
+ - name: Install Node
17
+ id: node
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 22
21
+ registry-url: https://registry.npmjs.org
22
+ - name: Install Dependencies
23
+ id: ci
24
+ run: npm ci
25
+ - name: Publish to NPM
26
+ id: publish
27
+ run: npm publish
28
+ env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
+
30
+ ...
@@ -1,30 +1,30 @@
1
- --- # rc.yml
2
- name: NPM Publish (rc)
3
- on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'] } }
4
- jobs:
5
- publish-rc:
6
- name: Build/Publish (rc)
7
- environment:
8
- name: rc
9
- url: https://www.npmjs.com/package/@eslinted/defaults?activeTab=versions
10
- permissions: { contents: read }
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout
14
- id: checkout
15
- uses: actions/checkout@v4
16
- - name: Install Node
17
- id: node
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: 22
21
- registry-url: https://registry.npmjs.org
22
- - name: Install Dependencies
23
- id: ci
24
- run: npm ci
25
- - name: Publish to NPM
26
- id: publish
27
- run: npm publish
28
- env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
-
30
- ...
1
+ --- # rc.yml
2
+ name: NPM Publish (rc)
3
+ on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'] } }
4
+ jobs:
5
+ publish-rc:
6
+ name: Build/Publish (rc)
7
+ environment:
8
+ name: rc
9
+ url: https://www.npmjs.com/package/@eslinted/defaults?activeTab=versions
10
+ permissions: { contents: read }
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ id: checkout
15
+ uses: actions/checkout@v4
16
+ - name: Install Node
17
+ id: node
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 22
21
+ registry-url: https://registry.npmjs.org
22
+ - name: Install Dependencies
23
+ id: ci
24
+ run: npm ci
25
+ - name: Publish to NPM
26
+ id: publish
27
+ run: npm publish
28
+ env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
+
30
+ ...
@@ -1,97 +1,97 @@
1
- {
2
- // #region v38.1.1
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": 4,
16
- } /* MD007 */,
17
- "no-trailing-spaces": {
18
- "br_spaces": 0,
19
- "strict": true,
20
- } /* MD009 */,
21
- "no-hard-tabs": {
22
- "spaces_per_tab": 4,
23
- "ignore_code_languages": [],
24
- } /* MD010 */,
25
- "no-reversed-links": true /* MD011 */,
26
- "no-multiple-blanks": true /* MD012 */,
27
- "line-length": false /* MD013 */,
28
- "commands-show-output": true /* MD014 */,
29
- "no-missing-space-atx": true /* MD018 */,
30
- "no-multiple-space-atx": true /* MD019 */,
31
- "no-missing-space-closed-atx": true /* MD020 */,
32
- "no-multiple-space-closed-atx": true /* MD021 */,
33
- "blanks-around-headings": {
34
- "lines_below": 0,
35
- } /* MD022 */,
36
- "heading-start-left": true /* MD023 */,
37
- "no-duplicate-heading": {
38
- "siblings_only": true,
39
- } /* MD024 */,
40
- "single-title": false /* MD025, single-h1 */,
41
- "no-trailing-punctuation": false /* MD026 */,
42
- "no-multiple-space-blockquote": true /* MD027 */,
43
- "no-blanks-blockquote": true /* MD028 */,
44
- "ol-prefix": {
45
- "style": "one_or_ordered",
46
- } /* MD029 */,
47
- "list-marker-space": true /* MD030 */,
48
- "blanks-around-fences": {
49
- "list_items": false,
50
- } /* MD031 */,
51
- "blanks-around-lists": true /* MD032 */,
52
- "no-inline-html": {
53
- "allowed_elements": [
54
- "br",
55
- "details",
56
- "img",
57
- "summary",
58
- ],
59
- } /* MD033 */,
60
- "no-bare-urls": false /* MD034 */,
61
- "hr-style": {
62
- "style": "---",
63
- } /* MD035 */,
64
- "no-emphasis-as-heading": false /* MD036 */,
65
- "no-space-in-emphasis": true /* MD037 */,
66
- "no-space-in-code": false /* MD038 */,
67
- "no-space-in-links": true /* MD039 */,
68
- "fenced-code-language": false /* MD040 */,
69
- "first-line-heading": false /* MD041, first-line-h1 */,
70
- "no-empty-links": true /* MD042 */,
71
- "required-headings": false /* MD043 */,
72
- "proper-names": false /* MD044 */,
73
- "no-alt-text": true /* MD045 */,
74
- "code-block-style": {
75
- "style": "fenced",
76
- } /* MD046 */,
77
- "single-trailing-newline": true /* MD047 */,
78
- "code-fence-style": {
79
- "style": "backtick",
80
- } /* MD048 */,
81
- "emphasis-style": {
82
- "style": "underscore",
83
- } /* MD049 */,
84
- "strong-style": {
85
- "style": "underscore",
86
- } /* MD050 */,
87
- "link-fragments": true /* MD051 */,
88
- "reference-links-images": true /* MD052 */,
89
- "link-image-reference-definitions": true /* MD053 */,
90
- "link-image-style": true /* MD054 */,
91
- "table-pipe-style": {
92
- "style": "leading_and_trailing",
93
- } /* MD055 */,
94
- "table-column-count": true /* MD056 */,
95
- "blanks-around-tables": true /* MD058 */,
96
- "descriptive-link-text": false /* MD059 */,
97
- }
1
+ {
2
+ // #region v38.1.1
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": 4,
16
+ } /* MD007 */,
17
+ "no-trailing-spaces": {
18
+ "br_spaces": 0,
19
+ "strict": true,
20
+ } /* MD009 */,
21
+ "no-hard-tabs": {
22
+ "spaces_per_tab": 4,
23
+ "ignore_code_languages": [],
24
+ } /* MD010 */,
25
+ "no-reversed-links": true /* MD011 */,
26
+ "no-multiple-blanks": true /* MD012 */,
27
+ "line-length": false /* MD013 */,
28
+ "commands-show-output": true /* MD014 */,
29
+ "no-missing-space-atx": true /* MD018 */,
30
+ "no-multiple-space-atx": true /* MD019 */,
31
+ "no-missing-space-closed-atx": true /* MD020 */,
32
+ "no-multiple-space-closed-atx": true /* MD021 */,
33
+ "blanks-around-headings": {
34
+ "lines_below": 0,
35
+ } /* MD022 */,
36
+ "heading-start-left": true /* MD023 */,
37
+ "no-duplicate-heading": {
38
+ "siblings_only": true,
39
+ } /* MD024 */,
40
+ "single-title": false /* MD025, single-h1 */,
41
+ "no-trailing-punctuation": false /* MD026 */,
42
+ "no-multiple-space-blockquote": true /* MD027 */,
43
+ "no-blanks-blockquote": true /* MD028 */,
44
+ "ol-prefix": {
45
+ "style": "one_or_ordered",
46
+ } /* MD029 */,
47
+ "list-marker-space": true /* MD030 */,
48
+ "blanks-around-fences": {
49
+ "list_items": false,
50
+ } /* MD031 */,
51
+ "blanks-around-lists": true /* MD032 */,
52
+ "no-inline-html": {
53
+ "allowed_elements": [
54
+ "br",
55
+ "details",
56
+ "img",
57
+ "summary",
58
+ ],
59
+ } /* MD033 */,
60
+ "no-bare-urls": false /* MD034 */,
61
+ "hr-style": {
62
+ "style": "---",
63
+ } /* MD035 */,
64
+ "no-emphasis-as-heading": false /* MD036 */,
65
+ "no-space-in-emphasis": true /* MD037 */,
66
+ "no-space-in-code": false /* MD038 */,
67
+ "no-space-in-links": true /* MD039 */,
68
+ "fenced-code-language": false /* MD040 */,
69
+ "first-line-heading": false /* MD041, first-line-h1 */,
70
+ "no-empty-links": true /* MD042 */,
71
+ "required-headings": false /* MD043 */,
72
+ "proper-names": false /* MD044 */,
73
+ "no-alt-text": true /* MD045 */,
74
+ "code-block-style": {
75
+ "style": "fenced",
76
+ } /* MD046 */,
77
+ "single-trailing-newline": true /* MD047 */,
78
+ "code-fence-style": {
79
+ "style": "backtick",
80
+ } /* MD048 */,
81
+ "emphasis-style": {
82
+ "style": "underscore",
83
+ } /* MD049 */,
84
+ "strong-style": {
85
+ "style": "underscore",
86
+ } /* MD050 */,
87
+ "link-fragments": true /* MD051 */,
88
+ "reference-links-images": true /* MD052 */,
89
+ "link-image-reference-definitions": true /* MD053 */,
90
+ "link-image-style": true /* MD054 */,
91
+ "table-pipe-style": {
92
+ "style": "leading_and_trailing",
93
+ } /* MD055 */,
94
+ "table-column-count": true /* MD056 */,
95
+ "blanks-around-tables": true /* MD058 */,
96
+ "descriptive-link-text": false /* MD059 */,
97
+ }
package/.mocharc.yml CHANGED
@@ -1,11 +1,11 @@
1
- ####################
2
- ### .mocharc ###
3
- ### 1107.0.0 ###
4
- ####################
5
-
6
- # https://mochajs.org/#configuration-format
7
- # https://mochajs.org/#command-line-usage
8
-
9
- spec: [dist/**/*.spec.js]
10
- extension: [js]
11
- # require: dist/_test/hooks.js
1
+ ####################
2
+ ### .mocharc ###
3
+ ### 1107.0.0 ###
4
+ ####################
5
+
6
+ # https://mochajs.org/#configuration-format
7
+ # https://mochajs.org/#command-line-usage
8
+
9
+ spec: [dist/**/*.spec.js]
10
+ extension: [js]
11
+ # 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/defaults`](https://www.npmjs.com/package/@eslinted/defaults)
2
- [![NPM Publish (RELEASE)](https://github.com/jimmy-zhening-luo/linted-defaults/actions/workflows/RELEASE.yml/badge.svg)](https://github.com/jimmy-zhening-luo/linted-defaults/actions/workflows/RELEASE.yml)
3
-
4
- Default scopes for `linted`
1
+ # [`@eslinted/defaults`](https://www.npmjs.com/package/@eslinted/defaults)
2
+ [![NPM Publish (RELEASE)](https://github.com/jimmy-zhening-luo/linted-defaults/actions/workflows/RELEASE.yml/badge.svg)](https://github.com/jimmy-zhening-luo/linted-defaults/actions/workflows/RELEASE.yml)
3
+
4
+ Default scopes for `linted`
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,54 +1,53 @@
1
- {
2
- "$pkg": "2211.3.0",
3
- "$schema": "https://json.schemastore.org/package",
4
- "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
- "name": "@eslinted/defaults",
6
- "version": "12.16.1-rc.1",
7
- "repository": "github:jimmy-zhening-luo/linted-defaults",
8
- "private": false,
9
- "engineStrict": true,
10
- "engines": {
11
- "node": "^22",
12
- "npm": "^10 || ^11"
13
- },
14
- "type": "module",
15
- "peerDependenciesMeta": {},
16
- "devDependencies": {
17
- "@types/chai": "^5.2.2",
18
- "@types/mocha": "^10.0.10",
19
- "chai": "^6.0.1",
20
- "mocha": "^11.7.2",
21
- "ts-add-js-extension": "^1.6.6",
22
- "typescript": "^5.9.2"
23
- },
24
- "main": "dist/index.js",
25
- "types": "dist/index.d.ts",
26
- "scripts": {
27
- "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",
28
- "prebuild": "npm run clean",
29
- "build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
30
- "build:ts": "tsc && ts-add-js-extension --dir=dist",
31
- "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
32
- "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
33
- "lint": "eslint --cache --fix",
34
- "pretest": "npm run build",
35
- "test": "npm run --if-present test:mocha",
36
- "test:mocha": "mocha",
37
- "prestart": "npm test",
38
- "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
39
- "start:ts": "node .",
40
- "start:svelte": "vite preview --open",
41
- "prepublishOnly": "npm test",
42
- "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-unix",
43
- "postpublish-unix": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
44
- "predeploy": "npm test",
45
- "deploy": ""
46
- },
47
- "publishConfig": {
48
- "tag": "next"
49
- },
50
- "license": "MIT",
51
- "description": "Default scopes for `linted`",
52
- "keywords": [],
53
- "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
54
- }
1
+ {
2
+ "$pkg": "2211.4.0",
3
+ "$schema": "https://json.schemastore.org/package",
4
+ "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
+ "name": "@eslinted/defaults",
6
+ "version": "12.16.1",
7
+ "repository": "github:jimmy-zhening-luo/linted-defaults",
8
+ "description": "Default scopes for `linted`",
9
+ "keywords": [],
10
+ "license": "MIT",
11
+ "private": false,
12
+ "engineStrict": true,
13
+ "engines": {
14
+ "node": "^22",
15
+ "npm": "^10 || ^11"
16
+ },
17
+ "type": "module",
18
+ "peerDependenciesMeta": {},
19
+ "devDependencies": {
20
+ "@types/chai": "^5.2.2",
21
+ "@types/mocha": "^10.0.10",
22
+ "chai": "^6.0.1",
23
+ "mocha": "^11.7.2",
24
+ "ts-add-js-extension": "^1.6.6",
25
+ "typescript": "^5.9.2"
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": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
33
+ "build:ts": "tsc && ts-add-js-extension --dir=dist",
34
+ "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
35
+ "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
36
+ "lint": "eslint --cache --fix",
37
+ "pretest": "npm run build",
38
+ "test": "npm run --if-present test:mocha",
39
+ "test:mocha": "mocha",
40
+ "prestart": "npm test",
41
+ "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
42
+ "start:ts": "node .",
43
+ "start:svelte": "vite preview --open",
44
+ "prepublishOnly": "npm test",
45
+ "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\" || bash -c 'if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi'",
46
+ "predeploy": "npm test",
47
+ "deploy": ""
48
+ },
49
+ "publishConfig": {
50
+ "tag": "next"
51
+ },
52
+ "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
53
+ }