linted 19.3.1 → 19.4.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +124 -124
  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/dist/rules/index.d.ts +4 -0
  10. package/dist/rules/index.d.ts.map +1 -1
  11. package/dist/rules/js/index.d.ts +1 -0
  12. package/dist/rules/js/index.d.ts.map +1 -1
  13. package/dist/rules/js/stylistic.d.ts +1 -0
  14. package/dist/rules/js/stylistic.d.ts.map +1 -1
  15. package/dist/rules/js/stylistic.js +4 -1
  16. package/dist/rules/js/stylistic.js.map +1 -1
  17. package/dist/rules/mocha/index.d.ts +1 -0
  18. package/dist/rules/mocha/index.d.ts.map +1 -1
  19. package/dist/rules/mochaJs/index.d.ts +1 -0
  20. package/dist/rules/mochaJs/index.d.ts.map +1 -1
  21. package/dist/rules/svelte/index.d.ts +1 -0
  22. package/dist/rules/svelte/index.d.ts.map +1 -1
  23. package/dist/rules/ts/index.d.ts +1 -0
  24. package/dist/rules/ts/index.d.ts.map +1 -1
  25. package/eslint.config.js +3 -3
  26. package/package.json +140 -140
  27. package/src/_strings/id.ts +18 -18
  28. package/src/_strings/index.ts +6 -6
  29. package/src/_strings/level.spec.ts +31 -31
  30. package/src/_strings/level.ts +6 -6
  31. package/src/_strings/state.ts +58 -58
  32. package/src/files/html.ts +1 -1
  33. package/src/files/index.ts +19 -19
  34. package/src/files/js.ts +4 -4
  35. package/src/files/json.ts +1 -1
  36. package/src/files/jsonc.ts +4 -4
  37. package/src/files/mocha.ts +4 -4
  38. package/src/files/mochaJs.ts +4 -4
  39. package/src/files/svelte.ts +1 -1
  40. package/src/files/ts.ts +1 -1
  41. package/src/files/yml.ts +1 -1
  42. package/src/imports/index.ts +7 -7
  43. package/src/imports/parsers.ts +13 -13
  44. package/src/imports/plugins.ts +17 -17
  45. package/src/index.spec.ts +11 -11
  46. package/src/index.ts +22 -22
  47. package/src/rules/html/enable.ts +120 -120
  48. package/src/rules/html/index.ts +3 -3
  49. package/src/rules/index.ts +19 -19
  50. package/src/rules/js/enable.ts +524 -524
  51. package/src/rules/js/index.ts +4 -4
  52. package/src/rules/js/stylistic.ts +611 -608
  53. package/src/rules/json/enable.ts +33 -33
  54. package/src/rules/json/enable_x.ts +95 -95
  55. package/src/rules/json/index.ts +4 -4
  56. package/src/rules/jsonc/index.ts +4 -4
  57. package/src/rules/jsonc/override.ts +16 -16
  58. package/src/rules/mocha/base.ts +7 -7
  59. package/src/rules/mocha/disable.ts +8 -8
  60. package/src/rules/mocha/enable.ts +53 -53
  61. package/src/rules/mocha/index.ts +7 -7
  62. package/src/rules/mochaJs/index.ts +7 -7
  63. package/src/rules/svelte/disable.ts +9 -9
  64. package/src/rules/svelte/disable_js.ts +11 -11
  65. package/src/rules/svelte/disable_ts.ts +9 -9
  66. package/src/rules/svelte/enable.ts +230 -230
  67. package/src/rules/svelte/enable_x.ts +20 -20
  68. package/src/rules/svelte/index.ts +15 -15
  69. package/src/rules/ts/disable.ts +22 -22
  70. package/src/rules/ts/disable_x.ts +32 -32
  71. package/src/rules/ts/enable.ts +550 -550
  72. package/src/rules/ts/enable_x.ts +115 -115
  73. package/src/rules/ts/index.ts +13 -13
  74. package/src/rules/yml/enable.ts +64 -64
  75. package/src/rules/yml/enable_x.ts +68 -68
  76. package/src/rules/yml/index.ts +4 -4
  77. package/tsconfig.json +163 -163
  78. 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,124 +1,124 @@
1
- {
2
- // v0.35.0
3
- // https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/Rules.md
4
- // "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.35.0/schema/markdownlint-config-schema.json",
5
- "heading-increment": true /* MD001 */,
6
- "heading-style": {
7
- "style": "atx",
8
- } /* MD003 */,
9
- "ul-style": {
10
- "style": "sublist",
11
- } /* MD004 */,
12
- "list-indent": true /* MD005 */,
13
- "ul-indent": {
14
- "indent": 2,
15
- "start_indent": 2,
16
- "start_indented": false,
17
- } /* MD007 */,
18
- "no-trailing-spaces": {
19
- "br_spaces": 0,
20
- "list_item_empty_lines": false,
21
- "strict": true,
22
- } /* MD009 */,
23
- "no-hard-tabs": {
24
- "spaces_per_tab": 2,
25
- "code_blocks": true,
26
- "ignore_code_languages": [],
27
- } /* MD010 */,
28
- "no-reversed-links": false /* MD011 */,
29
- "no-multiple-blanks": {
30
- "maximum": 1,
31
- } /* MD012 */,
32
- "line-length": false /* MD013 */,
33
- "commands-show-output": true /* MD014 */,
34
- "no-missing-space-atx": true /* MD018 */,
35
- "no-multiple-space-atx": true /* MD019 */,
36
- "no-missing-space-closed-atx": true /* MD020 */,
37
- "no-multiple-space-closed-atx": true /* MD021 */,
38
- "blanks-around-headings": {
39
- "lines_above": 1,
40
- "lines_below": 0,
41
- } /* MD022 */,
42
- "heading-start-left": true /* MD023 */,
43
- "no-duplicate-heading": {
44
- "siblings_only": true,
45
- } /* MD024 */,
46
- "single-title": false /* MD025, single-h1 */,
47
- "no-trailing-punctuation": {
48
- "punctuation": "" /* @DEFAULT: .,;:!。,;:! */,
49
- } /* MD026 */,
50
- "no-multiple-space-blockquote": true /* MD027 */,
51
- "no-blanks-blockquote": true /* MD028 */,
52
- "ol-prefix": {
53
- "style": "one_or_ordered",
54
- } /* MD029 */,
55
- "list-marker-space": {
56
- "ol_multi": 1,
57
- "ol_single": 1,
58
- "ul_multi": 1,
59
- "ul_single": 1,
60
- } /* MD030 */,
61
- "blanks-around-fences": {
62
- "list_items": false,
63
- } /* MD031 */,
64
- "blanks-around-lists": true /* MD032 */,
65
- "no-inline-html": {
66
- "allowed_elements": [
67
- "br",
68
- "details",
69
- "summary",
70
- ],
71
- } /* MD033 */,
72
- "no-bare-urls": true /* MD034 */,
73
- "hr-style": {
74
- "style": "---",
75
- } /* MD035 */,
76
- "no-emphasis-as-heading": false /* MD036 */,
77
- "no-space-in-emphasis": true /* MD037 */,
78
- "no-space-in-code": true /* MD038 */,
79
- "no-space-in-links": true /* MD039 */,
80
- "fenced-code-language": {
81
- "allowed_languages": [],
82
- "language_only": false,
83
- } /* MD040 */,
84
- "first-line-heading": false /* MD041, first-line-h1 */,
85
- "no-empty-links": true /* MD042 */,
86
- "required-headings": false /* MD043 */,
87
- "proper-names": false /* MD044 */,
88
- "no-alt-text": true /* MD045 */,
89
- "code-block-style": {
90
- "style": "fenced",
91
- } /* MD046 */,
92
- "single-trailing-newline": true /* MD047 */,
93
- "code-fence-style": {
94
- "style": "backtick",
95
- } /* MD048 */,
96
- "emphasis-style": {
97
- "style": "underscore",
98
- } /* MD049 */,
99
- "strong-style": {
100
- "style": "underscore",
101
- } /* MD050 */,
102
- "link-fragments": true /* MD051 */,
103
- "reference-links-images": {
104
- "shortcut_syntax": false,
105
- } /* MD052 */,
106
- "link-image-reference-definitions": {
107
- "ignored_definitions": [
108
- "//",
109
- ] /* @DEFAULT: ["//"] */,
110
- } /* MD053 */,
111
- "link-image-style": {
112
- "autolink": true,
113
- "collapsed": true,
114
- "full": true,
115
- "inline": true,
116
- "shortcut": true,
117
- "url_inline": true,
118
- } /* MD054 */,
119
- "table-pipe-style": {
120
- "style": "leading_and_trailing",
121
- } /* MD055 */,
122
- "table-column-count": true /* MD056 */,
123
- "blanks-around-tables": false /* MD058 */,
124
- }
1
+ {
2
+ // v0.35.0
3
+ // https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/Rules.md
4
+ // "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.35.0/schema/markdownlint-config-schema.json",
5
+ "heading-increment": true /* MD001 */,
6
+ "heading-style": {
7
+ "style": "atx",
8
+ } /* MD003 */,
9
+ "ul-style": {
10
+ "style": "sublist",
11
+ } /* MD004 */,
12
+ "list-indent": true /* MD005 */,
13
+ "ul-indent": {
14
+ "indent": 2,
15
+ "start_indent": 2,
16
+ "start_indented": false,
17
+ } /* MD007 */,
18
+ "no-trailing-spaces": {
19
+ "br_spaces": 0,
20
+ "list_item_empty_lines": false,
21
+ "strict": true,
22
+ } /* MD009 */,
23
+ "no-hard-tabs": {
24
+ "spaces_per_tab": 2,
25
+ "code_blocks": true,
26
+ "ignore_code_languages": [],
27
+ } /* MD010 */,
28
+ "no-reversed-links": false /* MD011 */,
29
+ "no-multiple-blanks": {
30
+ "maximum": 1,
31
+ } /* MD012 */,
32
+ "line-length": false /* MD013 */,
33
+ "commands-show-output": true /* MD014 */,
34
+ "no-missing-space-atx": true /* MD018 */,
35
+ "no-multiple-space-atx": true /* MD019 */,
36
+ "no-missing-space-closed-atx": true /* MD020 */,
37
+ "no-multiple-space-closed-atx": true /* MD021 */,
38
+ "blanks-around-headings": {
39
+ "lines_above": 1,
40
+ "lines_below": 0,
41
+ } /* MD022 */,
42
+ "heading-start-left": true /* MD023 */,
43
+ "no-duplicate-heading": {
44
+ "siblings_only": true,
45
+ } /* MD024 */,
46
+ "single-title": false /* MD025, single-h1 */,
47
+ "no-trailing-punctuation": {
48
+ "punctuation": "" /* @DEFAULT: .,;:!。,;:! */,
49
+ } /* MD026 */,
50
+ "no-multiple-space-blockquote": true /* MD027 */,
51
+ "no-blanks-blockquote": true /* MD028 */,
52
+ "ol-prefix": {
53
+ "style": "one_or_ordered",
54
+ } /* MD029 */,
55
+ "list-marker-space": {
56
+ "ol_multi": 1,
57
+ "ol_single": 1,
58
+ "ul_multi": 1,
59
+ "ul_single": 1,
60
+ } /* MD030 */,
61
+ "blanks-around-fences": {
62
+ "list_items": false,
63
+ } /* MD031 */,
64
+ "blanks-around-lists": true /* MD032 */,
65
+ "no-inline-html": {
66
+ "allowed_elements": [
67
+ "br",
68
+ "details",
69
+ "summary",
70
+ ],
71
+ } /* MD033 */,
72
+ "no-bare-urls": true /* MD034 */,
73
+ "hr-style": {
74
+ "style": "---",
75
+ } /* MD035 */,
76
+ "no-emphasis-as-heading": false /* MD036 */,
77
+ "no-space-in-emphasis": true /* MD037 */,
78
+ "no-space-in-code": true /* MD038 */,
79
+ "no-space-in-links": true /* MD039 */,
80
+ "fenced-code-language": {
81
+ "allowed_languages": [],
82
+ "language_only": false,
83
+ } /* MD040 */,
84
+ "first-line-heading": false /* MD041, first-line-h1 */,
85
+ "no-empty-links": true /* MD042 */,
86
+ "required-headings": false /* MD043 */,
87
+ "proper-names": false /* MD044 */,
88
+ "no-alt-text": true /* MD045 */,
89
+ "code-block-style": {
90
+ "style": "fenced",
91
+ } /* MD046 */,
92
+ "single-trailing-newline": true /* MD047 */,
93
+ "code-fence-style": {
94
+ "style": "backtick",
95
+ } /* MD048 */,
96
+ "emphasis-style": {
97
+ "style": "underscore",
98
+ } /* MD049 */,
99
+ "strong-style": {
100
+ "style": "underscore",
101
+ } /* MD050 */,
102
+ "link-fragments": true /* MD051 */,
103
+ "reference-links-images": {
104
+ "shortcut_syntax": false,
105
+ } /* MD052 */,
106
+ "link-image-reference-definitions": {
107
+ "ignored_definitions": [
108
+ "//",
109
+ ] /* @DEFAULT: ["//"] */,
110
+ } /* MD053 */,
111
+ "link-image-style": {
112
+ "autolink": true,
113
+ "collapsed": true,
114
+ "full": true,
115
+ "inline": true,
116
+ "shortcut": true,
117
+ "url_inline": true,
118
+ } /* MD054 */,
119
+ "table-pipe-style": {
120
+ "style": "leading_and_trailing",
121
+ } /* MD055 */,
122
+ "table-column-count": true /* MD056 */,
123
+ "blanks-around-tables": false /* MD058 */,
124
+ }
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.