linted 19.4.3-rc.7 → 19.4.3-rc.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +122 -122
  4. package/LICENSE +21 -21
  5. package/README.md +387 -387
  6. package/SECURITY.md +9 -9
  7. package/dist/imports/index.d.ts.map +1 -1
  8. package/dist/imports/plugins.d.ts.map +1 -1
  9. package/eslint.config.js +3 -3
  10. package/package.json +144 -144
  11. package/src/_strings/id.ts +8 -8
  12. package/src/_strings/index.ts +6 -6
  13. package/src/_strings/level.spec.ts +31 -31
  14. package/src/_strings/level.ts +4 -4
  15. package/src/_strings/state.ts +28 -28
  16. package/src/files/html.ts +1 -1
  17. package/src/files/index.ts +19 -19
  18. package/src/files/js.ts +4 -4
  19. package/src/files/json.ts +1 -1
  20. package/src/files/jsonc.ts +4 -4
  21. package/src/files/mocha.ts +4 -4
  22. package/src/files/mochaJs.ts +4 -4
  23. package/src/files/svelte.ts +1 -1
  24. package/src/files/ts.ts +1 -1
  25. package/src/files/yml.ts +1 -1
  26. package/src/imports/index.ts +7 -7
  27. package/src/imports/parsers.ts +13 -13
  28. package/src/imports/plugins.ts +17 -17
  29. package/src/index.spec.ts +11 -11
  30. package/src/index.ts +22 -22
  31. package/src/rules/html/enable.ts +120 -120
  32. package/src/rules/html/index.ts +3 -3
  33. package/src/rules/index.ts +19 -19
  34. package/src/rules/js/enable.ts +524 -524
  35. package/src/rules/js/index.ts +4 -4
  36. package/src/rules/js/stylistic.ts +611 -611
  37. package/src/rules/json/enable.ts +33 -33
  38. package/src/rules/json/enable_x.ts +95 -95
  39. package/src/rules/json/index.ts +4 -4
  40. package/src/rules/jsonc/index.ts +4 -4
  41. package/src/rules/jsonc/override.ts +16 -16
  42. package/src/rules/mocha/base.ts +7 -7
  43. package/src/rules/mocha/disable.ts +8 -8
  44. package/src/rules/mocha/enable.ts +53 -53
  45. package/src/rules/mocha/index.ts +7 -7
  46. package/src/rules/mochaJs/index.ts +7 -7
  47. package/src/rules/svelte/disable.ts +9 -9
  48. package/src/rules/svelte/disable_js.ts +11 -11
  49. package/src/rules/svelte/disable_ts.ts +9 -9
  50. package/src/rules/svelte/enable.ts +230 -230
  51. package/src/rules/svelte/enable_x.ts +20 -20
  52. package/src/rules/svelte/index.ts +15 -15
  53. package/src/rules/ts/disable.ts +22 -22
  54. package/src/rules/ts/disable_x.ts +32 -32
  55. package/src/rules/ts/enable.ts +550 -550
  56. package/src/rules/ts/enable_x.ts +115 -115
  57. package/src/rules/ts/index.ts +13 -13
  58. package/src/rules/yml/enable.ts +64 -64
  59. package/src/rules/yml/enable_x.ts +68 -68
  60. package/src/rules/yml/index.ts +4 -4
  61. package/tsconfig.json +163 -163
  62. package/typings/mocha.d.ts +3 -3
@@ -1,36 +1,36 @@
1
- name: NPM Publish (RELEASE)
2
-
3
- on:
4
- push:
5
- tags:
6
- - v[0-9]+.[0-9]+.[0-9]+
7
-
8
- jobs:
9
- publish-release:
10
- if: github.event_name == 'push'
11
- runs-on: ubuntu-latest
12
- environment:
13
- name: RELEASE
14
- url: https://www.npmjs.com/package/linted
15
- name: Build/Publish (RELEASE)
16
- steps:
17
- - name: Checkout
18
- id: checkout
19
- uses: actions/checkout@v4
20
- with:
21
- submodules: true
22
- lfs: false
23
- - name: Install Node v22
24
- id: node
25
- uses: actions/setup-node@v4
26
- with:
27
- node-version: 22
28
- check-latest: true
29
- registry-url: "https://registry.npmjs.org"
30
- - name: Install Dependencies
31
- id: ci
32
- run: npm ci
33
- - name: Publish to NPM
34
- id: publish
35
- run: npm publish
36
- env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
1
+ name: NPM Publish (RELEASE)
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v[0-9]+.[0-9]+.[0-9]+
7
+
8
+ jobs:
9
+ publish-release:
10
+ if: github.event_name == 'push'
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: RELEASE
14
+ url: https://www.npmjs.com/package/linted
15
+ name: Build/Publish (RELEASE)
16
+ steps:
17
+ - name: Checkout
18
+ id: checkout
19
+ uses: actions/checkout@v4
20
+ with:
21
+ submodules: true
22
+ lfs: false
23
+ - name: Install Node v22
24
+ id: node
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: 22
28
+ check-latest: true
29
+ registry-url: "https://registry.npmjs.org"
30
+ - name: Install Dependencies
31
+ id: ci
32
+ run: npm ci
33
+ - name: Publish to NPM
34
+ id: publish
35
+ run: npm publish
36
+ env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
@@ -1,36 +1,36 @@
1
- name: NPM Publish (rc)
2
-
3
- on:
4
- push:
5
- tags:
6
- - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
7
-
8
- jobs:
9
- publish-rc:
10
- if: github.event_name == 'push'
11
- runs-on: ubuntu-latest
12
- environment:
13
- name: rc
14
- url: https://www.npmjs.com/package/linted
15
- name: Build/Publish (rc)
16
- steps:
17
- - name: Checkout
18
- id: checkout
19
- uses: actions/checkout@v4
20
- with:
21
- submodules: true
22
- lfs: false
23
- - name: Install Node v22
24
- id: node
25
- uses: actions/setup-node@v4
26
- with:
27
- node-version: 22
28
- check-latest: true
29
- registry-url: "https://registry.npmjs.org"
30
- - name: Install Dependencies
31
- id: ci
32
- run: npm ci
33
- - name: Publish to NPM
34
- id: publish
35
- run: npm publish
36
- env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
1
+ name: NPM Publish (rc)
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
7
+
8
+ jobs:
9
+ publish-rc:
10
+ if: github.event_name == 'push'
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: rc
14
+ url: https://www.npmjs.com/package/linted
15
+ name: Build/Publish (rc)
16
+ steps:
17
+ - name: Checkout
18
+ id: checkout
19
+ uses: actions/checkout@v4
20
+ with:
21
+ submodules: true
22
+ lfs: false
23
+ - name: Install Node v22
24
+ id: node
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: 22
28
+ check-latest: true
29
+ registry-url: "https://registry.npmjs.org"
30
+ - name: Install Dependencies
31
+ id: ci
32
+ run: npm ci
33
+ - name: Publish to NPM
34
+ id: publish
35
+ run: npm publish
36
+ env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
@@ -1,122 +1,122 @@
1
- {
2
- // v0.36.1
3
- // https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md
4
- // "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.36.1/schema/markdownlint-config-schema.json",
5
- "heading-increment": true /* MD001 */,
6
- "heading-style": {
7
- "style": "atx",
8
- } /* MD003 */,
9
- "ul-style": false /* MD004 */,
10
- "list-indent": true /* MD005 */,
11
- "ul-indent": {
12
- "indent": 2,
13
- "start_indent": 2,
14
- "start_indented": false,
15
- } /* MD007 */,
16
- "no-trailing-spaces": {
17
- "br_spaces": 0,
18
- "list_item_empty_lines": false,
19
- "strict": true,
20
- } /* MD009 */,
21
- "no-hard-tabs": {
22
- "spaces_per_tab": 2,
23
- "code_blocks": true,
24
- "ignore_code_languages": [],
25
- } /* MD010 */,
26
- "no-reversed-links": false /* MD011 */,
27
- "no-multiple-blanks": {
28
- "maximum": 1,
29
- } /* MD012 */,
30
- "line-length": false /* MD013 */,
31
- "commands-show-output": true /* MD014 */,
32
- "no-missing-space-atx": true /* MD018 */,
33
- "no-multiple-space-atx": true /* MD019 */,
34
- "no-missing-space-closed-atx": true /* MD020 */,
35
- "no-multiple-space-closed-atx": true /* MD021 */,
36
- "blanks-around-headings": {
37
- "lines_above": 1,
38
- "lines_below": 0,
39
- } /* MD022 */,
40
- "heading-start-left": true /* MD023 */,
41
- "no-duplicate-heading": {
42
- "siblings_only": true,
43
- } /* MD024 */,
44
- "single-title": false /* MD025, single-h1 */,
45
- "no-trailing-punctuation": {
46
- "punctuation": "" /* @DEFAULT: .,;:!。,;:! */,
47
- } /* MD026 */,
48
- "no-multiple-space-blockquote": true /* MD027 */,
49
- "no-blanks-blockquote": true /* MD028 */,
50
- "ol-prefix": {
51
- "style": "one_or_ordered",
52
- } /* MD029 */,
53
- "list-marker-space": {
54
- "ol_multi": 1,
55
- "ol_single": 1,
56
- "ul_multi": 1,
57
- "ul_single": 1,
58
- } /* MD030 */,
59
- "blanks-around-fences": {
60
- "list_items": false,
61
- } /* MD031 */,
62
- "blanks-around-lists": true /* MD032 */,
63
- "no-inline-html": {
64
- "allowed_elements": [
65
- "br",
66
- "details",
67
- "summary",
68
- ],
69
- } /* MD033 */,
70
- "no-bare-urls": true /* MD034 */,
71
- "hr-style": {
72
- "style": "---",
73
- } /* MD035 */,
74
- "no-emphasis-as-heading": false /* MD036 */,
75
- "no-space-in-emphasis": true /* MD037 */,
76
- "no-space-in-code": true /* MD038 */,
77
- "no-space-in-links": true /* MD039 */,
78
- "fenced-code-language": {
79
- "allowed_languages": [],
80
- "language_only": false,
81
- } /* MD040 */,
82
- "first-line-heading": false /* MD041, first-line-h1 */,
83
- "no-empty-links": true /* MD042 */,
84
- "required-headings": false /* MD043 */,
85
- "proper-names": false /* MD044 */,
86
- "no-alt-text": true /* MD045 */,
87
- "code-block-style": {
88
- "style": "fenced",
89
- } /* MD046 */,
90
- "single-trailing-newline": true /* MD047 */,
91
- "code-fence-style": {
92
- "style": "backtick",
93
- } /* MD048 */,
94
- "emphasis-style": {
95
- "style": "underscore",
96
- } /* MD049 */,
97
- "strong-style": {
98
- "style": "underscore",
99
- } /* MD050 */,
100
- "link-fragments": true /* MD051 */,
101
- "reference-links-images": {
102
- "shortcut_syntax": false,
103
- } /* MD052 */,
104
- "link-image-reference-definitions": {
105
- "ignored_definitions": [
106
- "//",
107
- ] /* @DEFAULT: ["//"] */,
108
- } /* MD053 */,
109
- "link-image-style": {
110
- "autolink": true,
111
- "collapsed": true,
112
- "full": true,
113
- "inline": true,
114
- "shortcut": true,
115
- "url_inline": true,
116
- } /* MD054 */,
117
- "table-pipe-style": {
118
- "style": "leading_and_trailing",
119
- } /* MD055 */,
120
- "table-column-count": true /* MD056 */,
121
- "blanks-around-tables": false /* MD058 */,
122
- }
1
+ {
2
+ // v0.36.1
3
+ // https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md
4
+ // "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.36.1/schema/markdownlint-config-schema.json",
5
+ "heading-increment": true /* MD001 */,
6
+ "heading-style": {
7
+ "style": "atx",
8
+ } /* MD003 */,
9
+ "ul-style": false /* MD004 */,
10
+ "list-indent": true /* MD005 */,
11
+ "ul-indent": {
12
+ "indent": 2,
13
+ "start_indent": 2,
14
+ "start_indented": false,
15
+ } /* MD007 */,
16
+ "no-trailing-spaces": {
17
+ "br_spaces": 0,
18
+ "list_item_empty_lines": false,
19
+ "strict": true,
20
+ } /* MD009 */,
21
+ "no-hard-tabs": {
22
+ "spaces_per_tab": 2,
23
+ "code_blocks": true,
24
+ "ignore_code_languages": [],
25
+ } /* MD010 */,
26
+ "no-reversed-links": false /* MD011 */,
27
+ "no-multiple-blanks": {
28
+ "maximum": 1,
29
+ } /* MD012 */,
30
+ "line-length": false /* MD013 */,
31
+ "commands-show-output": true /* MD014 */,
32
+ "no-missing-space-atx": true /* MD018 */,
33
+ "no-multiple-space-atx": true /* MD019 */,
34
+ "no-missing-space-closed-atx": true /* MD020 */,
35
+ "no-multiple-space-closed-atx": true /* MD021 */,
36
+ "blanks-around-headings": {
37
+ "lines_above": 1,
38
+ "lines_below": 0,
39
+ } /* MD022 */,
40
+ "heading-start-left": true /* MD023 */,
41
+ "no-duplicate-heading": {
42
+ "siblings_only": true,
43
+ } /* MD024 */,
44
+ "single-title": false /* MD025, single-h1 */,
45
+ "no-trailing-punctuation": {
46
+ "punctuation": "" /* @DEFAULT: .,;:!。,;:! */,
47
+ } /* MD026 */,
48
+ "no-multiple-space-blockquote": true /* MD027 */,
49
+ "no-blanks-blockquote": true /* MD028 */,
50
+ "ol-prefix": {
51
+ "style": "one_or_ordered",
52
+ } /* MD029 */,
53
+ "list-marker-space": {
54
+ "ol_multi": 1,
55
+ "ol_single": 1,
56
+ "ul_multi": 1,
57
+ "ul_single": 1,
58
+ } /* MD030 */,
59
+ "blanks-around-fences": {
60
+ "list_items": false,
61
+ } /* MD031 */,
62
+ "blanks-around-lists": true /* MD032 */,
63
+ "no-inline-html": {
64
+ "allowed_elements": [
65
+ "br",
66
+ "details",
67
+ "summary",
68
+ ],
69
+ } /* MD033 */,
70
+ "no-bare-urls": true /* MD034 */,
71
+ "hr-style": {
72
+ "style": "---",
73
+ } /* MD035 */,
74
+ "no-emphasis-as-heading": false /* MD036 */,
75
+ "no-space-in-emphasis": true /* MD037 */,
76
+ "no-space-in-code": true /* MD038 */,
77
+ "no-space-in-links": true /* MD039 */,
78
+ "fenced-code-language": {
79
+ "allowed_languages": [],
80
+ "language_only": false,
81
+ } /* MD040 */,
82
+ "first-line-heading": false /* MD041, first-line-h1 */,
83
+ "no-empty-links": true /* MD042 */,
84
+ "required-headings": false /* MD043 */,
85
+ "proper-names": false /* MD044 */,
86
+ "no-alt-text": true /* MD045 */,
87
+ "code-block-style": {
88
+ "style": "fenced",
89
+ } /* MD046 */,
90
+ "single-trailing-newline": true /* MD047 */,
91
+ "code-fence-style": {
92
+ "style": "backtick",
93
+ } /* MD048 */,
94
+ "emphasis-style": {
95
+ "style": "underscore",
96
+ } /* MD049 */,
97
+ "strong-style": {
98
+ "style": "underscore",
99
+ } /* MD050 */,
100
+ "link-fragments": true /* MD051 */,
101
+ "reference-links-images": {
102
+ "shortcut_syntax": false,
103
+ } /* MD052 */,
104
+ "link-image-reference-definitions": {
105
+ "ignored_definitions": [
106
+ "//",
107
+ ] /* @DEFAULT: ["//"] */,
108
+ } /* MD053 */,
109
+ "link-image-style": {
110
+ "autolink": true,
111
+ "collapsed": true,
112
+ "full": true,
113
+ "inline": true,
114
+ "shortcut": true,
115
+ "url_inline": true,
116
+ } /* MD054 */,
117
+ "table-pipe-style": {
118
+ "style": "leading_and_trailing",
119
+ } /* MD055 */,
120
+ "table-column-count": true /* MD056 */,
121
+ "blanks-around-tables": false /* MD058 */,
122
+ }
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- # MIT License
2
-
3
- Copyright (c) 2024 Jimmy Zhening Luo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ # MIT License
2
+
3
+ Copyright (c) 2024 Jimmy Zhening Luo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.