@eslinted/core 3.1.11 → 3.1.13-rc.0
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.
- package/.github/workflows/PROD.main.yml +37 -0
- package/.github/workflows/dev.yml +37 -0
- package/LICENSE +21 -21
- package/README.md +3 -3
- package/SECURITY.md +9 -9
- package/eslint.config.js +3 -3
- package/package.json +54 -54
- package/src/boundary/index.ts +6 -6
- package/src/boundary/input/files/base/index.ts +5 -5
- package/src/boundary/input/files/includes/index.ts +5 -5
- package/src/boundary/input/files/index.ts +11 -11
- package/src/boundary/input/index.ts +23 -23
- package/src/boundary/input/parsers/index.ts +5 -5
- package/src/boundary/input/plugins/index.ts +5 -5
- package/src/boundary/input/rules/index.ts +11 -11
- package/src/boundary/input/rules/overrides/index.ts +6 -6
- package/src/boundary/input/rules/preset/entry/index.ts +5 -5
- package/src/boundary/input/rules/preset/entry/object/index.ts +9 -9
- package/src/boundary/input/rules/preset/entry/object/state/index.ts +6 -6
- package/src/boundary/input/rules/preset/index.ts +6 -6
- package/src/boundary/output/config/index.ts +25 -25
- package/src/boundary/output/config/option/index.ts +24 -24
- package/src/boundary/output/config/option/language/ecma/index.ts +3 -3
- package/src/boundary/output/config/option/language/index.ts +23 -23
- package/src/boundary/output/config/option/language/source/index.ts +3 -3
- package/src/boundary/output/config/option/linter/index.ts +4 -4
- package/src/boundary/output/config/option/plugins/index.ts +3 -3
- package/src/boundary/output/index.ts +3 -3
- package/src/dependency/globals/index.ts +8 -8
- package/src/dependency/index.ts +5 -5
- package/src/dependency/parsers/index.ts +13 -13
- package/src/dependency/plugins/index.ts +12 -12
- package/src/factory/files/index.ts +15 -15
- package/src/factory/index.ts +8 -8
- package/src/factory/options/index.ts +21 -21
- package/src/factory/options/option/html/index.ts +18 -18
- package/src/factory/options/option/index.ts +93 -93
- package/src/factory/options/option/js/index.ts +13 -13
- package/src/factory/options/option/json/index.ts +18 -18
- package/src/factory/options/option/jsonc/index.ts +18 -18
- package/src/factory/options/option/md/index.ts +18 -18
- package/src/factory/options/option/mocha/index.ts +28 -28
- package/src/factory/options/option/svelte/index.ts +32 -32
- package/src/factory/options/option/ts/index.ts +24 -24
- package/src/factory/options/option/yml/index.ts +18 -18
- package/src/factory/rulesets/index.ts +16 -16
- package/src/factory/rulesets/ruleset/index.ts +40 -40
- package/src/factory/rulesets/ruleset/rule/index.ts +8 -8
- package/src/index.ts +95 -95
- package/src/scopes/index.ts +14 -14
- package/tsconfig.json +161 -161
- package/types/typioca/literal/number/base32.d.ts +19 -19
- package/types/typioca/literal/number/base64.d.ts +35 -35
- package/types/typioca/literal/number/binary.d.ts +4 -4
- package/types/typioca/literal/number/decimal.d.ts +5 -5
- package/types/typioca/literal/number/hex.d.ts +10 -10
- package/types/typioca/literal/number/octal.d.ts +7 -7
- package/types/typioca/literal/number/quatral.d.ts +4 -4
- package/types/typioca/literal/number/ternary.d.ts +4 -4
- package/types/typioca/literal/string/base64char.d.ts +13 -13
- package/types/typioca/literal/string/digit.d.ts +12 -12
- package/types/typioca/literal/string/hexchar.d.ts +9 -9
- package/types/typioca/literal/string/letter.d.ts +35 -35
- package/types/typioca/safe/Safe.d.ts +2 -2
- package/types/typioca/safe/numbers/finite/Finite.d.ts +2 -2
- package/types/typioca/safe/numbers/finite.d.ts +1 -1
- package/types/typioca/safe/numbers/fint.d.ts +1 -1
- package/types/typioca/safe/numbers/int/Int.d.ts +2 -2
- package/types/typioca/safe/numbers/int.d.ts +1 -1
- package/types/typioca/safe/numbers/numberful.d.ts +1 -1
- package/types/typioca/safe/numbers/polarity/Negative.d.ts +4 -4
- package/types/typioca/safe/numbers/polarity/Positive.d.ts +4 -4
- package/types/typioca/safe/numbers/polarity/pole/Pole.d.ts +18 -18
- package/types/typioca/safe/primitive.d.ts +5 -5
- package/types/typioca/safe/strings/char.d.ts +1 -1
- package/types/typioca/safe/strings/length/PropLength.d.ts +3 -3
- package/types/typioca/safe/strings/stringful.d.ts +1 -1
- package/types/typioca/utility/interface/construct/Particord.d.ts +1 -1
- package/types/typioca/utility/interface/construct/Property.d.ts +8 -8
- package/types/typioca/utility/interface/construct/Recordful.d.ts +5 -5
- package/types/typioca/utility/interface/construct/Table.d.ts +3 -3
- package/types/typioca/utility/interface/construct/properties/Field.d.ts +1 -1
- package/types/typioca/utility/interface/construct/properties/Flag.d.ts +1 -1
- package/types/typioca/utility/interface/construct/properties/Limit.d.ts +8 -8
- package/types/typioca/utility/interface/construct/properties/List.d.ts +1 -1
- package/types/typioca/utility/interface/construct/properties/Listish.d.ts +1 -1
- package/types/typioca/utility/interface/construct/properties/Scalar.d.ts +1 -1
- package/types/typioca/utility/interface/construct/tables/FieldTable.d.ts +1 -1
- package/types/typioca/utility/interface/construct/tables/FlagTable.d.ts +1 -1
- package/types/typioca/utility/interface/construct/tables/ListTable.d.ts +1 -1
- package/types/typioca/utility/interface/construct/tables/ListishTable.d.ts +1 -1
- package/types/typioca/utility/interface/construct/tables/ScalarTable.d.ts +1 -1
- package/types/typioca/utility/interface/identity/Interface.d.ts +80 -80
- package/types/typioca/utility/interface/identity/Keys.d.ts +71 -71
- package/types/typioca/utility/interface/transform/Unrequire.d.ts +45 -45
- package/types/typioca/utility/iterable/construct/ArrayN.d.ts +12 -12
- package/types/typioca/utility/iterable/construct/Tuple.d.ts +27 -27
- package/types/typioca/utility/iterable/construct/arrays/Arrays.d.ts +1 -1
- package/types/typioca/utility/iterable/construct/tuples/Tuples.d.ts +9 -9
- package/types/typioca/utility/iterable/identity/DyadType.d.ts +3 -3
- package/types/typioca/utility/iterable/identity/MonadType.d.ts +48 -48
- package/types/typioca/utility/iterable/identity/TriadType.d.ts +3 -3
- package/types/typioca/utility/iterable/identity/array/ArrayType.d.ts +65 -65
- package/types/typioca/utility/iterable/identity/array/length/ArrayLength.d.ts +16 -16
- package/types/typioca/utility/iterable/transform/Join.d.ts +19 -19
- package/types/typioca/utility/iterable/transform/Unflat.d.ts +3 -3
- package/types/typioca/utility/iterable/transform/stringarray/Chain.d.ts +30 -30
- package/types/typioca/utility/iterable/transform/stringarray/PathN.d.ts +3 -3
- package/types/typioca/utility/iterable/transform/stringarray/stringify/Stringify.d.ts +5 -5
- package/types/typioca/utility/length/Length.d.ts +35 -35
- package/types/typioca/utility/null/null.d.ts +1 -1
- package/types/typioca/utility/null/nullable.d.ts +1 -1
- package/types/typioca/utility/primitive/Primeval.d.ts +42 -42
- package/types/typioca/utility/primitive/boolean/True.d.ts +30 -30
- package/types/typioca/utility/primitive/number/Numbered.d.ts +35 -35
- package/types/typioca/utility/primitive/string/literal.d.ts +22 -22
- package/types/typioca/utility/primitive/string/literalful.d.ts +28 -28
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: NPM Publish (RELEASE.main)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- v[0-9]+.[0-9]+.[0-9]+
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish-release-main:
|
|
12
|
+
if: github.event_name == 'push'
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: RELEASE.main
|
|
16
|
+
url: https://www.npmjs.com/package/@eslinted/core
|
|
17
|
+
name: Build/Publish (RELEASE.main)
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout
|
|
20
|
+
id: checkout
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
submodules: true
|
|
24
|
+
lfs: false
|
|
25
|
+
- name: Install Node v20
|
|
26
|
+
id: node
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: 20
|
|
30
|
+
registry-url: "https://registry.npmjs.org"
|
|
31
|
+
- name: Install Dependencies
|
|
32
|
+
id: ci
|
|
33
|
+
run: npm ci
|
|
34
|
+
- name: Publish to NPM
|
|
35
|
+
id: publish
|
|
36
|
+
run: npm publish
|
|
37
|
+
env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: NPM Publish (dev)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- dev
|
|
7
|
+
tags:
|
|
8
|
+
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish-dev:
|
|
12
|
+
if: github.event_name == 'push'
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: dev
|
|
16
|
+
url: https://www.npmjs.com/package/@eslinted/core
|
|
17
|
+
name: Build/Publish (dev)
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout
|
|
20
|
+
id: checkout
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
submodules: true
|
|
24
|
+
lfs: false
|
|
25
|
+
- name: Install Node v20
|
|
26
|
+
id: node
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: 20
|
|
30
|
+
registry-url: "https://registry.npmjs.org"
|
|
31
|
+
- name: Install Dependencies
|
|
32
|
+
id: ci
|
|
33
|
+
run: npm ci
|
|
34
|
+
- name: Publish to NPM
|
|
35
|
+
id: publish
|
|
36
|
+
run: npm publish
|
|
37
|
+
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# [`@eslinted/core`](https://npmjs.com/package/@eslinted/core)
|
|
2
|
-
|
|
3
|
-
Core ESLint flat config factory npm package `linted`.
|
|
1
|
+
# [`@eslinted/core`](https://npmjs.com/package/@eslinted/core)
|
|
2
|
+
|
|
3
|
+
Core ESLint flat config factory npm package `linted`.
|
package/SECURITY.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Reporting a Vulnerability
|
|
4
|
-
|
|
5
|
-
This repository participates in GitHub private vulnerability reporting.
|
|
6
|
-
|
|
7
|
-
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
|
8
|
-
|
|
9
|
-
Thank you for your dedication to safety.
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a Vulnerability
|
|
4
|
+
|
|
5
|
+
This repository participates in GitHub private vulnerability reporting.
|
|
6
|
+
|
|
7
|
+
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
|
8
|
+
|
|
9
|
+
Thank you for your dedication to safety.
|
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,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_schemaVersion": "20.16.
|
|
3
|
-
"name": "@eslinted/core",
|
|
4
|
-
"version": "3.1.
|
|
5
|
-
"description": "Core ESLint flat config factory npm package `linted`.",
|
|
6
|
-
"keywords": [],
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"private": false,
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"repository": "github:jimmy-zhening-luo/linted-core",
|
|
13
|
-
"homepage": "https://github.com/jimmy-zhening-luo/linted-core#readme",
|
|
14
|
-
"bugs": "https://github.com/jimmy-zhening-luo/linted-core/issues",
|
|
15
|
-
"type": "module",
|
|
16
|
-
"main": "dist/index.js",
|
|
17
|
-
"types": "dist/index.d.ts",
|
|
18
|
-
"engineStrict": true,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=20.16.0",
|
|
21
|
-
"npm": ">=10.
|
|
22
|
-
},
|
|
23
|
-
"peerDependenciesMeta": {},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"globals": "^15.9.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"eslint": "~9.9.0",
|
|
29
|
-
"linted": "~16.3.
|
|
30
|
-
"npm-run-all": "^4.1.5",
|
|
31
|
-
"typescript": "^5.5.4"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
|
35
|
-
"build:ts:compile": "tsc",
|
|
36
|
-
"build:svelte:sync": "svelte-kit sync",
|
|
37
|
-
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
|
38
|
-
"build:svelte:compile": "vite build",
|
|
39
|
-
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
|
40
|
-
"lint": "npm run build",
|
|
41
|
-
"lint:built": "run-s lint:built:*",
|
|
42
|
-
"lint:built:configs": "npm run ln {*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
|
43
|
-
"lint:built:source": "npm run ln src/**/*.{js,ts,html}",
|
|
44
|
-
"ln": "eslint --cache --fix",
|
|
45
|
-
"pretest": "npm run build",
|
|
46
|
-
"test": "",
|
|
47
|
-
"start": "vite preview || node .",
|
|
48
|
-
"prestart": "npm test",
|
|
49
|
-
"prepublishOnly": "npm test",
|
|
50
|
-
"predeploy": "npm test",
|
|
51
|
-
"deploy": ""
|
|
52
|
-
},
|
|
53
|
-
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"_schemaVersion": "20.16.1",
|
|
3
|
+
"name": "@eslinted/core",
|
|
4
|
+
"version": "3.1.13-rc.0",
|
|
5
|
+
"description": "Core ESLint flat config factory npm package `linted`.",
|
|
6
|
+
"keywords": [],
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"private": false,
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"repository": "github:jimmy-zhening-luo/linted-core",
|
|
13
|
+
"homepage": "https://github.com/jimmy-zhening-luo/linted-core#readme",
|
|
14
|
+
"bugs": "https://github.com/jimmy-zhening-luo/linted-core/issues",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"engineStrict": true,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20.16.0",
|
|
21
|
+
"npm": ">=10.8.1"
|
|
22
|
+
},
|
|
23
|
+
"peerDependenciesMeta": {},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"globals": "^15.9.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"eslint": "~9.9.0",
|
|
29
|
+
"linted": "~16.3.1",
|
|
30
|
+
"npm-run-all": "^4.1.5",
|
|
31
|
+
"typescript": "^5.5.4"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
|
35
|
+
"build:ts:compile": "tsc",
|
|
36
|
+
"build:svelte:sync": "svelte-kit sync",
|
|
37
|
+
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
|
38
|
+
"build:svelte:compile": "vite build",
|
|
39
|
+
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
|
40
|
+
"lint": "npm run build",
|
|
41
|
+
"lint:built": "run-s lint:built:*",
|
|
42
|
+
"lint:built:configs": "npm run ln {*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
|
43
|
+
"lint:built:source": "npm run ln src/**/*.{js,ts,html}",
|
|
44
|
+
"ln": "eslint --cache --fix",
|
|
45
|
+
"pretest": "npm run build",
|
|
46
|
+
"test": "",
|
|
47
|
+
"start": "vite preview || node .",
|
|
48
|
+
"prestart": "npm test",
|
|
49
|
+
"prepublishOnly": "npm test",
|
|
50
|
+
"predeploy": "npm test",
|
|
51
|
+
"deploy": ""
|
|
52
|
+
},
|
|
53
|
+
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
|
54
|
+
}
|
package/src/boundary/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as Input from "./input/index.js";
|
|
2
|
-
import type * as Output from "./output/index.js";
|
|
3
|
-
|
|
4
|
-
type Output = Output.Config;
|
|
5
|
-
|
|
6
|
-
export type { Input, Output };
|
|
1
|
+
import type * as Input from "./input/index.js";
|
|
2
|
+
import type * as Output from "./output/index.js";
|
|
3
|
+
|
|
4
|
+
type Output = Output.Config;
|
|
5
|
+
|
|
6
|
+
export type { Input, Output };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
-
|
|
3
|
-
type Base = Readonly<Record<Scope, readonly string[]>>;
|
|
4
|
-
|
|
5
|
-
export type { Base, Base as default };
|
|
1
|
+
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
+
|
|
3
|
+
type Base = Readonly<Record<Scope, readonly string[]>>;
|
|
4
|
+
|
|
5
|
+
export type { Base, Base as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as Includes from "../base/index.js";
|
|
2
|
-
|
|
3
|
-
type Includes = Partial<Includes.Base>;
|
|
4
|
-
|
|
5
|
-
export type { Includes, Includes as default };
|
|
1
|
+
import type * as Includes from "../base/index.js";
|
|
2
|
+
|
|
3
|
+
type Includes = Partial<Includes.Base>;
|
|
4
|
+
|
|
5
|
+
export type { Includes, Includes as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type Base from "./base/index.js";
|
|
2
|
-
import type Includes from "./includes/index.js";
|
|
3
|
-
|
|
4
|
-
type Files = { base: Base; includes: Includes };
|
|
5
|
-
|
|
6
|
-
export type {
|
|
7
|
-
Base,
|
|
8
|
-
Includes,
|
|
9
|
-
Files,
|
|
10
|
-
Files as default,
|
|
11
|
-
};
|
|
1
|
+
import type Base from "./base/index.js";
|
|
2
|
+
import type Includes from "./includes/index.js";
|
|
3
|
+
|
|
4
|
+
type Files = { base: Base; includes: Includes };
|
|
5
|
+
|
|
6
|
+
export type {
|
|
7
|
+
Base,
|
|
8
|
+
Includes,
|
|
9
|
+
Files,
|
|
10
|
+
Files as default,
|
|
11
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type Plugins from "./plugins/index.js";
|
|
2
|
-
import type Parsers from "./parsers/index.js";
|
|
3
|
-
import type * as Files from "./files/index.js";
|
|
4
|
-
import type * as Rules from "./rules/index.js";
|
|
5
|
-
|
|
6
|
-
type Files = Files.Files;
|
|
7
|
-
type Rules = Rules.Rules;
|
|
8
|
-
|
|
9
|
-
interface Input {
|
|
10
|
-
files: Files;
|
|
11
|
-
rules: Rules;
|
|
12
|
-
plugins: Plugins;
|
|
13
|
-
parsers: Parsers;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type {
|
|
17
|
-
Files,
|
|
18
|
-
Rules,
|
|
19
|
-
Plugins,
|
|
20
|
-
Parsers,
|
|
21
|
-
Input,
|
|
22
|
-
Input as default,
|
|
23
|
-
};
|
|
1
|
+
import type Plugins from "./plugins/index.js";
|
|
2
|
+
import type Parsers from "./parsers/index.js";
|
|
3
|
+
import type * as Files from "./files/index.js";
|
|
4
|
+
import type * as Rules from "./rules/index.js";
|
|
5
|
+
|
|
6
|
+
type Files = Files.Files;
|
|
7
|
+
type Rules = Rules.Rules;
|
|
8
|
+
|
|
9
|
+
interface Input {
|
|
10
|
+
files: Files;
|
|
11
|
+
rules: Rules;
|
|
12
|
+
plugins: Plugins;
|
|
13
|
+
parsers: Parsers;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type {
|
|
17
|
+
Files,
|
|
18
|
+
Rules,
|
|
19
|
+
Plugins,
|
|
20
|
+
Parsers,
|
|
21
|
+
Input,
|
|
22
|
+
Input as default,
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Parsers as Dependencies } from "../../../dependency/index.js";
|
|
2
|
-
|
|
3
|
-
type Parsers = Readonly<Record<Dependencies, unknown>>;
|
|
4
|
-
|
|
5
|
-
export type { Dependencies, Parsers, Parsers as default };
|
|
1
|
+
import type { Parsers as Dependencies } from "../../../dependency/index.js";
|
|
2
|
+
|
|
3
|
+
type Parsers = Readonly<Record<Dependencies, unknown>>;
|
|
4
|
+
|
|
5
|
+
export type { Dependencies, Parsers, Parsers as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Plugins as Dependencies } from "../../../dependency/index.js";
|
|
2
|
-
|
|
3
|
-
type Plugins = Readonly<Record<Dependencies, { configs: unknown }>>;
|
|
4
|
-
|
|
5
|
-
export type { Dependencies, Plugins, Plugins as default };
|
|
1
|
+
import type { Plugins as Dependencies } from "../../../dependency/index.js";
|
|
2
|
+
|
|
3
|
+
type Plugins = Readonly<Record<Dependencies, { configs: unknown }>>;
|
|
4
|
+
|
|
5
|
+
export type { Dependencies, Plugins, Plugins as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type Preset from "./preset/index.js";
|
|
2
|
-
import type Overrides from "./overrides/index.js";
|
|
3
|
-
|
|
4
|
-
type Rules = { preset: Preset; overrides: Overrides };
|
|
5
|
-
|
|
6
|
-
export type {
|
|
7
|
-
Preset,
|
|
8
|
-
Overrides,
|
|
9
|
-
Rules,
|
|
10
|
-
Rules as default,
|
|
11
|
-
};
|
|
1
|
+
import type Preset from "./preset/index.js";
|
|
2
|
+
import type Overrides from "./overrides/index.js";
|
|
3
|
+
|
|
4
|
+
type Rules = { preset: Preset; overrides: Overrides };
|
|
5
|
+
|
|
6
|
+
export type {
|
|
7
|
+
Preset,
|
|
8
|
+
Overrides,
|
|
9
|
+
Rules,
|
|
10
|
+
Rules as default,
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
-
import type * as Overrides from "../preset/index.js";
|
|
3
|
-
|
|
4
|
-
type Overrides = Readonly<Partial<Record<Scope, Overrides.Preset.Entry.Object>>>;
|
|
5
|
-
|
|
6
|
-
export type { Overrides, Overrides as default };
|
|
1
|
+
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
+
import type * as Overrides from "../preset/index.js";
|
|
3
|
+
|
|
4
|
+
type Overrides = Readonly<Partial<Record<Scope, Overrides.Preset.Entry.Object>>>;
|
|
5
|
+
|
|
6
|
+
export type { Overrides, Overrides as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as Entry from "./object/index.js";
|
|
2
|
-
|
|
3
|
-
type Entry = readonly [string, Entry.Object];
|
|
4
|
-
|
|
5
|
-
export type { Entry, Entry as default };
|
|
1
|
+
import type * as Entry from "./object/index.js";
|
|
2
|
+
|
|
3
|
+
type Entry = readonly [string, Entry.Object];
|
|
4
|
+
|
|
5
|
+
export type { Entry, Entry as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type * as Object from "./state/index.js";
|
|
2
|
-
|
|
3
|
-
type Object = Readonly<Record<
|
|
4
|
-
string,
|
|
5
|
-
| Object.Level
|
|
6
|
-
| readonly [Object.Level, ...unknown[]]
|
|
7
|
-
>>;
|
|
8
|
-
|
|
9
|
-
export type { Object, Object as default };
|
|
1
|
+
import type * as Object from "./state/index.js";
|
|
2
|
+
|
|
3
|
+
type Object = Readonly<Record<
|
|
4
|
+
string,
|
|
5
|
+
| Object.Level
|
|
6
|
+
| readonly [Object.Level, ...unknown[]]
|
|
7
|
+
>>;
|
|
8
|
+
|
|
9
|
+
export type { Object, Object as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type Level =
|
|
2
|
-
| "error"
|
|
3
|
-
| "warn"
|
|
4
|
-
| "off";
|
|
5
|
-
|
|
6
|
-
export type { Level, Level as default };
|
|
1
|
+
type Level =
|
|
2
|
+
| "error"
|
|
3
|
+
| "warn"
|
|
4
|
+
| "off";
|
|
5
|
+
|
|
6
|
+
export type { Level, Level as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
-
import type * as Preset from "./entry/index.js";
|
|
3
|
-
|
|
4
|
-
type Preset = Readonly<Record<Scope, readonly Preset.Entry[]>>;
|
|
5
|
-
|
|
6
|
-
export type { Preset, Preset as default };
|
|
1
|
+
import type { Scope } from "../../../../scopes/index.js";
|
|
2
|
+
import type * as Preset from "./entry/index.js";
|
|
3
|
+
|
|
4
|
+
type Preset = Readonly<Record<Scope, readonly Preset.Entry[]>>;
|
|
5
|
+
|
|
6
|
+
export type { Preset, Preset as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { Rules } from "../../input/index.js";
|
|
2
|
-
import type * as Config from "./option/index.js";
|
|
3
|
-
|
|
4
|
-
interface Config {
|
|
5
|
-
name: `linted/scope:${string}/rule:${string}+${string}`;
|
|
6
|
-
rules: Rules.Preset.Entry.Object;
|
|
7
|
-
files: readonly string[];
|
|
8
|
-
linterOptions: {
|
|
9
|
-
noInlineConfig: true;
|
|
10
|
-
reportUnusedDisableDirectives: "error";
|
|
11
|
-
};
|
|
12
|
-
languageOptions: {
|
|
13
|
-
sourceType?:
|
|
14
|
-
| "module"
|
|
15
|
-
| "script";
|
|
16
|
-
ecmaVersion?: "latest";
|
|
17
|
-
globals?: Record<string, true>;
|
|
18
|
-
parser?: unknown;
|
|
19
|
-
parserOptions?: Record<string, unknown>;
|
|
20
|
-
};
|
|
21
|
-
plugins: Record<string, Record<"configs", unknown>>;
|
|
22
|
-
processor?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type { Config, Config as default };
|
|
1
|
+
import type { Rules } from "../../input/index.js";
|
|
2
|
+
import type * as Config from "./option/index.js";
|
|
3
|
+
|
|
4
|
+
interface Config {
|
|
5
|
+
name: `linted/scope:${string}/rule:${string}+${string}`;
|
|
6
|
+
rules: Rules.Preset.Entry.Object;
|
|
7
|
+
files: readonly string[];
|
|
8
|
+
linterOptions: {
|
|
9
|
+
noInlineConfig: true;
|
|
10
|
+
reportUnusedDisableDirectives: "error";
|
|
11
|
+
};
|
|
12
|
+
languageOptions: {
|
|
13
|
+
sourceType?:
|
|
14
|
+
| "module"
|
|
15
|
+
| "script";
|
|
16
|
+
ecmaVersion?: "latest";
|
|
17
|
+
globals?: Record<string, true>;
|
|
18
|
+
parser?: unknown;
|
|
19
|
+
parserOptions?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
plugins: Record<string, Record<"configs", unknown>>;
|
|
22
|
+
processor?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type { Config, Config as default };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type Language from "./language/index.js";
|
|
2
|
-
import type Linter from "./linter/index.js";
|
|
3
|
-
import type Plugins from "./plugins/index.js";
|
|
4
|
-
|
|
5
|
-
type IOption<
|
|
6
|
-
PluginId extends string,
|
|
7
|
-
IsEcma extends boolean,
|
|
8
|
-
ParserOptions extends boolean | object,
|
|
9
|
-
GlobalTypes extends string,
|
|
10
|
-
Processor extends object,
|
|
11
|
-
> =
|
|
12
|
-
& { linterOptions: Linter }
|
|
13
|
-
& { languageOptions: Language<IsEcma, ParserOptions, GlobalTypes> }
|
|
14
|
-
& (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
|
|
15
|
-
& (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
|
|
16
|
-
;
|
|
17
|
-
|
|
18
|
-
export type {
|
|
19
|
-
Plugins,
|
|
20
|
-
Linter,
|
|
21
|
-
Language,
|
|
22
|
-
IOption,
|
|
23
|
-
IOption as default,
|
|
24
|
-
};
|
|
1
|
+
import type Language from "./language/index.js";
|
|
2
|
+
import type Linter from "./linter/index.js";
|
|
3
|
+
import type Plugins from "./plugins/index.js";
|
|
4
|
+
|
|
5
|
+
type IOption<
|
|
6
|
+
PluginId extends string,
|
|
7
|
+
IsEcma extends boolean,
|
|
8
|
+
ParserOptions extends boolean | object,
|
|
9
|
+
GlobalTypes extends string,
|
|
10
|
+
Processor extends object,
|
|
11
|
+
> =
|
|
12
|
+
& { linterOptions: Linter }
|
|
13
|
+
& { languageOptions: Language<IsEcma, ParserOptions, GlobalTypes> }
|
|
14
|
+
& (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
|
|
15
|
+
& (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
|
|
16
|
+
;
|
|
17
|
+
|
|
18
|
+
export type {
|
|
19
|
+
Plugins,
|
|
20
|
+
Linter,
|
|
21
|
+
Language,
|
|
22
|
+
IOption,
|
|
23
|
+
IOption as default,
|
|
24
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type Ecma = "latest";
|
|
2
|
-
|
|
3
|
-
export type { Ecma, Ecma as default };
|
|
1
|
+
type Ecma = "latest";
|
|
2
|
+
|
|
3
|
+
export type { Ecma, Ecma as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type Ecma from "./ecma/index.js";
|
|
2
|
-
import type Source from "./source/index.js";
|
|
3
|
-
|
|
4
|
-
type Language<
|
|
5
|
-
IsEcma extends boolean,
|
|
6
|
-
ParserOptions extends object | boolean,
|
|
7
|
-
GlobalTypes extends string,
|
|
8
|
-
> =
|
|
9
|
-
& (True<IsEcma> extends never ? object : { ecmaVersion: Ecma; sourceType: Source })
|
|
10
|
-
& (literalful<GlobalTypes> extends never ? object : { globals: Record<string, unknown> })
|
|
11
|
-
& (
|
|
12
|
-
ParserOptions extends boolean
|
|
13
|
-
? True<ParserOptions> extends never
|
|
14
|
-
? object
|
|
15
|
-
: { parser: unknown }
|
|
16
|
-
: ParserOptions extends object
|
|
17
|
-
? Interface<ParserOptions> extends never
|
|
18
|
-
? object
|
|
19
|
-
: { parser: unknown; parserOptions: ParserOptions }
|
|
20
|
-
: object
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
export type { Language, Language as default };
|
|
1
|
+
import type Ecma from "./ecma/index.js";
|
|
2
|
+
import type Source from "./source/index.js";
|
|
3
|
+
|
|
4
|
+
type Language<
|
|
5
|
+
IsEcma extends boolean,
|
|
6
|
+
ParserOptions extends object | boolean,
|
|
7
|
+
GlobalTypes extends string,
|
|
8
|
+
> =
|
|
9
|
+
& (True<IsEcma> extends never ? object : { ecmaVersion: Ecma; sourceType: Source })
|
|
10
|
+
& (literalful<GlobalTypes> extends never ? object : { globals: Record<string, unknown> })
|
|
11
|
+
& (
|
|
12
|
+
ParserOptions extends boolean
|
|
13
|
+
? True<ParserOptions> extends never
|
|
14
|
+
? object
|
|
15
|
+
: { parser: unknown }
|
|
16
|
+
: ParserOptions extends object
|
|
17
|
+
? Interface<ParserOptions> extends never
|
|
18
|
+
? object
|
|
19
|
+
: { parser: unknown; parserOptions: ParserOptions }
|
|
20
|
+
: object
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export type { Language, Language as default };
|