linted 16.12.1 → 16.12.2-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{base/files/html/index.d.ts → files/html.d.ts} +1 -1
- package/dist/files/html.d.ts.map +1 -0
- package/dist/{base/files/html/index.js → files/html.js} +1 -1
- package/dist/files/html.js.map +1 -0
- package/dist/{base/files/js/index.d.ts → files/js.d.ts} +1 -1
- package/dist/files/js.d.ts.map +1 -0
- package/dist/{base/files/js/index.js → files/js.js} +1 -1
- package/dist/files/js.js.map +1 -0
- package/dist/{base/files/json/index.d.ts → files/json.d.ts} +1 -1
- package/dist/files/json.d.ts.map +1 -0
- package/dist/files/json.js +2 -0
- package/dist/files/json.js.map +1 -0
- package/dist/{base/files/jsonc/index.d.ts → files/jsonc.d.ts} +1 -1
- package/dist/files/jsonc.d.ts.map +1 -0
- package/dist/{base/files/jsonc/index.js → files/jsonc.js} +1 -1
- package/dist/files/jsonc.js.map +1 -0
- package/dist/{base/files/mocha/index.d.ts → files/md.d.ts} +1 -1
- package/dist/files/md.d.ts.map +1 -0
- package/dist/files/md.js +2 -0
- package/dist/files/md.js.map +1 -0
- package/dist/{base/files/md/index.d.ts → files/mocha.d.ts} +1 -1
- package/dist/files/mocha.d.ts.map +1 -0
- package/dist/files/mocha.js +2 -0
- package/dist/files/mocha.js.map +1 -0
- package/dist/{base/files/svelte/index.d.ts → files/svelte.d.ts} +1 -1
- package/dist/files/svelte.d.ts.map +1 -0
- package/dist/{base/files/svelte/index.js → files/svelte.js} +1 -1
- package/dist/files/svelte.js.map +1 -0
- package/dist/{base/files/ts/index.d.ts → files/ts.d.ts} +1 -1
- package/dist/files/ts.d.ts.map +1 -0
- package/dist/{base/files/ts/index.js → files/ts.js} +1 -1
- package/dist/files/ts.js.map +1 -0
- package/dist/{base/files/yml/index.d.ts → files/yml.d.ts} +1 -1
- package/dist/files/yml.d.ts.map +1 -0
- package/dist/{base/files/yml/index.js → files/yml.js} +1 -1
- package/dist/files/yml.js.map +1 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +21 -0
- package/dist/files.js.map +1 -0
- package/dist/imports/parsers.d.ts.map +1 -0
- package/dist/imports/parsers.js.map +1 -0
- package/dist/imports/plugins.d.ts.map +1 -0
- package/dist/imports/plugins.js.map +1 -0
- package/dist/imports.d.ts +647 -0
- package/dist/imports.d.ts.map +1 -0
- package/dist/imports.js +7 -0
- package/dist/imports.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/rules/_strings/id.d.ts +3 -0
- package/dist/rules/_strings/id.d.ts.map +1 -0
- package/dist/rules/_strings/id.js +3 -0
- package/dist/rules/_strings/id.js.map +1 -0
- package/dist/{base/rules/strings/level/index.d.ts → rules/_strings/level.d.ts} +1 -1
- package/dist/rules/_strings/level.d.ts.map +1 -0
- package/dist/{base/rules/strings/level/index.js → rules/_strings/level.js} +1 -1
- package/dist/rules/_strings/level.js.map +1 -0
- package/dist/rules/_strings/state.d.ts +3 -0
- package/dist/rules/_strings/state.d.ts.map +1 -0
- package/dist/rules/_strings/state.js +3 -0
- package/dist/rules/_strings/state.js.map +1 -0
- package/dist/rules/_strings.d.ts +7 -0
- package/dist/rules/_strings.d.ts.map +1 -0
- package/dist/rules/_strings.js +7 -0
- package/dist/rules/_strings.js.map +1 -0
- package/dist/{base/rules/presets/html/Enable.d.ts → rules/html/enable.d.ts} +1 -1
- 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/{base/rules/presets/js/Enable.d.ts → rules/js/enable.d.ts} +1 -1
- package/dist/{base/rules/presets/js/EnableStylistic.d.ts.map → rules/js/enable.d.ts.map} +1 -1
- package/dist/rules/js/enable.js +496 -0
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/{base/rules/presets/js/EnableStylistic.d.ts → rules/js/enable_stylistic.d.ts} +25 -25
- 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/{base/rules/presets/Js.d.ts → rules/js.d.ts} +25 -25
- package/dist/{base/rules/presets/Js.d.ts.map → rules/js.d.ts.map} +1 -1
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/{base/rules/presets/json/Enable.d.ts → rules/json/enable.d.ts} +1 -1
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/{base/rules/presets/json/Enable.js → rules/json/enable.js} +4 -4
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/{base/rules/presets/json/EnableX.d.ts → rules/json/enable_x.d.ts} +1 -1
- package/dist/rules/json/enable_x.d.ts.map +1 -0
- package/dist/rules/json/enable_x.js +78 -0
- package/dist/rules/json/enable_x.js.map +1 -0
- package/dist/{base/rules/presets/Json.d.ts → rules/json.d.ts} +1 -1
- 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/{base/rules/presets/jsonc/OverrideJson.d.ts → rules/jsonc/override.d.ts} +1 -1
- package/dist/rules/jsonc/override.d.ts.map +1 -0
- package/dist/rules/jsonc/override.js +13 -0
- package/dist/rules/jsonc/override.js.map +1 -0
- package/dist/{base/rules/presets/Jsonc.d.ts → rules/jsonc.d.ts} +1 -1
- 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/{base/rules/presets/mocha/Enable.d.ts → rules/mocha/enable.d.ts} +1 -1
- 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/{base/rules/presets/svelte/DisableJS.d.ts → rules/svelte/disable_js.d.ts} +1 -1
- package/dist/rules/svelte/disable_js.d.ts.map +1 -0
- package/dist/rules/svelte/disable_js.js +9 -0
- package/dist/rules/svelte/disable_js.js.map +1 -0
- package/dist/{base/rules/presets/svelte/DisableTS.d.ts → rules/svelte/disable_ts.d.ts} +1 -1
- package/dist/rules/svelte/disable_ts.d.ts.map +1 -0
- package/dist/rules/svelte/disable_ts.js +9 -0
- package/dist/rules/svelte/disable_ts.js.map +1 -0
- package/dist/{base/rules/presets/svelte/Enable.d.ts → rules/svelte/enable.d.ts} +1 -1
- 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/{base/rules/presets/svelte/EnableX.d.ts → rules/svelte/enable_x.d.ts} +1 -1
- package/dist/rules/svelte/enable_x.d.ts.map +1 -0
- package/dist/rules/svelte/enable_x.js +16 -0
- package/dist/rules/svelte/enable_x.js.map +1 -0
- package/dist/{base/rules/presets/Svelte.d.ts → rules/svelte.d.ts} +27 -27
- package/dist/{base/rules/presets/Svelte.d.ts.map → rules/svelte.d.ts.map} +1 -1
- package/dist/rules/svelte.js +15 -0
- package/dist/rules/svelte.js.map +1 -0
- package/dist/{base/rules/presets/ts/DisableCompiler.d.ts → rules/ts/disable.d.ts} +2 -2
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/{base/rules/presets/ts/DisableCompiler.js → rules/ts/disable.js} +3 -4
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/{base/rules/presets/ts/DisableX.d.ts → rules/ts/disable_x.d.ts} +1 -1
- package/dist/rules/ts/disable_x.d.ts.map +1 -0
- package/dist/{base/rules/presets/ts/DisableX.js → rules/ts/disable_x.js} +3 -4
- package/dist/rules/ts/disable_x.js.map +1 -0
- package/dist/{base/rules/presets/ts/Enable.d.ts → rules/ts/enable.d.ts} +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/{base/rules/presets/ts/Enable.js → rules/ts/enable.js} +181 -37
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/{base/rules/presets/ts/EnableX.d.ts → rules/ts/enable_x.d.ts} +1 -1
- package/dist/rules/ts/enable_x.d.ts.map +1 -0
- package/dist/{base/rules/presets/ts/EnableX.js → rules/ts/enable_x.js} +38 -11
- package/dist/rules/ts/enable_x.js.map +1 -0
- package/dist/{base/rules/presets/Ts.d.ts → rules/ts.d.ts} +26 -26
- package/dist/{base/rules/presets/Ts.d.ts.map → rules/ts.d.ts.map} +1 -1
- package/dist/rules/ts.js +13 -0
- package/dist/rules/ts.js.map +1 -0
- package/dist/{base/rules/presets/yml/Enable.d.ts → rules/yml/enable.d.ts} +1 -1
- 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/{base/rules/presets/yml/EnableX.d.ts → rules/yml/enable_x.d.ts} +1 -1
- package/dist/rules/yml/enable_x.d.ts.map +1 -0
- package/dist/rules/yml/enable_x.js +64 -0
- package/dist/rules/yml/enable_x.js.map +1 -0
- package/dist/{base/rules/presets/Yml.d.ts → rules/yml.d.ts} +1 -1
- 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/{base/rules.d.ts → rules.d.ts} +77 -108
- package/dist/{base/rules.d.ts.map → rules.d.ts.map} +1 -1
- package/dist/rules.js +21 -0
- package/dist/rules.js.map +1 -0
- package/package.json +2 -2
- package/src/files.ts +22 -0
- package/src/{import → imports}/parsers.ts +1 -2
- package/src/{import → imports}/plugins.ts +1 -2
- package/src/imports.ts +8 -0
- package/src/index.ts +8 -8
- package/src/rules/_strings/id.ts +18 -0
- package/src/{base/rules/strings/level/index.ts → rules/_strings/level.ts} +2 -1
- package/src/rules/_strings/state.ts +56 -0
- package/src/rules/_strings.ts +6 -0
- 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/{base/rules/presets/json/Enable.ts → rules/json/enable.ts} +5 -5
- package/src/rules/json/enable_x.ts +89 -0
- package/src/rules/json.ts +4 -0
- package/src/rules/jsonc/override.ts +16 -0
- package/src/rules/jsonc.ts +4 -0
- 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 -0
- package/src/rules/svelte/disable_ts.ts +9 -0
- package/src/{base/rules/presets/svelte/Enable.ts → rules/svelte/enable.ts} +138 -40
- package/src/rules/svelte/enable_x.ts +20 -0
- package/src/rules/svelte.ts +15 -0
- package/src/{base/rules/presets/ts/DisableCompiler.ts → rules/ts/disable.ts} +4 -5
- package/src/{base/rules/presets/ts/DisableX.ts → rules/ts/disable_x.ts} +4 -6
- package/src/{base/rules/presets/ts/Enable.ts → rules/ts/enable.ts} +188 -46
- package/src/{base/rules/presets/ts/EnableX.ts → rules/ts/enable_x.ts} +46 -18
- package/src/rules/ts.ts +13 -0
- package/src/rules/yml/enable.ts +64 -0
- package/src/rules/yml/enable_x.ts +68 -0
- package/src/rules/yml.ts +4 -0
- package/src/rules.ts +22 -0
- package/dist/base/files/html/index.d.ts.map +0 -1
- package/dist/base/files/html/index.js.map +0 -1
- package/dist/base/files/js/index.d.ts.map +0 -1
- package/dist/base/files/js/index.js.map +0 -1
- package/dist/base/files/json/index.d.ts.map +0 -1
- package/dist/base/files/json/index.js +0 -2
- package/dist/base/files/json/index.js.map +0 -1
- package/dist/base/files/jsonc/index.d.ts.map +0 -1
- package/dist/base/files/jsonc/index.js.map +0 -1
- package/dist/base/files/md/index.d.ts.map +0 -1
- package/dist/base/files/md/index.js +0 -2
- package/dist/base/files/md/index.js.map +0 -1
- package/dist/base/files/mocha/index.d.ts.map +0 -1
- package/dist/base/files/mocha/index.js +0 -2
- package/dist/base/files/mocha/index.js.map +0 -1
- package/dist/base/files/svelte/index.d.ts.map +0 -1
- package/dist/base/files/svelte/index.js.map +0 -1
- package/dist/base/files/ts/index.d.ts.map +0 -1
- package/dist/base/files/ts/index.js.map +0 -1
- package/dist/base/files/yml/index.d.ts.map +0 -1
- package/dist/base/files/yml/index.js.map +0 -1
- package/dist/base/files.d.ts.map +0 -1
- package/dist/base/files.js +0 -21
- package/dist/base/files.js.map +0 -1
- package/dist/base/rules/presets/Html.d.ts +0 -8
- package/dist/base/rules/presets/Html.d.ts.map +0 -1
- package/dist/base/rules/presets/Html.js +0 -4
- package/dist/base/rules/presets/Html.js.map +0 -1
- package/dist/base/rules/presets/Js.js +0 -4
- package/dist/base/rules/presets/Js.js.map +0 -1
- package/dist/base/rules/presets/Json.d.ts.map +0 -1
- package/dist/base/rules/presets/Json.js +0 -4
- package/dist/base/rules/presets/Json.js.map +0 -1
- package/dist/base/rules/presets/Jsonc.d.ts.map +0 -1
- package/dist/base/rules/presets/Jsonc.js +0 -4
- package/dist/base/rules/presets/Jsonc.js.map +0 -1
- package/dist/base/rules/presets/Md.d.ts +0 -38
- package/dist/base/rules/presets/Md.d.ts.map +0 -1
- package/dist/base/rules/presets/Md.js +0 -3
- package/dist/base/rules/presets/Md.js.map +0 -1
- package/dist/base/rules/presets/Mocha.d.ts +0 -8
- package/dist/base/rules/presets/Mocha.d.ts.map +0 -1
- package/dist/base/rules/presets/Mocha.js +0 -4
- package/dist/base/rules/presets/Mocha.js.map +0 -1
- package/dist/base/rules/presets/Svelte.js +0 -15
- package/dist/base/rules/presets/Svelte.js.map +0 -1
- package/dist/base/rules/presets/Ts.js +0 -13
- package/dist/base/rules/presets/Ts.js.map +0 -1
- package/dist/base/rules/presets/Yml.d.ts.map +0 -1
- package/dist/base/rules/presets/Yml.js +0 -4
- package/dist/base/rules/presets/Yml.js.map +0 -1
- package/dist/base/rules/presets/html/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/html/Enable.js +0 -10
- package/dist/base/rules/presets/html/Enable.js.map +0 -1
- package/dist/base/rules/presets/html/Recommended.d.ts +0 -3
- package/dist/base/rules/presets/html/Recommended.d.ts.map +0 -1
- package/dist/base/rules/presets/html/Recommended.js +0 -5
- package/dist/base/rules/presets/html/Recommended.js.map +0 -1
- package/dist/base/rules/presets/index.d.ts +0 -8
- package/dist/base/rules/presets/index.d.ts.map +0 -1
- package/dist/base/rules/presets/index.js +0 -2
- package/dist/base/rules/presets/index.js.map +0 -1
- package/dist/base/rules/presets/js/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/js/Enable.js +0 -260
- package/dist/base/rules/presets/js/Enable.js.map +0 -1
- package/dist/base/rules/presets/js/EnableStylistic.js +0 -270
- package/dist/base/rules/presets/js/EnableStylistic.js.map +0 -1
- package/dist/base/rules/presets/json/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/json/Enable.js.map +0 -1
- package/dist/base/rules/presets/json/EnableX.d.ts.map +0 -1
- package/dist/base/rules/presets/json/EnableX.js +0 -38
- package/dist/base/rules/presets/json/EnableX.js.map +0 -1
- package/dist/base/rules/presets/jsonc/OverrideJson.d.ts.map +0 -1
- package/dist/base/rules/presets/jsonc/OverrideJson.js +0 -4
- package/dist/base/rules/presets/jsonc/OverrideJson.js.map +0 -1
- package/dist/base/rules/presets/md/Enable.d.ts +0 -38
- package/dist/base/rules/presets/md/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/md/Enable.js +0 -20
- package/dist/base/rules/presets/md/Enable.js.map +0 -1
- package/dist/base/rules/presets/mocha/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/mocha/Enable.js +0 -4
- package/dist/base/rules/presets/mocha/Enable.js.map +0 -1
- package/dist/base/rules/presets/mocha/Recommended.d.ts +0 -3
- package/dist/base/rules/presets/mocha/Recommended.d.ts.map +0 -1
- package/dist/base/rules/presets/mocha/Recommended.js +0 -5
- package/dist/base/rules/presets/mocha/Recommended.js.map +0 -1
- package/dist/base/rules/presets/svelte/DisableJS.d.ts.map +0 -1
- package/dist/base/rules/presets/svelte/DisableJS.js +0 -4
- package/dist/base/rules/presets/svelte/DisableJS.js.map +0 -1
- package/dist/base/rules/presets/svelte/DisableTS.d.ts.map +0 -1
- package/dist/base/rules/presets/svelte/DisableTS.js +0 -4
- package/dist/base/rules/presets/svelte/DisableTS.js.map +0 -1
- package/dist/base/rules/presets/svelte/DisableX.d.ts +0 -5
- package/dist/base/rules/presets/svelte/DisableX.d.ts.map +0 -1
- package/dist/base/rules/presets/svelte/DisableX.js +0 -4
- package/dist/base/rules/presets/svelte/DisableX.js.map +0 -1
- package/dist/base/rules/presets/svelte/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/svelte/Enable.js +0 -90
- package/dist/base/rules/presets/svelte/Enable.js.map +0 -1
- package/dist/base/rules/presets/svelte/EnableX.d.ts.map +0 -1
- package/dist/base/rules/presets/svelte/EnableX.js +0 -4
- package/dist/base/rules/presets/svelte/EnableX.js.map +0 -1
- package/dist/base/rules/presets/ts/DisableCompiler.d.ts.map +0 -1
- package/dist/base/rules/presets/ts/DisableCompiler.js.map +0 -1
- package/dist/base/rules/presets/ts/DisableX.d.ts.map +0 -1
- package/dist/base/rules/presets/ts/DisableX.js.map +0 -1
- package/dist/base/rules/presets/ts/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/ts/Enable.js.map +0 -1
- package/dist/base/rules/presets/ts/EnableX.d.ts.map +0 -1
- package/dist/base/rules/presets/ts/EnableX.js.map +0 -1
- package/dist/base/rules/presets/yml/Enable.d.ts.map +0 -1
- package/dist/base/rules/presets/yml/Enable.js +0 -28
- package/dist/base/rules/presets/yml/Enable.js.map +0 -1
- package/dist/base/rules/presets/yml/EnableX.d.ts.map +0 -1
- package/dist/base/rules/presets/yml/EnableX.js +0 -16
- package/dist/base/rules/presets/yml/EnableX.js.map +0 -1
- package/dist/base/rules/strings/id/index.d.ts +0 -3
- package/dist/base/rules/strings/id/index.d.ts.map +0 -1
- package/dist/base/rules/strings/id/index.js +0 -3
- package/dist/base/rules/strings/id/index.js.map +0 -1
- package/dist/base/rules/strings/index.d.ts +0 -7
- package/dist/base/rules/strings/index.d.ts.map +0 -1
- package/dist/base/rules/strings/index.js +0 -7
- package/dist/base/rules/strings/index.js.map +0 -1
- package/dist/base/rules/strings/level/index.d.ts.map +0 -1
- package/dist/base/rules/strings/level/index.js.map +0 -1
- package/dist/base/rules/strings/state/index.d.ts +0 -3
- package/dist/base/rules/strings/state/index.d.ts.map +0 -1
- package/dist/base/rules/strings/state/index.js +0 -3
- package/dist/base/rules/strings/state/index.js.map +0 -1
- package/dist/base/rules.js +0 -21
- package/dist/base/rules.js.map +0 -1
- package/dist/import/parsers.d.ts.map +0 -1
- package/dist/import/parsers.js.map +0 -1
- package/dist/import/plugins.d.ts.map +0 -1
- package/dist/import/plugins.js.map +0 -1
- package/src/base/files.ts +0 -22
- package/src/base/rules/presets/Html.ts +0 -5
- package/src/base/rules/presets/Js.ts +0 -5
- package/src/base/rules/presets/Json.ts +0 -5
- package/src/base/rules/presets/Jsonc.ts +0 -5
- package/src/base/rules/presets/Md.ts +0 -4
- package/src/base/rules/presets/Mocha.ts +0 -5
- package/src/base/rules/presets/Svelte.ts +0 -16
- package/src/base/rules/presets/Ts.ts +0 -14
- package/src/base/rules/presets/Yml.ts +0 -5
- package/src/base/rules/presets/html/Enable.ts +0 -11
- package/src/base/rules/presets/html/Recommended.ts +0 -7
- package/src/base/rules/presets/index.ts +0 -10
- package/src/base/rules/presets/js/Enable.ts +0 -288
- package/src/base/rules/presets/js/EnableStylistic.ts +0 -295
- package/src/base/rules/presets/json/EnableX.ts +0 -51
- package/src/base/rules/presets/jsonc/OverrideJson.ts +0 -6
- package/src/base/rules/presets/md/Enable.ts +0 -23
- package/src/base/rules/presets/mocha/Enable.ts +0 -5
- package/src/base/rules/presets/mocha/Recommended.ts +0 -7
- package/src/base/rules/presets/svelte/DisableJS.ts +0 -7
- package/src/base/rules/presets/svelte/DisableTS.ts +0 -5
- package/src/base/rules/presets/svelte/DisableX.ts +0 -6
- package/src/base/rules/presets/svelte/EnableX.ts +0 -6
- package/src/base/rules/presets/yml/Enable.ts +0 -30
- package/src/base/rules/presets/yml/EnableX.ts +0 -18
- package/src/base/rules/strings/id/index.ts +0 -17
- package/src/base/rules/strings/index.ts +0 -6
- package/src/base/rules/strings/state/index.ts +0 -55
- package/src/base/rules.ts +0 -22
- /package/dist/{base/files.d.ts → files.d.ts} +0 -0
- /package/dist/{import → imports}/parsers.d.ts +0 -0
- /package/dist/{import → imports}/parsers.js +0 -0
- /package/dist/{import → imports}/plugins.d.ts +0 -0
- /package/dist/{import → imports}/plugins.js +0 -0
- /package/src/{base/files/html/index.ts → files/html.ts} +0 -0
- /package/src/{base/files/js/index.ts → files/js.ts} +0 -0
- /package/src/{base/files/json/index.ts → files/json.ts} +0 -0
- /package/src/{base/files/jsonc/index.ts → files/jsonc.ts} +0 -0
- /package/src/{base/files/md/index.ts → files/md.ts} +0 -0
- /package/src/{base/files/mocha/index.ts → files/mocha.ts} +0 -0
- /package/src/{base/files/svelte/index.ts → files/svelte.ts} +0 -0
- /package/src/{base/files/ts/index.ts → files/ts.ts} +0 -0
- /package/src/{base/files/yml/index.ts → files/yml.ts} +0 -0
@@ -1,23 +1,29 @@
|
|
1
|
-
import {
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
State: { NEVER, EXPLICIT },
|
7
|
-
} = Strings;
|
3
|
+
const
|
4
|
+
{ ERROR, OFF } = level,
|
5
|
+
{ Never, Explicit } = state;
|
8
6
|
|
9
7
|
export default [
|
10
|
-
|
8
|
+
enable,
|
11
9
|
{
|
12
|
-
// https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
10
|
+
// https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
13
11
|
"@typescript-eslint/adjacent-overload-signatures": OFF,
|
14
|
-
"@typescript-eslint/array-type": [
|
12
|
+
"@typescript-eslint/array-type": [
|
13
|
+
ERROR,
|
14
|
+
{
|
15
|
+
"default": "array",
|
16
|
+
readonly: "array",
|
17
|
+
},
|
18
|
+
],
|
15
19
|
"@typescript-eslint/await-thenable": ERROR,
|
16
20
|
"@typescript-eslint/ban-ts-comment": [
|
17
21
|
ERROR,
|
18
22
|
{
|
19
23
|
"ts-check": false,
|
20
|
-
"ts-expect-error": {
|
24
|
+
"ts-expect-error": {
|
25
|
+
descriptionFormat: "^: BUG: .+$",
|
26
|
+
},
|
21
27
|
"ts-ignore": true,
|
22
28
|
"ts-nocheck": true,
|
23
29
|
minimumDescriptionLength: 32,
|
@@ -27,22 +33,40 @@ export default [
|
|
27
33
|
"@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
|
28
34
|
"@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
|
29
35
|
"@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
|
30
|
-
"@typescript-eslint/consistent-type-assertions": [
|
36
|
+
"@typescript-eslint/consistent-type-assertions": [
|
37
|
+
ERROR,
|
38
|
+
{
|
39
|
+
assertionStyle: "as",
|
40
|
+
objectLiteralTypeAssertions: Never,
|
41
|
+
},
|
42
|
+
],
|
31
43
|
"@typescript-eslint/consistent-type-definitions": OFF,
|
32
|
-
"@typescript-eslint/consistent-type-exports": [
|
33
|
-
|
44
|
+
"@typescript-eslint/consistent-type-exports": [
|
45
|
+
ERROR,
|
46
|
+
{
|
47
|
+
fixMixedExportsWithInlineTypeSpecifier: false,
|
48
|
+
},
|
49
|
+
],
|
50
|
+
"@typescript-eslint/consistent-type-imports": [
|
51
|
+
ERROR,
|
52
|
+
{
|
53
|
+
disallowTypeAnnotations: true,
|
54
|
+
fixStyle: "separate-type-imports",
|
55
|
+
prefer: "type-imports",
|
56
|
+
},
|
57
|
+
],
|
34
58
|
"@typescript-eslint/explicit-function-return-type": OFF,
|
35
59
|
"@typescript-eslint/explicit-member-accessibility": [
|
36
60
|
ERROR,
|
37
61
|
{
|
38
|
-
accessibility:
|
62
|
+
accessibility: Explicit,
|
39
63
|
ignoredMethodNames: [],
|
40
64
|
overrides: {
|
41
|
-
properties:
|
65
|
+
properties: Explicit,
|
42
66
|
constructors: "no-public",
|
43
|
-
accessors:
|
44
|
-
methods:
|
45
|
-
parameterProperties:
|
67
|
+
accessors: Explicit,
|
68
|
+
methods: Explicit,
|
69
|
+
parameterProperties: Explicit,
|
46
70
|
},
|
47
71
|
},
|
48
72
|
],
|
@@ -231,19 +255,37 @@ export default [
|
|
231
255
|
},
|
232
256
|
],
|
233
257
|
"@typescript-eslint/no-confusing-non-null-assertion": ERROR,
|
234
|
-
"@typescript-eslint/no-confusing-void-expression": [
|
258
|
+
"@typescript-eslint/no-confusing-void-expression": [
|
259
|
+
ERROR,
|
260
|
+
{
|
261
|
+
ignoreArrowShorthand: true,
|
262
|
+
ignoreVoidOperator: true,
|
263
|
+
},
|
264
|
+
],
|
235
265
|
"@typescript-eslint/no-duplicate-enum-values": ERROR,
|
236
|
-
"@typescript-eslint/no-duplicate-type-constituents": [
|
266
|
+
"@typescript-eslint/no-duplicate-type-constituents": [
|
267
|
+
ERROR,
|
268
|
+
{
|
269
|
+
ignoreIntersections: false,
|
270
|
+
ignoreUnions: false,
|
271
|
+
},
|
272
|
+
],
|
237
273
|
"@typescript-eslint/no-dynamic-delete": ERROR,
|
238
274
|
"@typescript-eslint/no-empty-object-type": [
|
239
275
|
ERROR,
|
240
276
|
{
|
241
277
|
// allowWithName: /regex/,
|
242
|
-
allowInterfaces:
|
243
|
-
allowObjectTypes:
|
278
|
+
allowInterfaces: Never,
|
279
|
+
allowObjectTypes: Never,
|
280
|
+
},
|
281
|
+
],
|
282
|
+
"@typescript-eslint/no-explicit-any": [
|
283
|
+
ERROR,
|
284
|
+
{
|
285
|
+
fixToUnknown: true,
|
286
|
+
ignoreRestArgs: false,
|
244
287
|
},
|
245
288
|
],
|
246
|
-
"@typescript-eslint/no-explicit-any": [ERROR, { fixToUnknown: true, ignoreRestArgs: false }],
|
247
289
|
"@typescript-eslint/no-extra-non-null-assertion": ERROR,
|
248
290
|
"@typescript-eslint/no-extraneous-class": [
|
249
291
|
ERROR,
|
@@ -254,12 +296,36 @@ export default [
|
|
254
296
|
allowWithDecorator: false,
|
255
297
|
},
|
256
298
|
],
|
257
|
-
"@typescript-eslint/no-floating-promises": [
|
299
|
+
"@typescript-eslint/no-floating-promises": [
|
300
|
+
ERROR,
|
301
|
+
{
|
302
|
+
checkThenables: true,
|
303
|
+
ignoreVoid: true,
|
304
|
+
ignoreIIFE: false,
|
305
|
+
},
|
306
|
+
],
|
258
307
|
"@typescript-eslint/no-for-in-array": ERROR,
|
259
308
|
"@typescript-eslint/no-import-type-side-effects": ERROR,
|
260
|
-
"@typescript-eslint/no-inferrable-types": [
|
261
|
-
|
262
|
-
|
309
|
+
"@typescript-eslint/no-inferrable-types": [
|
310
|
+
ERROR,
|
311
|
+
{
|
312
|
+
ignoreParameters: false,
|
313
|
+
ignoreProperties: false,
|
314
|
+
},
|
315
|
+
],
|
316
|
+
"@typescript-eslint/no-invalid-void-type": [
|
317
|
+
ERROR,
|
318
|
+
{
|
319
|
+
allowInGenericTypeArguments: true,
|
320
|
+
allowAsThisParameter: false,
|
321
|
+
},
|
322
|
+
],
|
323
|
+
"@typescript-eslint/no-meaningless-void-operator": [
|
324
|
+
ERROR,
|
325
|
+
{
|
326
|
+
checkNever: true,
|
327
|
+
},
|
328
|
+
],
|
263
329
|
"@typescript-eslint/no-misused-new": ERROR,
|
264
330
|
"@typescript-eslint/no-misused-promises": [
|
265
331
|
ERROR,
|
@@ -281,15 +347,43 @@ export default [
|
|
281
347
|
"@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
|
282
348
|
"@typescript-eslint/no-non-null-assertion": ERROR,
|
283
349
|
"@typescript-eslint/no-redundant-type-constituents": ERROR,
|
284
|
-
"@typescript-eslint/no-restricted-types": OFF
|
285
|
-
"@typescript-eslint/no-require-imports": [
|
286
|
-
|
287
|
-
|
288
|
-
|
350
|
+
"@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban*/,
|
351
|
+
"@typescript-eslint/no-require-imports": [
|
352
|
+
ERROR,
|
353
|
+
{
|
354
|
+
allow: [],
|
355
|
+
},
|
356
|
+
],
|
357
|
+
"@typescript-eslint/no-this-alias": [
|
358
|
+
ERROR,
|
359
|
+
{
|
360
|
+
allowDestructuring: true,
|
361
|
+
allowedNames: [],
|
362
|
+
},
|
363
|
+
],
|
364
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
365
|
+
ERROR,
|
366
|
+
{
|
367
|
+
allowComparingNullableBooleansToTrue: true,
|
368
|
+
allowComparingNullableBooleansToFalse: true,
|
369
|
+
},
|
370
|
+
],
|
371
|
+
"@typescript-eslint/no-unnecessary-condition": [
|
372
|
+
ERROR,
|
373
|
+
{
|
374
|
+
allowConstantLoopConditions: false,
|
375
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
376
|
+
},
|
377
|
+
],
|
289
378
|
"@typescript-eslint/no-unnecessary-qualifier": ERROR,
|
290
379
|
"@typescript-eslint/no-unnecessary-template-expression": ERROR,
|
291
380
|
"@typescript-eslint/no-unnecessary-type-arguments": ERROR,
|
292
|
-
"@typescript-eslint/no-unnecessary-type-assertion": [
|
381
|
+
"@typescript-eslint/no-unnecessary-type-assertion": [
|
382
|
+
ERROR,
|
383
|
+
{
|
384
|
+
typesToIgnore: [],
|
385
|
+
},
|
386
|
+
],
|
293
387
|
"@typescript-eslint/no-unnecessary-type-constraint": ERROR,
|
294
388
|
"@typescript-eslint/no-unnecessary-type-parameters": ERROR,
|
295
389
|
"@typescript-eslint/no-unsafe-argument": ERROR,
|
@@ -304,14 +398,24 @@ export default [
|
|
304
398
|
"@typescript-eslint/no-useless-empty-export": ERROR,
|
305
399
|
"@typescript-eslint/no-wrapper-object-types": ERROR,
|
306
400
|
"@typescript-eslint/non-nullable-type-assertion-style": OFF,
|
307
|
-
"@typescript-eslint/parameter-properties": [
|
401
|
+
"@typescript-eslint/parameter-properties": [
|
402
|
+
ERROR,
|
403
|
+
{
|
404
|
+
prefer: "parameter-property" /* "parameter-property" | "class-property" */,
|
405
|
+
},
|
406
|
+
],
|
308
407
|
"@typescript-eslint/prefer-as-const": ERROR,
|
309
408
|
"@typescript-eslint/prefer-enum-initializers": ERROR,
|
310
409
|
"@typescript-eslint/prefer-find": ERROR,
|
311
410
|
"@typescript-eslint/prefer-for-of": ERROR,
|
312
411
|
"@typescript-eslint/prefer-function-type": ERROR,
|
313
412
|
"@typescript-eslint/prefer-includes": ERROR,
|
314
|
-
"@typescript-eslint/prefer-literal-enum-member": [
|
413
|
+
"@typescript-eslint/prefer-literal-enum-member": [
|
414
|
+
ERROR,
|
415
|
+
{
|
416
|
+
allowBitwiseExpressions: false,
|
417
|
+
},
|
418
|
+
],
|
315
419
|
"@typescript-eslint/prefer-namespace-keyword": ERROR,
|
316
420
|
"@typescript-eslint/prefer-nullish-coalescing": [
|
317
421
|
ERROR,
|
@@ -341,12 +445,22 @@ export default [
|
|
341
445
|
requireNullish: false,
|
342
446
|
},
|
343
447
|
],
|
344
|
-
"@typescript-eslint/prefer-readonly": [
|
345
|
-
|
448
|
+
"@typescript-eslint/prefer-readonly": [
|
449
|
+
ERROR,
|
450
|
+
{
|
451
|
+
onlyInlineLambdas: false,
|
452
|
+
},
|
453
|
+
],
|
454
|
+
"@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
346
455
|
"@typescript-eslint/prefer-reduce-type-parameter": ERROR,
|
347
456
|
"@typescript-eslint/prefer-regexp-exec": ERROR,
|
348
457
|
"@typescript-eslint/prefer-return-this-type": ERROR,
|
349
|
-
"@typescript-eslint/prefer-string-starts-ends-with": [
|
458
|
+
"@typescript-eslint/prefer-string-starts-ends-with": [
|
459
|
+
ERROR,
|
460
|
+
{
|
461
|
+
allowSingleElementEquality: Never,
|
462
|
+
},
|
463
|
+
],
|
350
464
|
"@typescript-eslint/promise-function-async": [
|
351
465
|
ERROR,
|
352
466
|
{
|
@@ -358,7 +472,12 @@ export default [
|
|
358
472
|
checkMethodDeclarations: true,
|
359
473
|
},
|
360
474
|
],
|
361
|
-
"@typescript-eslint/require-array-sort-compare": [
|
475
|
+
"@typescript-eslint/require-array-sort-compare": [
|
476
|
+
ERROR,
|
477
|
+
{
|
478
|
+
ignoreStringArrays: true,
|
479
|
+
},
|
480
|
+
],
|
362
481
|
"@typescript-eslint/restrict-plus-operands": [
|
363
482
|
ERROR,
|
364
483
|
{
|
@@ -382,7 +501,7 @@ export default [
|
|
382
501
|
allowRegExp: false,
|
383
502
|
}, /* investigate: make stricter */
|
384
503
|
],
|
385
|
-
"@typescript-eslint/return-await": [ERROR, "in-try-catch"]
|
504
|
+
"@typescript-eslint/return-await": [ERROR, "in-try-catch"] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
386
505
|
"@typescript-eslint/strict-boolean-expressions": [
|
387
506
|
ERROR,
|
388
507
|
{
|
@@ -397,11 +516,34 @@ export default [
|
|
397
516
|
allowNullableString: false,
|
398
517
|
},
|
399
518
|
], /* requires tsconfig: strictNullChecks */
|
400
|
-
"@typescript-eslint/switch-exhaustiveness-check": [
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
519
|
+
"@typescript-eslint/switch-exhaustiveness-check": [
|
520
|
+
ERROR,
|
521
|
+
{
|
522
|
+
allowDefaultCaseForExhaustiveSwitch: false,
|
523
|
+
requireDefaultForNonUnion: true,
|
524
|
+
},
|
525
|
+
],
|
526
|
+
"@typescript-eslint/triple-slash-reference": [
|
527
|
+
ERROR,
|
528
|
+
{
|
529
|
+
lib: Never /** always | never */,
|
530
|
+
path: Never /** always | never */,
|
531
|
+
types: Never /** always | never | prefer-import */,
|
532
|
+
},
|
533
|
+
],
|
534
|
+
"@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
535
|
+
"@typescript-eslint/unbound-method": [
|
536
|
+
ERROR,
|
537
|
+
{
|
538
|
+
ignoreStatic: false,
|
539
|
+
},
|
540
|
+
],
|
541
|
+
"@typescript-eslint/unified-signatures": [
|
542
|
+
ERROR,
|
543
|
+
{
|
544
|
+
ignoreDifferentlyNamedParameters: false,
|
545
|
+
},
|
546
|
+
],
|
405
547
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
|
406
548
|
},
|
407
|
-
] as const
|
549
|
+
] as const;
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import {
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
3
|
+
const
|
4
|
+
{ ERROR, OFF } = level,
|
5
|
+
{ Always, All } = state;
|
4
6
|
|
5
7
|
export default [
|
6
|
-
|
8
|
+
enable_x,
|
7
9
|
{
|
8
|
-
|
9
|
-
|
10
|
-
"@typescript-eslint/
|
11
|
-
"@typescript-eslint/consistent-return": OFF, /* tsconfig: noImplicitReturns */
|
10
|
+
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
11
|
+
"@typescript-eslint/class-methods-use-this": OFF /* preference -- eslint:off */,
|
12
|
+
"@typescript-eslint/consistent-return": OFF /* tsconfig: noImplicitReturns */,
|
12
13
|
"@typescript-eslint/default-param-last": ERROR,
|
13
14
|
"@typescript-eslint/dot-notation": [
|
14
15
|
ERROR,
|
@@ -23,7 +24,7 @@ export default [
|
|
23
24
|
],
|
24
25
|
"@typescript-eslint/init-declarations": [
|
25
26
|
ERROR,
|
26
|
-
|
27
|
+
Always,
|
27
28
|
],
|
28
29
|
"@typescript-eslint/max-params": OFF /* preference */,
|
29
30
|
"@typescript-eslint/no-array-constructor": ERROR,
|
@@ -44,8 +45,8 @@ export default [
|
|
44
45
|
"@typescript-eslint/no-loop-func": ERROR,
|
45
46
|
"@typescript-eslint/no-magic-numbers": OFF,
|
46
47
|
"@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
47
|
-
"@typescript-eslint/no-restricted-imports": OFF
|
48
|
-
"@typescript-eslint/no-shadow": OFF
|
48
|
+
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
49
|
+
"@typescript-eslint/no-shadow": OFF /* investigate */,
|
49
50
|
"@typescript-eslint/no-unused-expressions": [
|
50
51
|
ERROR,
|
51
52
|
{
|
@@ -58,9 +59,9 @@ export default [
|
|
58
59
|
"@typescript-eslint/no-unused-vars": [
|
59
60
|
ERROR,
|
60
61
|
{
|
61
|
-
vars:
|
62
|
-
args:
|
63
|
-
caughtErrors:
|
62
|
+
vars: All,
|
63
|
+
args: All,
|
64
|
+
caughtErrors: All,
|
64
65
|
ignoreRestSiblings: false,
|
65
66
|
ignoreClassWithStaticInitBlock: false,
|
66
67
|
reportUsedIgnorePattern: true,
|
@@ -74,14 +75,41 @@ export default [
|
|
74
75
|
variables: true,
|
75
76
|
allowNamedExports: false,
|
76
77
|
enums: true,
|
77
|
-
typedefs: false
|
78
|
+
typedefs: false /* changed 14.2.2 (still questionable) */,
|
78
79
|
ignoreTypeReferences: true,
|
79
80
|
},
|
80
81
|
],
|
81
82
|
"@typescript-eslint/no-useless-constructor": ERROR,
|
82
|
-
"@typescript-eslint/only-throw-error": [
|
83
|
-
|
84
|
-
|
83
|
+
"@typescript-eslint/only-throw-error": [
|
84
|
+
ERROR,
|
85
|
+
{
|
86
|
+
allowThrowingAny: false,
|
87
|
+
allowThrowingUnknown: false,
|
88
|
+
},
|
89
|
+
],
|
90
|
+
"@typescript-eslint/prefer-destructuring": [
|
91
|
+
ERROR,
|
92
|
+
{
|
93
|
+
VariableDeclarator: {
|
94
|
+
array: true,
|
95
|
+
object: true,
|
96
|
+
},
|
97
|
+
AssignmentExpression: {
|
98
|
+
array: false,
|
99
|
+
object: false,
|
100
|
+
},
|
101
|
+
},
|
102
|
+
{
|
103
|
+
enforceForRenamedProperties: false,
|
104
|
+
enforceForDeclarationWithTypeAnnotation: false,
|
105
|
+
},
|
106
|
+
],
|
107
|
+
"@typescript-eslint/prefer-promise-reject-errors": [
|
108
|
+
ERROR,
|
109
|
+
{
|
110
|
+
allowEmptyReject: false,
|
111
|
+
},
|
112
|
+
],
|
85
113
|
"@typescript-eslint/require-await": ERROR,
|
86
114
|
},
|
87
|
-
] as const
|
115
|
+
] as const;
|
package/src/rules/ts.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import Js from "./js.js";
|
2
|
+
import DisableCompiler from "./ts/disable.js";
|
3
|
+
import DisableX from "./ts/disable_x.js";
|
4
|
+
import EnableX from "./ts/enable_x.js";
|
5
|
+
import Enable from "./ts/enable.js";
|
6
|
+
|
7
|
+
export default [
|
8
|
+
...Js,
|
9
|
+
DisableCompiler,
|
10
|
+
DisableX,
|
11
|
+
EnableX,
|
12
|
+
Enable,
|
13
|
+
] as const;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ ERROR, OFF } = level,
|
5
|
+
{ Never, Always, Double } = state;
|
6
|
+
|
7
|
+
export default [
|
8
|
+
enable,
|
9
|
+
{
|
10
|
+
// https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
|
11
|
+
"yml/block-mapping-colon-indicator-newline": [ERROR, Never],
|
12
|
+
"yml/block-mapping-question-indicator-newline": [ERROR, Never],
|
13
|
+
"yml/block-mapping": [
|
14
|
+
ERROR,
|
15
|
+
{
|
16
|
+
singleline: Never,
|
17
|
+
multiline: Always,
|
18
|
+
},
|
19
|
+
],
|
20
|
+
"yml/block-sequence-hyphen-indicator-newline": [
|
21
|
+
ERROR,
|
22
|
+
Never,
|
23
|
+
{
|
24
|
+
nestedHyphen: Always,
|
25
|
+
blockMapping: Never,
|
26
|
+
},
|
27
|
+
],
|
28
|
+
"yml/block-sequence": [
|
29
|
+
ERROR,
|
30
|
+
{
|
31
|
+
singleline: Always,
|
32
|
+
multiline: Always,
|
33
|
+
},
|
34
|
+
],
|
35
|
+
"yml/file-extension": OFF,
|
36
|
+
"yml/indent": [
|
37
|
+
ERROR,
|
38
|
+
2,
|
39
|
+
{
|
40
|
+
indentBlockSequences: true,
|
41
|
+
indicatorValueIndent: 2,
|
42
|
+
},
|
43
|
+
],
|
44
|
+
"yml/key-name-casing": OFF,
|
45
|
+
"yml/no-empty-document": ERROR,
|
46
|
+
"yml/no-empty-key": ERROR,
|
47
|
+
"yml/no-empty-mapping-value": ERROR,
|
48
|
+
"yml/no-empty-sequence-entry": ERROR,
|
49
|
+
"yml/no-tab-indent": ERROR,
|
50
|
+
"yml/no-trailing-zeros": ERROR,
|
51
|
+
"yml/plain-scalar": [ERROR, Always],
|
52
|
+
"yml/quotes": [
|
53
|
+
ERROR,
|
54
|
+
{
|
55
|
+
prefer: Double,
|
56
|
+
avoidEscape: true,
|
57
|
+
},
|
58
|
+
],
|
59
|
+
"yml/require-string-key": ERROR,
|
60
|
+
"yml/sort-keys": OFF,
|
61
|
+
"yml/sort-sequence-values": OFF,
|
62
|
+
"yml/vue-custom-block/no-parsing-error": ERROR,
|
63
|
+
},
|
64
|
+
] as const;
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ ERROR } = level,
|
5
|
+
{ Never, Always, Strict } = state;
|
6
|
+
|
7
|
+
export default [
|
8
|
+
enable_x,
|
9
|
+
{
|
10
|
+
// https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
|
11
|
+
"yml/flow-mapping-curly-newline": [
|
12
|
+
ERROR,
|
13
|
+
{
|
14
|
+
consistent: false,
|
15
|
+
multiline: true,
|
16
|
+
minProperties: 2,
|
17
|
+
},
|
18
|
+
],
|
19
|
+
"yml/flow-mapping-curly-spacing": [
|
20
|
+
ERROR,
|
21
|
+
Always,
|
22
|
+
{
|
23
|
+
arraysInObjects: true,
|
24
|
+
objectsInObjects: true,
|
25
|
+
},
|
26
|
+
],
|
27
|
+
"yml/flow-sequence-bracket-newline": [
|
28
|
+
ERROR,
|
29
|
+
{
|
30
|
+
multiline: true,
|
31
|
+
minItems: null,
|
32
|
+
},
|
33
|
+
],
|
34
|
+
"yml/flow-sequence-bracket-spacing": [
|
35
|
+
ERROR,
|
36
|
+
Never,
|
37
|
+
{
|
38
|
+
singleValue: false,
|
39
|
+
objectsInArrays: false,
|
40
|
+
arraysInArrays: false,
|
41
|
+
},
|
42
|
+
],
|
43
|
+
"yml/key-spacing": [
|
44
|
+
ERROR,
|
45
|
+
{
|
46
|
+
beforeColon: false,
|
47
|
+
afterColon: true,
|
48
|
+
mode: Strict,
|
49
|
+
},
|
50
|
+
],
|
51
|
+
"yml/no-irregular-whitespace": [
|
52
|
+
ERROR,
|
53
|
+
{
|
54
|
+
skipQuotedScalars: true,
|
55
|
+
skipComments: false,
|
56
|
+
},
|
57
|
+
],
|
58
|
+
"yml/no-multiple-empty-lines": [
|
59
|
+
ERROR,
|
60
|
+
{
|
61
|
+
max: 1,
|
62
|
+
maxEOF: 1,
|
63
|
+
maxBOF: 0,
|
64
|
+
},
|
65
|
+
],
|
66
|
+
"yml/spaced-comment": [ERROR, Always],
|
67
|
+
},
|
68
|
+
] as const;
|
package/src/rules/yml.ts
ADDED
package/src/rules.ts
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Core } from "@eslinted/core";
|
2
|
+
import js from "./rules/js.js";
|
3
|
+
import ts from "./rules/ts.js";
|
4
|
+
import svelte from "./rules/svelte.js";
|
5
|
+
import mocha from "./rules/mocha.js";
|
6
|
+
import html from "./rules/html.js";
|
7
|
+
import json from "./rules/json.js";
|
8
|
+
import jsonc from "./rules/jsonc.js";
|
9
|
+
import yml from "./rules/yml.js";
|
10
|
+
import md from "./rules/md.js";
|
11
|
+
|
12
|
+
export default {
|
13
|
+
js,
|
14
|
+
ts,
|
15
|
+
svelte,
|
16
|
+
mocha,
|
17
|
+
html,
|
18
|
+
json,
|
19
|
+
jsonc,
|
20
|
+
yml,
|
21
|
+
md,
|
22
|
+
} as const satisfies Core.Input.Rules.Base;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/html/index.ts"],"names":[],"mappings":";AAAA,wBAA0C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/html/index.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,eAAe,CAAU,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/js/index.ts"],"names":[],"mappings":";AAAA,wBAA2C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/js/index.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,gBAAgB,CAAU,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/json/index.ts"],"names":[],"mappings":";AAAA,wBAAsC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/json/index.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,WAAW,CAAU,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/jsonc/index.ts"],"names":[],"mappings":";AAAA,wBAGW"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/jsonc/index.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY;IACZ,kBAAkB;CACV,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/md/index.ts"],"names":[],"mappings":";AAAA,wBAA2B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/md/index.ts"],"names":[],"mappings":"AAAA,eAAe,EAAW,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/files/mocha/index.ts"],"names":[],"mappings":";AAAA,wBAA2B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/files/mocha/index.ts"],"names":[],"mappings":"AAAA,eAAe,EAAW,CAAC"}
|