linted 16.12.2-rc.2 → 16.12.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +35 -35
- package/.github/workflows/rc.yml +35 -35
- package/LICENSE +21 -21
- package/README.md +390 -390
- package/SECURITY.md +9 -9
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports.d.ts.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +99 -99
- package/src/files/html.ts +1 -1
- package/src/files/js.ts +1 -1
- package/src/files/json.ts +1 -1
- package/src/files/jsonc.ts +4 -4
- package/src/files/md.ts +1 -1
- package/src/files/mocha.ts +1 -1
- package/src/files/svelte.ts +1 -1
- package/src/files/ts.ts +5 -5
- package/src/files/yml.ts +5 -5
- package/src/files.ts +22 -22
- package/src/imports/parsers.ts +15 -15
- package/src/imports/plugins.ts +19 -19
- package/src/imports.ts +8 -8
- package/src/index.ts +36 -36
- package/src/rules/_strings/id.ts +18 -18
- package/src/rules/_strings/level.ts +6 -6
- package/src/rules/_strings/state.ts +56 -56
- package/src/rules/_strings.ts +6 -6
- package/src/rules/html/enable.ts +16 -16
- package/src/rules/html/enable_recommended.ts +9 -9
- package/src/rules/html.ts +4 -4
- package/src/rules/js/enable.ts +524 -524
- package/src/rules/js/enable_stylistic.ts +608 -608
- package/src/rules/js.ts +4 -4
- package/src/rules/json/enable.ts +33 -33
- package/src/rules/json/enable_x.ts +89 -89
- package/src/rules/json.ts +4 -4
- package/src/rules/jsonc/override.ts +16 -16
- package/src/rules/jsonc.ts +4 -4
- package/src/rules/md/enable.ts +15 -15
- package/src/rules/md.ts +3 -3
- package/src/rules/mocha/enable.ts +3 -3
- package/src/rules/mocha/enable_recommended.ts +9 -9
- package/src/rules/mocha.ts +4 -4
- package/src/rules/svelte/disable.ts +9 -9
- package/src/rules/svelte/disable_js.ts +11 -11
- package/src/rules/svelte/disable_ts.ts +9 -9
- package/src/rules/svelte/enable.ts +228 -228
- package/src/rules/svelte/enable_x.ts +20 -20
- package/src/rules/svelte.ts +15 -15
- package/src/rules/ts/disable.ts +22 -22
- package/src/rules/ts/disable_x.ts +32 -32
- package/src/rules/ts/enable.ts +549 -549
- package/src/rules/ts/enable_x.ts +115 -115
- package/src/rules/ts.ts +13 -13
- package/src/rules/yml/enable.ts +64 -64
- package/src/rules/yml/enable_x.ts +68 -68
- package/src/rules/yml.ts +4 -4
- package/src/rules.ts +22 -22
- package/tsconfig.json +161 -161
- package/types/markdownlint/index.d.ts +3 -3
- package/types/markdownlint/parser.d.ts +9 -9
- package/types/mocha/index.d.ts +8 -8
- package/dist/rules/_html.d.ts +0 -8
- package/dist/rules/_html.d.ts.map +0 -1
- package/dist/rules/_html.js +0 -4
- package/dist/rules/_html.js.map +0 -1
- package/dist/rules/_js.d.ts +0 -765
- package/dist/rules/_js.d.ts.map +0 -1
- package/dist/rules/_js.js +0 -4
- package/dist/rules/_js.js.map +0 -1
- package/dist/rules/_json.d.ts +0 -74
- package/dist/rules/_json.d.ts.map +0 -1
- package/dist/rules/_json.js +0 -4
- package/dist/rules/_json.js.map +0 -1
- package/dist/rules/_jsonc.d.ts +0 -77
- package/dist/rules/_jsonc.d.ts.map +0 -1
- package/dist/rules/_jsonc.js +0 -4
- package/dist/rules/_jsonc.js.map +0 -1
- package/dist/rules/_md.d.ts +0 -7
- package/dist/rules/_md.d.ts.map +0 -1
- package/dist/rules/_md.js +0 -3
- package/dist/rules/_md.js.map +0 -1
- package/dist/rules/_mocha.d.ts +0 -8
- package/dist/rules/_mocha.d.ts.map +0 -1
- package/dist/rules/_mocha.js +0 -4
- package/dist/rules/_mocha.js.map +0 -1
- package/dist/rules/_svelte.d.ts +0 -1269
- package/dist/rules/_svelte.d.ts.map +0 -1
- package/dist/rules/_svelte.js +0 -15
- package/dist/rules/_svelte.js.map +0 -1
- package/dist/rules/_ts.d.ts +0 -1133
- package/dist/rules/_ts.d.ts.map +0 -1
- package/dist/rules/_ts.js +0 -13
- package/dist/rules/_ts.js.map +0 -1
- package/dist/rules/_yml.d.ts +0 -73
- package/dist/rules/_yml.d.ts.map +0 -1
- package/dist/rules/_yml.js +0 -4
- package/dist/rules/_yml.js.map +0 -1
- package/dist/rules/html/_enable.d.ts +0 -8
- package/dist/rules/html/_enable.d.ts.map +0 -1
- package/dist/rules/html/_enable.js +0 -10
- package/dist/rules/html/_enable.js.map +0 -1
- package/dist/rules/html/_recommended.d.ts +0 -3
- package/dist/rules/html/_recommended.d.ts.map +0 -1
- package/dist/rules/html/_recommended.js +0 -5
- package/dist/rules/html/_recommended.js.map +0 -1
- package/dist/rules/js/_enable.d.ts +0 -348
- package/dist/rules/js/_enable.d.ts.map +0 -1
- package/dist/rules/js/_enable.js +0 -260
- package/dist/rules/js/_enable.js.map +0 -1
- package/dist/rules/js/stylistic.d.ts +0 -420
- package/dist/rules/js/stylistic.d.ts.map +0 -1
- package/dist/rules/js/stylistic.js +0 -270
- package/dist/rules/js/stylistic.js.map +0 -1
- package/dist/rules/json/_enable.d.ts +0 -27
- package/dist/rules/json/_enable.d.ts.map +0 -1
- package/dist/rules/json/_enable.js +0 -31
- package/dist/rules/json/_enable.js.map +0 -1
- package/dist/rules/md/_enable.d.ts +0 -7
- package/dist/rules/md/_enable.d.ts.map +0 -1
- package/dist/rules/md/_enable.js +0 -9
- package/dist/rules/md/_enable.js.map +0 -1
- package/dist/rules/mocha/_enable.d.ts +0 -3
- package/dist/rules/mocha/_enable.d.ts.map +0 -1
- package/dist/rules/mocha/_enable.js +0 -4
- package/dist/rules/mocha/_enable.js.map +0 -1
- package/dist/rules/mocha/_recommended.d.ts +0 -3
- package/dist/rules/mocha/_recommended.d.ts.map +0 -1
- package/dist/rules/mocha/_recommended.js +0 -5
- package/dist/rules/mocha/_recommended.js.map +0 -1
- package/dist/rules/svelte/_enable.d.ts +0 -126
- package/dist/rules/svelte/_enable.d.ts.map +0 -1
- package/dist/rules/svelte/_enable.js +0 -90
- package/dist/rules/svelte/_enable.js.map +0 -1
- package/dist/rules/svelte/disable_x.d.ts +0 -5
- package/dist/rules/svelte/disable_x.d.ts.map +0 -1
- package/dist/rules/svelte/disable_x.js +0 -4
- package/dist/rules/svelte/disable_x.js.map +0 -1
- package/dist/rules/ts/_enable.d.ts +0 -262
- package/dist/rules/ts/_enable.d.ts.map +0 -1
- package/dist/rules/ts/_enable.js +0 -359
- package/dist/rules/ts/_enable.js.map +0 -1
- package/dist/rules/ts/disable_compiler.d.ts +0 -18
- package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
- package/dist/rules/ts/disable_compiler.js +0 -22
- package/dist/rules/ts/disable_compiler.js.map +0 -1
- package/dist/rules/yml/_enable.d.ts +0 -39
- package/dist/rules/yml/_enable.d.ts.map +0 -1
- package/dist/rules/yml/_enable.js +0 -28
- package/dist/rules/yml/_enable.js.map +0 -1
@@ -1,35 +1,35 @@
|
|
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 v20
|
24
|
-
id: node
|
25
|
-
uses: actions/setup-node@v4
|
26
|
-
with:
|
27
|
-
node-version: 20
|
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: { 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 v20
|
24
|
+
id: node
|
25
|
+
uses: actions/setup-node@v4
|
26
|
+
with:
|
27
|
+
node-version: 20
|
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: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
|
package/.github/workflows/rc.yml
CHANGED
@@ -1,35 +1,35 @@
|
|
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 v20
|
24
|
-
id: node
|
25
|
-
uses: actions/setup-node@v4
|
26
|
-
with:
|
27
|
-
node-version: 20
|
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: { 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 v20
|
24
|
+
id: node
|
25
|
+
uses: actions/setup-node@v4
|
26
|
+
with:
|
27
|
+
node-version: 20
|
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: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
|
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.
|