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
@@ -0,0 +1,16 @@
|
|
1
|
+
import { override, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR, OFF } = level,
|
4
|
+
{ AlwaysMultiline } = state;
|
5
|
+
|
6
|
+
export default [
|
7
|
+
override,
|
8
|
+
{
|
9
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
10
|
+
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
11
|
+
"jsonc/comma-dangle": [
|
12
|
+
ERROR,
|
13
|
+
AlwaysMultiline,
|
14
|
+
] /* trailing commas ARE allowed in JSONC */,
|
15
|
+
},
|
16
|
+
] as const;
|
package/src/rules/md.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { recommended } from "../_strings.js";
|
2
|
+
import mocha from "eslint-plugin-mocha";
|
3
|
+
|
4
|
+
// REMOVE shared config once manually configured
|
5
|
+
export default [
|
6
|
+
recommended,
|
7
|
+
(mocha.configs.flat.recommended as Record<"rules", Record<string, "off">>)
|
8
|
+
.rules,
|
9
|
+
] as const;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
disable,
|
5
|
+
{
|
6
|
+
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
7
|
+
"no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
|
8
|
+
},
|
9
|
+
] as const;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
"disable-js",
|
5
|
+
{
|
6
|
+
// Recommended by Svelte base config
|
7
|
+
// http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
|
8
|
+
"no-inner-declarations": OFF /* ESLint Core */,
|
9
|
+
"no-self-assign": OFF /* ESLint Core */,
|
10
|
+
},
|
11
|
+
] as const;
|
@@ -1,18 +1,16 @@
|
|
1
|
-
import {
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
},
|
12
|
-
} = Strings;
|
3
|
+
const
|
4
|
+
{ ERROR, OFF } = level,
|
5
|
+
{
|
6
|
+
Never,
|
7
|
+
Always,
|
8
|
+
Below,
|
9
|
+
Double,
|
10
|
+
} = state;
|
13
11
|
|
14
12
|
export default [
|
15
|
-
|
13
|
+
enable,
|
16
14
|
{
|
17
15
|
// #region Possible Errors
|
18
16
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
|
@@ -26,13 +24,28 @@ export default [
|
|
26
24
|
"svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
|
27
25
|
"svelte/no-not-function-handler": ERROR,
|
28
26
|
"svelte/no-object-in-text-mustaches": ERROR,
|
29
|
-
"svelte/no-reactive-reassign": [
|
27
|
+
"svelte/no-reactive-reassign": [
|
28
|
+
ERROR,
|
29
|
+
{
|
30
|
+
props: true,
|
31
|
+
},
|
32
|
+
],
|
30
33
|
"svelte/no-shorthand-style-property-overrides": ERROR,
|
31
34
|
"svelte/no-store-async": ERROR,
|
32
|
-
"svelte/no-unknown-style-directive-property": [
|
35
|
+
"svelte/no-unknown-style-directive-property": [
|
36
|
+
ERROR,
|
37
|
+
{
|
38
|
+
ignorePrefixed: true,
|
39
|
+
},
|
40
|
+
],
|
33
41
|
"svelte/require-store-callbacks-use-set-param": ERROR,
|
34
42
|
"svelte/require-store-reactive-access": ERROR,
|
35
|
-
"svelte/valid-compile": [
|
43
|
+
"svelte/valid-compile": [
|
44
|
+
ERROR,
|
45
|
+
{
|
46
|
+
ignoreWarnings: false,
|
47
|
+
},
|
48
|
+
],
|
36
49
|
"svelte/valid-prop-names-in-kit-pages": ERROR,
|
37
50
|
|
38
51
|
// #endregion
|
@@ -40,7 +53,13 @@ export default [
|
|
40
53
|
// #region Security
|
41
54
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
|
42
55
|
"svelte/no-at-html-tags": ERROR,
|
43
|
-
"svelte/no-target-blank": [
|
56
|
+
"svelte/no-target-blank": [
|
57
|
+
ERROR,
|
58
|
+
{
|
59
|
+
allowReferrer: false,
|
60
|
+
enforceDynamicLinks: Always,
|
61
|
+
},
|
62
|
+
],
|
44
63
|
|
45
64
|
// #endregion
|
46
65
|
|
@@ -52,20 +71,41 @@ export default [
|
|
52
71
|
enforceScriptPresent: true,
|
53
72
|
enforceStylePresent: false,
|
54
73
|
script: ["ts"],
|
55
|
-
style: [
|
74
|
+
style: [
|
75
|
+
"css",
|
76
|
+
"scss",
|
77
|
+
],
|
56
78
|
},
|
57
79
|
], /* INVESTIGATE: */
|
58
|
-
"svelte/button-has-type": [
|
80
|
+
"svelte/button-has-type": [
|
81
|
+
ERROR,
|
82
|
+
{
|
83
|
+
button: true,
|
84
|
+
submit: true,
|
85
|
+
reset: true,
|
86
|
+
},
|
87
|
+
],
|
59
88
|
"svelte/no-at-debug-tags": ERROR,
|
60
89
|
"svelte/no-ignored-unsubscribe": ERROR,
|
61
90
|
"svelte/no-immutable-reactive-statements": ERROR,
|
62
|
-
"svelte/no-inline-styles": [
|
91
|
+
"svelte/no-inline-styles": [
|
92
|
+
ERROR,
|
93
|
+
{
|
94
|
+
allowTransitions: false,
|
95
|
+
},
|
96
|
+
],
|
63
97
|
"svelte/no-reactive-functions": ERROR,
|
64
98
|
"svelte/no-reactive-literals": ERROR,
|
65
99
|
"svelte/no-svelte-internal": ERROR,
|
66
100
|
"svelte/no-unused-class-name": ERROR, /* BUG: ESLint error if array empty */
|
67
101
|
"svelte/no-unused-svelte-ignore": ERROR,
|
68
|
-
"svelte/no-useless-mustaches": [
|
102
|
+
"svelte/no-useless-mustaches": [
|
103
|
+
ERROR,
|
104
|
+
{
|
105
|
+
ignoreIncludesComment: false,
|
106
|
+
ignoreStringEscape: false,
|
107
|
+
},
|
108
|
+
],
|
69
109
|
"svelte/prefer-destructured-store-props": ERROR,
|
70
110
|
"svelte/require-each-key": ERROR,
|
71
111
|
"svelte/require-event-dispatcher-types": ERROR,
|
@@ -78,38 +118,91 @@ export default [
|
|
78
118
|
// #region Style
|
79
119
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
|
80
120
|
"svelte/derived-has-same-inputs-outputs": ERROR,
|
81
|
-
"svelte/first-attribute-linebreak": [
|
82
|
-
|
83
|
-
|
121
|
+
"svelte/first-attribute-linebreak": [
|
122
|
+
ERROR,
|
123
|
+
{
|
124
|
+
multiline: Below,
|
125
|
+
singleline: Below,
|
126
|
+
},
|
127
|
+
],
|
128
|
+
"svelte/html-closing-bracket-spacing": [
|
129
|
+
ERROR,
|
130
|
+
{
|
131
|
+
startTag: Never,
|
132
|
+
endTag: Never,
|
133
|
+
selfClosingTag: Always,
|
134
|
+
},
|
135
|
+
],
|
136
|
+
"svelte/html-quotes": [
|
137
|
+
ERROR,
|
138
|
+
{
|
139
|
+
prefer: Double,
|
140
|
+
dynamic: {
|
141
|
+
quoted: false,
|
142
|
+
avoidInvalidUnquotedInHTML: true,
|
143
|
+
},
|
144
|
+
},
|
145
|
+
],
|
84
146
|
"svelte/html-self-closing": [
|
85
147
|
ERROR,
|
86
148
|
{
|
87
|
-
"void":
|
88
|
-
normal:
|
89
|
-
component:
|
90
|
-
svelte:
|
149
|
+
"void": Always /* or NEVER or "ignore" */,
|
150
|
+
normal: Always /* or NEVER or "ignore" */,
|
151
|
+
component: Always /* or NEVER or "ignore" */,
|
152
|
+
svelte: Always /* or NEVER or "ignore" */,
|
153
|
+
},
|
154
|
+
],
|
155
|
+
"svelte/indent": [
|
156
|
+
ERROR,
|
157
|
+
{
|
158
|
+
indent: 2,
|
159
|
+
switchCase: 1,
|
160
|
+
alignAttributesVertically: true,
|
161
|
+
},
|
162
|
+
],
|
163
|
+
"svelte/max-attributes-per-line": [
|
164
|
+
ERROR,
|
165
|
+
{
|
166
|
+
multiline: 1,
|
167
|
+
singleline: 1,
|
91
168
|
},
|
92
169
|
],
|
93
|
-
"svelte/indent": [ERROR, { indent: 2, switchCase: 1, alignAttributesVertically: true }],
|
94
|
-
"svelte/max-attributes-per-line": [ERROR, { multiline: 1, singleline: 1 }],
|
95
170
|
"svelte/mustache-spacing": [
|
96
171
|
ERROR,
|
97
172
|
{
|
98
|
-
textExpressions:
|
99
|
-
attributesAndProps:
|
100
|
-
directiveExpressions:
|
101
|
-
tags: {
|
173
|
+
textExpressions: Never /* or ALWAYS */,
|
174
|
+
attributesAndProps: Never /* or ALWAYS */,
|
175
|
+
directiveExpressions: Never /* or ALWAYS */,
|
176
|
+
tags: {
|
177
|
+
openingBrace: Never /* or ALWAYS */,
|
178
|
+
closingBrace: Never /* or ALWAYS or "always-after-expression" */,
|
179
|
+
},
|
102
180
|
},
|
103
181
|
],
|
104
182
|
"svelte/no-extra-reactive-curlies": ERROR,
|
105
183
|
"svelte/no-restricted-html-elements": OFF,
|
106
184
|
"svelte/no-spaces-around-equal-signs-in-attribute": ERROR,
|
107
|
-
"svelte/prefer-class-directive": [
|
185
|
+
"svelte/prefer-class-directive": [
|
186
|
+
ERROR,
|
187
|
+
{
|
188
|
+
prefer: "empty",
|
189
|
+
},
|
190
|
+
],
|
108
191
|
"svelte/prefer-style-directive": ERROR,
|
109
|
-
"svelte/shorthand-attribute": [
|
110
|
-
|
111
|
-
|
112
|
-
|
192
|
+
"svelte/shorthand-attribute": [
|
193
|
+
ERROR,
|
194
|
+
{
|
195
|
+
prefer: Always,
|
196
|
+
},
|
197
|
+
],
|
198
|
+
"svelte/shorthand-directive": [
|
199
|
+
ERROR,
|
200
|
+
{
|
201
|
+
prefer: Always,
|
202
|
+
},
|
203
|
+
],
|
204
|
+
"svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
205
|
+
"svelte/spaced-html-comment": [ERROR, Always],
|
113
206
|
|
114
207
|
// #endregion
|
115
208
|
|
@@ -121,10 +214,15 @@ export default [
|
|
121
214
|
|
122
215
|
// #region System (REQUIRED)
|
123
216
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
|
124
|
-
"svelte/comment-directive": [
|
217
|
+
"svelte/comment-directive": [
|
218
|
+
ERROR,
|
219
|
+
{
|
220
|
+
reportUnusedDisableDirectives: true,
|
221
|
+
},
|
222
|
+
],
|
125
223
|
"svelte/system": ERROR,
|
126
224
|
|
127
225
|
// #endregion
|
128
226
|
|
129
227
|
},
|
130
|
-
] as const
|
228
|
+
] as const;
|
@@ -0,0 +1,20 @@
|
|
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;
|
@@ -0,0 +1,15 @@
|
|
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,10 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const { Level: { OFF } } = Strings;
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
4
2
|
|
5
3
|
export default [
|
6
|
-
|
4
|
+
disable,
|
7
5
|
{
|
6
|
+
// Handled by TypeScript compiler
|
8
7
|
"constructor-super": OFF,
|
9
8
|
"no-const-assign": OFF,
|
10
9
|
"no-dupe-args": OFF,
|
@@ -20,4 +19,4 @@ export default [
|
|
20
19
|
"consistent-return": OFF,
|
21
20
|
"no-redeclare": OFF,
|
22
21
|
},
|
23
|
-
] as const
|
22
|
+
] as const;
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const { Id: { DisableX }, Level: { OFF } } = Strings;
|
1
|
+
import { disable_x, OFF } from "../_strings.js";
|
4
2
|
|
5
3
|
export default [
|
6
|
-
|
4
|
+
disable_x,
|
7
5
|
{
|
8
|
-
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
6
|
+
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
9
7
|
"class-methods-use-this": OFF,
|
10
8
|
"consistent-return": OFF,
|
11
9
|
"default-param-last": OFF,
|
@@ -31,4 +29,4 @@ export default [
|
|
31
29
|
"prefer-promise-reject-errors": OFF,
|
32
30
|
"require-await": OFF,
|
33
31
|
},
|
34
|
-
] as const
|
32
|
+
] as const;
|