linted 16.12.2-rc.0 → 16.12.2-rc.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/dist/rules/html/enable.d.ts +8 -0
- package/dist/rules/html/enable.d.ts.map +1 -0
- package/dist/rules/html/enable.js +15 -0
- package/dist/rules/html/enable.js.map +1 -0
- package/dist/rules/html/enable_recommended.d.ts +3 -0
- package/dist/rules/html/enable_recommended.d.ts.map +1 -0
- package/dist/rules/html/enable_recommended.js +8 -0
- package/dist/rules/html/enable_recommended.js.map +1 -0
- package/dist/rules/html.d.ts +8 -0
- package/dist/rules/html.d.ts.map +1 -0
- package/dist/rules/html.js +4 -0
- package/dist/rules/html.js.map +1 -0
- package/dist/rules/js/enable.d.ts +348 -0
- package/dist/rules/js/enable.d.ts.map +1 -0
- package/dist/rules/js/enable.js +496 -0
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/enable_stylistic.d.ts +420 -0
- package/dist/rules/js/enable_stylistic.d.ts.map +1 -0
- package/dist/rules/js/enable_stylistic.js +585 -0
- package/dist/rules/js/enable_stylistic.js.map +1 -0
- package/dist/rules/js.d.ts +765 -0
- package/dist/rules/js.d.ts.map +1 -0
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/enable.d.ts +27 -0
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/enable.js +31 -0
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +48 -8
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/json.d.ts +74 -0
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/json.js +4 -0
- package/dist/rules/json.js.map +1 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -1
- package/dist/rules/jsonc/override.js +12 -3
- package/dist/rules/jsonc/override.js.map +1 -1
- package/dist/rules/jsonc.d.ts +77 -0
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/jsonc.js +4 -0
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/enable.d.ts +7 -0
- package/dist/rules/md/enable.d.ts.map +1 -0
- package/dist/rules/md/enable.js +14 -0
- package/dist/rules/md/enable.js.map +1 -0
- package/dist/rules/md.d.ts +7 -0
- package/dist/rules/md.d.ts.map +1 -0
- package/dist/rules/md.js +3 -0
- package/dist/rules/md.js.map +1 -0
- package/dist/rules/mocha/enable.d.ts +3 -0
- package/dist/rules/mocha/enable.d.ts.map +1 -0
- package/dist/rules/mocha/enable.js +3 -0
- package/dist/rules/mocha/enable.js.map +1 -0
- package/dist/rules/mocha/enable_recommended.d.ts +3 -0
- package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/enable_recommended.js +8 -0
- package/dist/rules/mocha/enable_recommended.js.map +1 -0
- package/dist/rules/mocha.d.ts +8 -0
- package/dist/rules/mocha.d.ts.map +1 -0
- package/dist/rules/mocha.js +4 -0
- package/dist/rules/mocha.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +5 -0
- package/dist/rules/svelte/disable.d.ts.map +1 -0
- package/dist/rules/svelte/disable.js +8 -0
- package/dist/rules/svelte/disable.js.map +1 -0
- package/dist/rules/svelte/disable_js.d.ts.map +1 -1
- package/dist/rules/svelte/disable_js.js +8 -3
- package/dist/rules/svelte/disable_js.js.map +1 -1
- package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
- package/dist/rules/svelte/disable_ts.js +8 -3
- package/dist/rules/svelte/disable_ts.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts +126 -0
- package/dist/rules/svelte/enable.d.ts.map +1 -0
- package/dist/rules/svelte/enable.js +190 -0
- package/dist/rules/svelte/enable.js.map +1 -0
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +15 -3
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/svelte.d.ts +1269 -0
- package/dist/rules/svelte.d.ts.map +1 -0
- package/dist/rules/svelte.js +15 -0
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/disable.d.ts +18 -0
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/disable.js +21 -0
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -2
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/enable.d.ts +262 -0
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/enable.js +503 -0
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +32 -5
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/ts.d.ts +1133 -0
- package/dist/rules/ts.d.ts.map +1 -0
- package/dist/rules/ts.js +13 -0
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/enable.d.ts +39 -0
- package/dist/rules/yml/enable.d.ts.map +1 -0
- package/dist/rules/yml/enable.js +60 -0
- package/dist/rules/yml/enable.js.map +1 -0
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +57 -9
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/yml.d.ts +73 -0
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/yml.js +4 -0
- package/dist/rules/yml.js.map +1 -0
- package/dist/rules.d.ts +75 -75
- package/dist/rules.js +9 -9
- package/dist/rules.js.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 -0
- package/src/rules/html/enable_recommended.ts +9 -0
- package/src/rules/html.ts +4 -0
- package/src/rules/js/enable.ts +524 -0
- package/src/rules/js/enable_stylistic.ts +608 -0
- package/src/rules/js.ts +4 -0
- package/src/rules/json/{_enable.ts → enable.ts} +33 -35
- package/src/rules/json/enable_x.ts +89 -50
- package/src/rules/{_json.ts → json.ts} +4 -4
- package/src/rules/jsonc/override.ts +16 -9
- package/src/rules/{_jsonc.ts → jsonc.ts} +4 -4
- package/src/rules/md/enable.ts +15 -0
- package/src/rules/md.ts +3 -0
- package/src/rules/mocha/enable.ts +3 -0
- package/src/rules/mocha/enable_recommended.ts +9 -0
- package/src/rules/mocha.ts +4 -0
- package/src/rules/svelte/disable.ts +9 -0
- package/src/rules/svelte/disable_js.ts +11 -7
- package/src/rules/svelte/disable_ts.ts +9 -5
- package/src/rules/svelte/{_enable.ts → enable.ts} +228 -129
- package/src/rules/svelte/enable_x.ts +20 -9
- package/src/rules/{_svelte.ts → svelte.ts} +15 -15
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +22 -23
- package/src/rules/ts/disable_x.ts +32 -36
- package/src/rules/ts/{_enable.ts → enable.ts} +549 -406
- package/src/rules/ts/enable_x.ts +115 -90
- package/src/rules/{_ts.ts → ts.ts} +13 -13
- package/src/rules/yml/{_enable.ts → enable.ts} +64 -33
- package/src/rules/yml/enable_x.ts +68 -21
- package/src/rules/{_yml.ts → 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/src/rules/_html.ts +0 -4
- package/src/rules/_js.ts +0 -4
- package/src/rules/_md.ts +0 -3
- package/src/rules/_mocha.ts +0 -4
- package/src/rules/html/_enable.ts +0 -13
- package/src/rules/html/_recommended.ts +0 -7
- package/src/rules/js/_enable.ts +0 -287
- package/src/rules/js/stylistic.ts +0 -294
- package/src/rules/md/_enable.ts +0 -14
- package/src/rules/mocha/_enable.ts +0 -5
- package/src/rules/mocha/_recommended.ts +0 -7
- package/src/rules/svelte/disable_x.ts +0 -8
@@ -1,9 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const
|
4
|
-
{
|
5
|
-
{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ ERROR, OFF } = level,
|
5
|
+
{ Allow, Both } = state;
|
6
|
+
|
7
|
+
export default [
|
8
|
+
enable_x,
|
9
|
+
{
|
10
|
+
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
11
|
+
"svelte/no-inner-declarations": [
|
12
|
+
ERROR,
|
13
|
+
Both,
|
14
|
+
{
|
15
|
+
blockScopedFunctions: Allow,
|
16
|
+
},
|
17
|
+
] /* Same options as in JsEnable */,
|
18
|
+
"svelte/no-trailing-spaces": OFF /* Only applies to HTML comments, which I don't intend to use: http://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/ */,
|
19
|
+
},
|
20
|
+
] as const;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import TsRuleset from "./
|
2
|
-
import DisableJS from "./svelte/disable_js.js";
|
3
|
-
import DisableTS from "./svelte/disable_ts.js";
|
4
|
-
import DisableX from "./svelte/
|
5
|
-
import EnableX from "./svelte/enable_x.js";
|
6
|
-
import Enable from "./svelte/
|
7
|
-
|
8
|
-
export default [
|
9
|
-
...TsRuleset,
|
10
|
-
DisableJS,
|
11
|
-
DisableTS,
|
12
|
-
DisableX,
|
13
|
-
EnableX,
|
14
|
-
Enable,
|
15
|
-
] as const;
|
1
|
+
import TsRuleset from "./ts.js";
|
2
|
+
import DisableJS from "./svelte/disable_js.js";
|
3
|
+
import DisableTS from "./svelte/disable_ts.js";
|
4
|
+
import DisableX from "./svelte/disable.js";
|
5
|
+
import EnableX from "./svelte/enable_x.js";
|
6
|
+
import Enable from "./svelte/enable.js";
|
7
|
+
|
8
|
+
export default [
|
9
|
+
...TsRuleset,
|
10
|
+
DisableJS,
|
11
|
+
DisableTS,
|
12
|
+
DisableX,
|
13
|
+
EnableX,
|
14
|
+
Enable,
|
15
|
+
] as const;
|
@@ -1,23 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"
|
9
|
-
"no-
|
10
|
-
"no-dupe-
|
11
|
-
"no-dupe-
|
12
|
-
"no-
|
13
|
-
"no-
|
14
|
-
"no-
|
15
|
-
"no-
|
16
|
-
"no-
|
17
|
-
"no-
|
18
|
-
"no-
|
19
|
-
"
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
] as const;
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
disable,
|
5
|
+
{
|
6
|
+
// Handled by TypeScript compiler
|
7
|
+
"constructor-super": OFF,
|
8
|
+
"no-const-assign": OFF,
|
9
|
+
"no-dupe-args": OFF,
|
10
|
+
"no-dupe-class-members": OFF,
|
11
|
+
"no-dupe-keys": OFF,
|
12
|
+
"no-func-assign": OFF,
|
13
|
+
"no-obj-calls": OFF,
|
14
|
+
"no-setter-return": OFF,
|
15
|
+
"no-this-before-super": OFF,
|
16
|
+
"no-undef": OFF,
|
17
|
+
"no-unreachable": OFF,
|
18
|
+
"no-unsafe-negation": OFF,
|
19
|
+
"consistent-return": OFF,
|
20
|
+
"no-redeclare": OFF,
|
21
|
+
},
|
22
|
+
] as const;
|
@@ -1,36 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"no-
|
18
|
-
"no-
|
19
|
-
"no-
|
20
|
-
"no-
|
21
|
-
"no-
|
22
|
-
"no-
|
23
|
-
"no-
|
24
|
-
"no-
|
25
|
-
"no-
|
26
|
-
"no-
|
27
|
-
"no-
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
"prefer-promise-reject-errors": OFF,
|
34
|
-
"require-await": OFF,
|
35
|
-
},
|
36
|
-
] as const;
|
1
|
+
import { disable_x, OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
disable_x,
|
5
|
+
{
|
6
|
+
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
7
|
+
"class-methods-use-this": OFF,
|
8
|
+
"consistent-return": OFF,
|
9
|
+
"default-param-last": OFF,
|
10
|
+
"dot-notation": OFF,
|
11
|
+
"init-declarations": OFF,
|
12
|
+
"max-params": OFF,
|
13
|
+
"no-array-constructor": OFF,
|
14
|
+
"no-dupe-class-members": OFF,
|
15
|
+
"no-empty-function": OFF,
|
16
|
+
"no-implied-eval": OFF,
|
17
|
+
"no-invalid-this": OFF,
|
18
|
+
"no-loop-func": OFF,
|
19
|
+
"no-magic-numbers": OFF,
|
20
|
+
"no-redeclare": OFF,
|
21
|
+
"no-restricted-imports": OFF,
|
22
|
+
"no-shadow": OFF,
|
23
|
+
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
24
|
+
"no-unused-expressions": OFF,
|
25
|
+
"no-unused-vars": OFF,
|
26
|
+
"no-use-before-define": OFF,
|
27
|
+
"no-useless-constructor": OFF,
|
28
|
+
"prefer-destructuring": OFF,
|
29
|
+
"prefer-promise-reject-errors": OFF,
|
30
|
+
"require-await": OFF,
|
31
|
+
},
|
32
|
+
] as const;
|