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,288 +0,0 @@
|
|
1
|
-
import { Strings, type RuleEntry } from "../index.js";
|
2
|
-
|
3
|
-
const {
|
4
|
-
Id: { Enable },
|
5
|
-
Level: { ERROR, OFF },
|
6
|
-
State: {
|
7
|
-
NEVER,
|
8
|
-
ALWAYS,
|
9
|
-
AS_NEEDED,
|
10
|
-
CONSECUTIVE,
|
11
|
-
ALLOW,
|
12
|
-
ALL,
|
13
|
-
MULTI,
|
14
|
-
BOTH,
|
15
|
-
},
|
16
|
-
} = Strings;
|
17
|
-
|
18
|
-
export default [
|
19
|
-
Enable,
|
20
|
-
{
|
21
|
-
// #region Problems
|
22
|
-
// [ https://eslint.org/docs/latest/rules/#possible-problems ]
|
23
|
-
"array-callback-return": [ERROR, { allowImplicit: false, checkForEach: true, allowVoid: true }],
|
24
|
-
"constructor-super": ERROR, /* tsc */
|
25
|
-
"for-direction": ERROR,
|
26
|
-
"getter-return": [ERROR, { allowImplicit: false }], /* tsc */
|
27
|
-
"no-async-promise-executor": ERROR,
|
28
|
-
"no-await-in-loop": ERROR,
|
29
|
-
"no-class-assign": ERROR,
|
30
|
-
"no-compare-neg-zero": ERROR,
|
31
|
-
"no-cond-assign": [ERROR, ALWAYS],
|
32
|
-
"no-const-assign": ERROR, /* tsc */
|
33
|
-
"no-constant-binary-expression": ERROR,
|
34
|
-
"no-constant-condition": [ERROR, { checkLoops: true }], /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */
|
35
|
-
"no-constructor-return": ERROR,
|
36
|
-
"no-control-regex": ERROR,
|
37
|
-
"no-debugger": ERROR,
|
38
|
-
"no-dupe-args": ERROR, /* tsc */
|
39
|
-
"no-dupe-class-members": ERROR, /* tsc -- TSLint:off: tsc */
|
40
|
-
"no-dupe-else-if": ERROR,
|
41
|
-
"no-dupe-keys": ERROR, /* tsc */
|
42
|
-
"no-duplicate-case": ERROR,
|
43
|
-
"no-duplicate-imports": OFF, /* BUG: breaks separation of TS type-only imports from value imports */
|
44
|
-
"no-empty-character-class": ERROR,
|
45
|
-
"no-empty-pattern": [ERROR, { allowObjectPatternsAsParameters: false }],
|
46
|
-
"no-ex-assign": ERROR,
|
47
|
-
"no-fallthrough": [ERROR, { allowEmptyCase: true, reportUnusedFallthroughComment: true }],
|
48
|
-
"no-func-assign": ERROR, /* tsc */
|
49
|
-
"no-import-assign": ERROR, /* tsc (except Object.assign()) */
|
50
|
-
"no-inner-declarations": [ERROR, BOTH, { blockScopedFunctions: ALLOW }],
|
51
|
-
"no-invalid-regexp": [ERROR, { allowConstructorFlags: [] }],
|
52
|
-
"no-irregular-whitespace": [
|
53
|
-
ERROR,
|
54
|
-
{
|
55
|
-
skipStrings: true,
|
56
|
-
skipComments: true,
|
57
|
-
skipRegExps: true,
|
58
|
-
skipTemplates: true,
|
59
|
-
skipJSXText: true,
|
60
|
-
},
|
61
|
-
],
|
62
|
-
"no-loss-of-precision": ERROR, /* TSLint */
|
63
|
-
"no-misleading-character-class": ERROR,
|
64
|
-
"no-new-native-nonconstructor": ERROR,
|
65
|
-
"no-obj-calls": ERROR, /* tsc */
|
66
|
-
"no-promise-executor-return": [ERROR, { allowVoid: true }],
|
67
|
-
"no-prototype-builtins": ERROR,
|
68
|
-
"no-self-assign": [ERROR, { props: true }],
|
69
|
-
"no-self-compare": ERROR,
|
70
|
-
"no-setter-return": ERROR, /* tsc */
|
71
|
-
"no-sparse-arrays": ERROR,
|
72
|
-
"no-template-curly-in-string": ERROR,
|
73
|
-
"no-this-before-super": ERROR, /* tsc */
|
74
|
-
"no-undef": ERROR, /* tsc */
|
75
|
-
"no-unexpected-multiline": ERROR,
|
76
|
-
"no-unmodified-loop-condition": ERROR,
|
77
|
-
"no-unreachable": ERROR, /* tsc */
|
78
|
-
"no-unreachable-loop": [ERROR, { ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */ }],
|
79
|
-
"no-unsafe-finally": ERROR,
|
80
|
-
"no-unsafe-negation": [ERROR, { enforceForOrderingRelations: true }], /* tsc */
|
81
|
-
"no-unsafe-optional-chaining": [ERROR, { disallowArithmeticOperators: true }],
|
82
|
-
"no-unused-private-class-members": ERROR,
|
83
|
-
"no-unused-vars": [
|
84
|
-
ERROR,
|
85
|
-
{
|
86
|
-
vars: ALL,
|
87
|
-
args: ALL,
|
88
|
-
caughtErrors: ALL,
|
89
|
-
ignoreRestSiblings: false,
|
90
|
-
ignoreClassWithStaticInitBlock: false,
|
91
|
-
reportUsedIgnorePattern: true,
|
92
|
-
},
|
93
|
-
], /* TSLint */
|
94
|
-
"no-use-before-define": [
|
95
|
-
ERROR,
|
96
|
-
{
|
97
|
-
functions: true,
|
98
|
-
classes: true,
|
99
|
-
variables: true,
|
100
|
-
allowNamedExports: false,
|
101
|
-
},
|
102
|
-
], /* TSLint */
|
103
|
-
"no-useless-assignment": ERROR,
|
104
|
-
"no-useless-backreference": ERROR,
|
105
|
-
"require-atomic-updates": [ERROR, { allowProperties: false }],
|
106
|
-
"use-isnan": [ERROR, { enforceForSwitchCase: true, enforceForIndexOf: true }],
|
107
|
-
"valid-typeof": [ERROR, { requireStringLiterals: true }],
|
108
|
-
|
109
|
-
// #endregion
|
110
|
-
|
111
|
-
// #region Suggestions
|
112
|
-
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
113
|
-
"accessor-pairs": [ERROR, { setWithoutGet: true, getWithoutSet: false, enforceForClassMembers: true }],
|
114
|
-
"arrow-body-style": [ERROR, AS_NEEDED, { requireReturnForObjectLiteral: true }],
|
115
|
-
"block-scoped-var": ERROR,
|
116
|
-
camelcase: OFF, /* preference */
|
117
|
-
"capitalized-comments": OFF, /* preference */
|
118
|
-
"class-methods-use-this": OFF, /* preference -- TSLint */
|
119
|
-
complexity: OFF, /* preference */
|
120
|
-
"consistent-return": [ERROR, { treatUndefinedAsUnspecified: false }], /* tsc -- TSLint:off: tsconfig: noImplicitReturns */
|
121
|
-
"consistent-this": ERROR,
|
122
|
-
curly: [ERROR, MULTI],
|
123
|
-
"default-case": OFF, /* preference: don't care */
|
124
|
-
"default-case-last": ERROR,
|
125
|
-
"default-param-last": ERROR, /* TSLint */
|
126
|
-
"dot-notation": [ERROR, { allowKeywords: true }], /* TSLint */
|
127
|
-
eqeqeq: [ERROR, ALWAYS],
|
128
|
-
"func-name-matching": OFF, /* preference */
|
129
|
-
"func-names": OFF, /* preference */
|
130
|
-
"func-style": OFF, /* preference */
|
131
|
-
"grouped-accessor-pairs": OFF, /* preference -- BUG: requires adjacency, not as described in documentation */
|
132
|
-
"guard-for-in": OFF, /* preference - not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */
|
133
|
-
"id-denylist": OFF, /* preference */
|
134
|
-
"id-length": OFF, /* preference */
|
135
|
-
"id-match": OFF, /* preference */
|
136
|
-
"init-declarations": [ERROR, ALWAYS], /* TSLint */
|
137
|
-
"logical-assignment-operators": [ERROR, ALWAYS, { enforceForIfStatements: true }],
|
138
|
-
"max-classes-per-file": OFF, /* preference */
|
139
|
-
"max-depth": OFF, /* preference */
|
140
|
-
"max-lines": OFF, /* preference */
|
141
|
-
"max-lines-per-function": OFF, /* preference */
|
142
|
-
"max-nested-callbacks": OFF, /* preference */
|
143
|
-
"max-params": OFF, /* preference -- TSLint:off: preference */
|
144
|
-
"max-statements": OFF, /* preference */
|
145
|
-
"multiline-comment-style": OFF, /* preference */
|
146
|
-
"new-cap": OFF, /* preference -- breaks Scriptable */
|
147
|
-
"no-alert": ERROR,
|
148
|
-
"no-array-constructor": ERROR, /* TSLint */
|
149
|
-
"no-bitwise": [ERROR, { allow: [], int32Hint: true }],
|
150
|
-
"no-caller": ERROR,
|
151
|
-
"no-case-declarations": ERROR,
|
152
|
-
"no-console": OFF, /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */
|
153
|
-
"no-continue": ERROR,
|
154
|
-
"no-delete-var": ERROR,
|
155
|
-
"no-div-regex": ERROR,
|
156
|
-
"no-else-return": OFF, /* preference */
|
157
|
-
"no-empty": [ERROR, { allowEmptyCatch: false }],
|
158
|
-
"no-empty-function": [ERROR, { allow: ["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */ }], /* TSLint */
|
159
|
-
"no-empty-static-block": ERROR,
|
160
|
-
"no-eq-null": ERROR,
|
161
|
-
"no-eval": [ERROR, { allowIndirect: false }],
|
162
|
-
"no-extend-native": [ERROR, { exceptions: [] }],
|
163
|
-
"no-extra-bind": ERROR,
|
164
|
-
"no-extra-boolean-cast": [ERROR, { enforceForLogicalOperands: true }],
|
165
|
-
"no-extra-label": ERROR,
|
166
|
-
"no-global-assign": [ERROR, { exceptions: [] }],
|
167
|
-
"no-implicit-coercion": [
|
168
|
-
ERROR,
|
169
|
-
{
|
170
|
-
"boolean": true,
|
171
|
-
number: true,
|
172
|
-
string: true,
|
173
|
-
disallowTemplateShorthand: true,
|
174
|
-
allow: [], /** "~" | "!!" | "+" | "- -" | "-" | "*" */
|
175
|
-
},
|
176
|
-
],
|
177
|
-
"no-implicit-globals": OFF, /* investigate (breaks Scriptable? breaks Sveltekit?) */
|
178
|
-
"no-implied-eval": ERROR, /* TSLint */
|
179
|
-
"no-inline-comments": OFF, /* preference */
|
180
|
-
"no-invalid-this": [ERROR, { capIsConstructor: false }], /* TSLint:off: tsconfig: { strict, noImplicitThis } */
|
181
|
-
"no-iterator": ERROR,
|
182
|
-
"no-label-var": ERROR,
|
183
|
-
"no-lone-blocks": ERROR,
|
184
|
-
"no-lonely-if": OFF, /* preference */
|
185
|
-
"no-loop-func": ERROR, /* TSLint */
|
186
|
-
"no-magic-numbers": OFF, /* preference - breaks TypeScript number literals, even with most liberal exceptions */
|
187
|
-
"no-multi-assign": [ERROR, { ignoreNonDeclaration: false }],
|
188
|
-
"no-multi-str": ERROR,
|
189
|
-
"no-negated-condition": OFF, /* preference */
|
190
|
-
"no-nested-ternary": OFF, /* preference */
|
191
|
-
"no-new": ERROR,
|
192
|
-
"no-new-func": ERROR,
|
193
|
-
"no-new-wrappers": ERROR,
|
194
|
-
"no-nonoctal-decimal-escape": ERROR,
|
195
|
-
"no-object-constructor": ERROR,
|
196
|
-
"no-octal": ERROR,
|
197
|
-
"no-octal-escape": ERROR,
|
198
|
-
"no-param-reassign": [ERROR, { props: true, ignorePropertyModificationsFor: [], ignorePropertyModificationsForRegex: [] }],
|
199
|
-
"no-plusplus": [ERROR, { allowForLoopAfterthoughts: true }],
|
200
|
-
"no-proto": ERROR,
|
201
|
-
"no-redeclare": [ERROR, { builtinGlobals: true }], /* tsc -- TSLint:off: tsc (let, const, -var) */
|
202
|
-
"no-regex-spaces": OFF, /* preference */
|
203
|
-
"no-restricted-exports": OFF, /* preference */
|
204
|
-
"no-restricted-globals": OFF, /* preference */
|
205
|
-
"no-restricted-imports": OFF, /* preference -- TSLint:off */
|
206
|
-
"no-restricted-properties": OFF, /* preference */
|
207
|
-
"no-restricted-syntax": OFF, /* preference */
|
208
|
-
"no-return-assign": [ERROR, ALWAYS], /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */
|
209
|
-
"no-script-url": ERROR,
|
210
|
-
"no-sequences": [ERROR, { allowInParentheses: true }],
|
211
|
-
"no-shadow": OFF, /* investigate -- TSLint:off: investigate */
|
212
|
-
"no-shadow-restricted-names": ERROR,
|
213
|
-
"no-ternary": OFF, /* preference */
|
214
|
-
"no-throw-literal": ERROR, /* TSLint */
|
215
|
-
"no-undef-init": ERROR,
|
216
|
-
"no-undefined": OFF, /* investigate (breaks Scriptable? breaks Sveltekit?) */
|
217
|
-
"no-underscore-dangle": OFF, /* preference */
|
218
|
-
"no-unneeded-ternary": [ERROR, { defaultAssignment: false }],
|
219
|
-
"no-unused-expressions": [
|
220
|
-
ERROR,
|
221
|
-
{
|
222
|
-
allowShortCircuit: true,
|
223
|
-
allowTernary: true,
|
224
|
-
allowTaggedTemplates: true,
|
225
|
-
enforceForJSX: false,
|
226
|
-
},
|
227
|
-
], /* TSLint */
|
228
|
-
"no-unused-labels": ERROR,
|
229
|
-
"no-useless-call": ERROR,
|
230
|
-
"no-useless-catch": ERROR,
|
231
|
-
"no-useless-computed-key": [ERROR, { enforceForClassMembers: true }],
|
232
|
-
"no-useless-concat": ERROR,
|
233
|
-
"no-useless-constructor": ERROR, /* TSLint */
|
234
|
-
"no-useless-escape": ERROR,
|
235
|
-
"no-useless-rename": [ERROR, { ignoreImport: false, ignoreExport: false, ignoreDestructuring: false }],
|
236
|
-
"no-useless-return": ERROR,
|
237
|
-
"no-var": ERROR,
|
238
|
-
"no-void": [ERROR, { allowAsStatement: true }],
|
239
|
-
"no-warning-comments": OFF, /* preference */
|
240
|
-
"no-with": ERROR,
|
241
|
-
"object-shorthand": [ERROR, ALWAYS, { avoidQuotes: true, ignoreConstructors: false, avoidExplicitReturnArrows: false }],
|
242
|
-
"one-var": [
|
243
|
-
ERROR,
|
244
|
-
{
|
245
|
-
"var": CONSECUTIVE,
|
246
|
-
let: CONSECUTIVE,
|
247
|
-
"const": CONSECUTIVE,
|
248
|
-
separateRequires: true,
|
249
|
-
},
|
250
|
-
],
|
251
|
-
"operator-assignment": [ERROR, ALWAYS],
|
252
|
-
"prefer-arrow-callback": [ERROR, { allowNamedFunctions: false, allowUnboundThis: true }],
|
253
|
-
"prefer-const": [
|
254
|
-
ERROR,
|
255
|
-
{ destructuring: ALL, ignoreReadBeforeAssign: false },
|
256
|
-
],
|
257
|
-
"prefer-destructuring": [ERROR, { VariableDeclarator: { array: true, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: true }], /* TSLint */
|
258
|
-
"prefer-exponentiation-operator": ERROR,
|
259
|
-
"prefer-named-capture-group": OFF,
|
260
|
-
"prefer-numeric-literals": ERROR,
|
261
|
-
"prefer-object-has-own": ERROR,
|
262
|
-
"prefer-object-spread": ERROR,
|
263
|
-
"prefer-promise-reject-errors": [ERROR, { allowEmptyReject: false }],
|
264
|
-
"prefer-regex-literals": [ERROR, { disallowRedundantWrapping: true }], /* TSLint */
|
265
|
-
"prefer-rest-params": ERROR,
|
266
|
-
"prefer-spread": ERROR,
|
267
|
-
"prefer-template": ERROR,
|
268
|
-
radix: [ERROR, AS_NEEDED],
|
269
|
-
"require-await": ERROR, /* TSLint */
|
270
|
-
"require-unicode-regexp": ERROR,
|
271
|
-
"require-yield": ERROR,
|
272
|
-
"sort-imports": OFF, /* preference */
|
273
|
-
"sort-keys": OFF, /* preference */
|
274
|
-
"sort-vars": OFF, /* preference */
|
275
|
-
strict: OFF, /* preference */
|
276
|
-
"symbol-description": OFF, /* preference */
|
277
|
-
"vars-on-top": ERROR,
|
278
|
-
yoda: [ERROR, NEVER, { exceptRange: false, onlyEquality: false }],
|
279
|
-
|
280
|
-
// #endregion
|
281
|
-
|
282
|
-
// #region Layout & Formatting
|
283
|
-
// [ https://eslint.org/docs/latest/rules/#layout--formatting ]
|
284
|
-
"unicode-bom": OFF, /* preference: don't care */
|
285
|
-
|
286
|
-
// #endregion
|
287
|
-
},
|
288
|
-
] as const satisfies RuleEntry;
|
@@ -1,295 +0,0 @@
|
|
1
|
-
import { Strings, type RuleEntry } from "../index.js";
|
2
|
-
|
3
|
-
const {
|
4
|
-
Id: { Stylistic },
|
5
|
-
Level: { ERROR, OFF },
|
6
|
-
State: {
|
7
|
-
NEVER,
|
8
|
-
ALWAYS,
|
9
|
-
ALWAYS_MULTILINE,
|
10
|
-
CONSISTENT,
|
11
|
-
AS_NEEDED,
|
12
|
-
STRICT,
|
13
|
-
ALL,
|
14
|
-
STAR,
|
15
|
-
LAST,
|
16
|
-
BEFORE,
|
17
|
-
AFTER,
|
18
|
-
BELOW,
|
19
|
-
BESIDE,
|
20
|
-
INSIDE,
|
21
|
-
DOUBLE,
|
22
|
-
},
|
23
|
-
} = Strings;
|
24
|
-
|
25
|
-
export default [
|
26
|
-
Stylistic,
|
27
|
-
{
|
28
|
-
// https://eslint.style/rules
|
29
|
-
"@stylistic/array-bracket-newline": [ERROR, { multiline: true, minItems: null }],
|
30
|
-
"@stylistic/array-bracket-spacing": [ERROR, NEVER, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
|
31
|
-
"@stylistic/array-element-newline": [
|
32
|
-
ERROR,
|
33
|
-
{
|
34
|
-
ArrayExpression: { consistent: true, multiline: true, minItems: 4 },
|
35
|
-
ArrayPattern: { consistent: true, multiline: true, minItems: 4 },
|
36
|
-
},
|
37
|
-
],
|
38
|
-
"@stylistic/arrow-parens": [ERROR, AS_NEEDED, { requireForBlockBody: false }],
|
39
|
-
"@stylistic/arrow-spacing": [ERROR, { before: true, after: true }],
|
40
|
-
"@stylistic/block-spacing": [ERROR, ALWAYS],
|
41
|
-
"@stylistic/brace-style": [ERROR, "stroustrup", { allowSingleLine: true }],
|
42
|
-
"@stylistic/comma-dangle": [ERROR, ALWAYS_MULTILINE],
|
43
|
-
"@stylistic/comma-spacing": [ERROR, { before: false, after: true }],
|
44
|
-
"@stylistic/comma-style": [
|
45
|
-
ERROR,
|
46
|
-
LAST,
|
47
|
-
{
|
48
|
-
exceptions: {
|
49
|
-
ArrayExpression: false,
|
50
|
-
ArrayPattern: false,
|
51
|
-
ArrowFunctionExpression: false,
|
52
|
-
CallExpression: false,
|
53
|
-
FunctionDeclaration: false,
|
54
|
-
FunctionExpression: false,
|
55
|
-
ImportDeclaration: false,
|
56
|
-
ObjectExpression: false,
|
57
|
-
ObjectPattern: false,
|
58
|
-
VariableDeclaration: false,
|
59
|
-
NewExpression: false,
|
60
|
-
},
|
61
|
-
},
|
62
|
-
],
|
63
|
-
"@stylistic/computed-property-spacing": [ERROR, NEVER, { enforceForClassMembers: true }],
|
64
|
-
"@stylistic/dot-location": [ERROR, "property"],
|
65
|
-
"@stylistic/eol-last": [ERROR, ALWAYS],
|
66
|
-
"@stylistic/function-call-argument-newline": [ERROR, CONSISTENT],
|
67
|
-
"@stylistic/function-call-spacing": [ERROR, NEVER],
|
68
|
-
|
69
|
-
"@stylistic/function-paren-newline": [ERROR, "multiline-arguments"], // BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290
|
70
|
-
"@stylistic/generator-star-spacing": [ERROR, { before: true, after: false }],
|
71
|
-
"@stylistic/implicit-arrow-linebreak": [ERROR, BESIDE],
|
72
|
-
"@stylistic/indent": [
|
73
|
-
ERROR,
|
74
|
-
2,
|
75
|
-
{
|
76
|
-
ignoredNodes: [],
|
77
|
-
SwitchCase: 1,
|
78
|
-
VariableDeclarator: { "var": 0, let: 0, "const": 0 },
|
79
|
-
outerIIFEBody: 0,
|
80
|
-
MemberExpression: 1,
|
81
|
-
FunctionDeclaration: { parameters: 1, body: 1 },
|
82
|
-
FunctionExpression: { parameters: 1, body: 1 },
|
83
|
-
StaticBlock: { body: 1 },
|
84
|
-
CallExpression: { arguments: 1 },
|
85
|
-
ArrayExpression: 1,
|
86
|
-
ObjectExpression: 1,
|
87
|
-
ImportDeclaration: 1,
|
88
|
-
flatTernaryExpressions: false,
|
89
|
-
offsetTernaryExpressions: true,
|
90
|
-
ignoreComments: false,
|
91
|
-
},
|
92
|
-
],
|
93
|
-
"@stylistic/indent-binary-ops": [ERROR, 2],
|
94
|
-
"@stylistic/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: STRICT }],
|
95
|
-
"@stylistic/keyword-spacing": [ERROR, { before: true, after: true, overrides: {} }],
|
96
|
-
"@stylistic/line-comment-position": OFF,
|
97
|
-
"@stylistic/lines-around-comment": [
|
98
|
-
ERROR,
|
99
|
-
{
|
100
|
-
beforeBlockComment: false,
|
101
|
-
afterBlockComment: false,
|
102
|
-
beforeLineComment: true,
|
103
|
-
afterLineComment: false,
|
104
|
-
allowBlockStart: true,
|
105
|
-
allowBlockEnd: true,
|
106
|
-
allowObjectStart: true,
|
107
|
-
allowObjectEnd: true,
|
108
|
-
allowArrayStart: true,
|
109
|
-
allowArrayEnd: true,
|
110
|
-
allowClassStart: true,
|
111
|
-
allowClassEnd: true,
|
112
|
-
applyDefaultIgnorePatterns: true,
|
113
|
-
afterHashbangComment: false,
|
114
|
-
|
115
|
-
/* TS-only */
|
116
|
-
allowEnumEnd: true,
|
117
|
-
allowEnumStart: true,
|
118
|
-
allowInterfaceEnd: true,
|
119
|
-
allowInterfaceStart: true,
|
120
|
-
allowModuleEnd: true,
|
121
|
-
allowModuleStart: true,
|
122
|
-
allowTypeEnd: true,
|
123
|
-
allowTypeStart: true,
|
124
|
-
},
|
125
|
-
],
|
126
|
-
"@stylistic/lines-between-class-members": [
|
127
|
-
ERROR,
|
128
|
-
{
|
129
|
-
enforce: [
|
130
|
-
{ blankLine: NEVER, prev: "field", next: "field" },
|
131
|
-
{ blankLine: ALWAYS, prev: "field", next: "method" },
|
132
|
-
{ blankLine: ALWAYS, prev: "method", next: STAR },
|
133
|
-
],
|
134
|
-
},
|
135
|
-
{ exceptAfterSingleLine: false, exceptAfterOverload: true /* TS-only */ },
|
136
|
-
],
|
137
|
-
"@stylistic/max-len": [
|
138
|
-
ERROR,
|
139
|
-
{
|
140
|
-
code: 150,
|
141
|
-
tabWidth: 2,
|
142
|
-
ignoreComments: true,
|
143
|
-
ignoreTrailingComments: true,
|
144
|
-
ignoreUrls: true,
|
145
|
-
ignoreStrings: true,
|
146
|
-
ignoreTemplateLiterals: true,
|
147
|
-
ignoreRegExpLiterals: true,
|
148
|
-
},
|
149
|
-
],
|
150
|
-
"@stylistic/max-statements-per-line": [ERROR, { max: 1 }],
|
151
|
-
"@stylistic/member-delimiter-style": [
|
152
|
-
ERROR,
|
153
|
-
{
|
154
|
-
multiline: { delimiter: "semi", requireLast: true },
|
155
|
-
singleline: { delimiter: "semi", requireLast: false },
|
156
|
-
multilineDetection: "brackets",
|
157
|
-
},
|
158
|
-
],
|
159
|
-
"@stylistic/multiline-comment-style": OFF,
|
160
|
-
"@stylistic/multiline-ternary": [ERROR, ALWAYS_MULTILINE],
|
161
|
-
"@stylistic/new-parens": [OFF, NEVER],
|
162
|
-
"@stylistic/newline-per-chained-call": [ERROR, { ignoreChainWithDepth: 2 }],
|
163
|
-
"@stylistic/no-confusing-arrow": OFF,
|
164
|
-
"@stylistic/no-extra-parens": [
|
165
|
-
ERROR,
|
166
|
-
ALL,
|
167
|
-
{
|
168
|
-
conditionalAssign: true,
|
169
|
-
returnAssign: true,
|
170
|
-
nestedBinaryExpressions: true,
|
171
|
-
ternaryOperandBinaryExpressions: true,
|
172
|
-
enforceForArrowConditionals: true,
|
173
|
-
enforceForSequenceExpressions: true,
|
174
|
-
enforceForNewInMemberExpressions: true,
|
175
|
-
enforceForFunctionPrototypeMethods: true,
|
176
|
-
},
|
177
|
-
],
|
178
|
-
"@stylistic/no-extra-semi": ERROR,
|
179
|
-
"@stylistic/no-floating-decimal": ERROR,
|
180
|
-
"@stylistic/no-mixed-operators": OFF,
|
181
|
-
"@stylistic/no-mixed-spaces-and-tabs": ERROR,
|
182
|
-
"@stylistic/no-multi-spaces": [ERROR, { ignoreEOLComments: false, exceptions: { Property: false }, includeTabs: true }],
|
183
|
-
"@stylistic/no-multiple-empty-lines": [ERROR, { max: 1, maxEOF: 1, maxBOF: 0 }],
|
184
|
-
"@stylistic/no-tabs": [ERROR, { allowIndentationTabs: false }],
|
185
|
-
"@stylistic/no-trailing-spaces": [ERROR, { skipBlankLines: false, ignoreComments: false }],
|
186
|
-
"@stylistic/no-whitespace-before-property": ERROR,
|
187
|
-
"@stylistic/nonblock-statement-body-position": [
|
188
|
-
ERROR,
|
189
|
-
BELOW,
|
190
|
-
{
|
191
|
-
overrides: {
|
192
|
-
"if": BELOW,
|
193
|
-
"else": BELOW,
|
194
|
-
"while": BELOW,
|
195
|
-
"do": BELOW,
|
196
|
-
"for": BELOW,
|
197
|
-
},
|
198
|
-
},
|
199
|
-
],
|
200
|
-
"@stylistic/object-curly-newline": [
|
201
|
-
ERROR,
|
202
|
-
{
|
203
|
-
ObjectExpression: { consistent: true, multiline: true, minProperties: 4 },
|
204
|
-
ObjectPattern: { consistent: true, multiline: true, minProperties: 4 },
|
205
|
-
ImportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
|
206
|
-
ExportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
|
207
|
-
},
|
208
|
-
],
|
209
|
-
"@stylistic/object-curly-spacing": [ERROR, ALWAYS, { arraysInObjects: true, objectsInObjects: true }],
|
210
|
-
"@stylistic/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: true }],
|
211
|
-
"@stylistic/one-var-declaration-per-line": [ERROR, ALWAYS],
|
212
|
-
"@stylistic/operator-linebreak": [ERROR, BEFORE, { overrides: { "=": AFTER } }],
|
213
|
-
"@stylistic/padded-blocks": [ERROR, { blocks: NEVER, classes: NEVER, switches: NEVER }, { allowSingleLineBlocks: true }],
|
214
|
-
"@stylistic/padding-line-between-statements": [
|
215
|
-
ERROR,
|
216
|
-
{ blankLine: ALWAYS, prev: "directive", next: STAR },
|
217
|
-
{ blankLine: NEVER, prev: "directive", next: "directive" },
|
218
|
-
{ blankLine: ALWAYS, prev: ["import", "cjs-import"], next: STAR },
|
219
|
-
{ blankLine: NEVER, prev: ["import", "cjs-import"], next: ["import", "cjs-import"] },
|
220
|
-
{
|
221
|
-
blankLine: ALWAYS,
|
222
|
-
prev: [
|
223
|
-
"class",
|
224
|
-
"interface",
|
225
|
-
"try",
|
226
|
-
"for",
|
227
|
-
"if",
|
228
|
-
"do",
|
229
|
-
"while",
|
230
|
-
"switch",
|
231
|
-
"block",
|
232
|
-
"block-like",
|
233
|
-
"iife",
|
234
|
-
"empty",
|
235
|
-
"debugger",
|
236
|
-
"with",
|
237
|
-
],
|
238
|
-
next: STAR,
|
239
|
-
},
|
240
|
-
{ blankLine: ALWAYS, prev: "case", next: STAR },
|
241
|
-
{ blankLine: ALWAYS, prev: "case", next: ["case", "default"] },
|
242
|
-
{ blankLine: ALWAYS, prev: "default", next: STAR },
|
243
|
-
{ blankLine: ALWAYS, prev: "type", next: STAR },
|
244
|
-
{ blankLine: NEVER, prev: "type", next: "type" },
|
245
|
-
{ blankLine: ALWAYS, prev: "function", next: STAR },
|
246
|
-
{ blankLine: ALWAYS, prev: "function-overload", next: STAR },
|
247
|
-
{ blankLine: NEVER, prev: "function-overload", next: "function-overload" },
|
248
|
-
{ blankLine: NEVER, prev: "function-overload", next: "function" },
|
249
|
-
{ blankLine: ALWAYS, prev: ["const", "let", "var"], next: STAR },
|
250
|
-
{ blankLine: NEVER, prev: ["const", "let", "var"], next: ["const", "let", "var"] },
|
251
|
-
{ blankLine: ALWAYS, prev: "expression", next: STAR },
|
252
|
-
{ blankLine: NEVER, prev: "expression", next: "expression" },
|
253
|
-
{
|
254
|
-
blankLine: ALWAYS,
|
255
|
-
prev: STAR,
|
256
|
-
next: [
|
257
|
-
"throw",
|
258
|
-
"return",
|
259
|
-
"break",
|
260
|
-
"continue",
|
261
|
-
],
|
262
|
-
},
|
263
|
-
{ blankLine: ALWAYS, prev: STAR, next: ["export", "cjs-export"] },
|
264
|
-
{ blankLine: NEVER, prev: ["export", "cjs-export"], next: ["export", "cjs-export"] },
|
265
|
-
],
|
266
|
-
"@stylistic/quote-props": [ERROR, AS_NEEDED, { keywords: true, unnecessary: true, numbers: false }],
|
267
|
-
"@stylistic/quotes": [ERROR, DOUBLE, { avoidEscape: true, allowTemplateLiterals: true }],
|
268
|
-
"@stylistic/rest-spread-spacing": [ERROR, NEVER],
|
269
|
-
"@stylistic/semi": [ERROR, ALWAYS, { omitLastInOneLineBlock: false, omitLastInOneLineClassBody: false }],
|
270
|
-
"@stylistic/semi-spacing": [ERROR, { before: false, after: true }],
|
271
|
-
"@stylistic/semi-style": [ERROR, LAST],
|
272
|
-
"@stylistic/space-before-blocks": [ERROR, { functions: ALWAYS, keywords: ALWAYS, classes: ALWAYS }],
|
273
|
-
"@stylistic/space-before-function-paren": [ERROR, { anonymous: ALWAYS, named: NEVER, asyncArrow: ALWAYS }],
|
274
|
-
"@stylistic/space-in-parens": [ERROR, NEVER],
|
275
|
-
"@stylistic/space-infix-ops": [ERROR, { int32Hint: true }],
|
276
|
-
"@stylistic/space-unary-ops": [ERROR, { words: true, nonwords: false, overrides: {} }],
|
277
|
-
"@stylistic/spaced-comment": [ERROR, ALWAYS],
|
278
|
-
"@stylistic/switch-colon-spacing": [ERROR, { after: true, before: false }],
|
279
|
-
"@stylistic/template-curly-spacing": [ERROR, NEVER],
|
280
|
-
"@stylistic/template-tag-spacing": [ERROR, NEVER],
|
281
|
-
"@stylistic/type-annotation-spacing": [
|
282
|
-
ERROR,
|
283
|
-
{
|
284
|
-
before: true,
|
285
|
-
after: true,
|
286
|
-
overrides: { colon: { before: false, after: true } },
|
287
|
-
} /* non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
|
288
|
-
],
|
289
|
-
"@stylistic/type-generic-spacing": ERROR,
|
290
|
-
"@stylistic/type-named-tuple-spacing": ERROR,
|
291
|
-
"@stylistic/wrap-iife": [ERROR, INSIDE, { functionPrototypeMethods: true }],
|
292
|
-
"@stylistic/wrap-regex": ERROR,
|
293
|
-
"@stylistic/yield-star-spacing": [ERROR, { before: false, after: true }],
|
294
|
-
},
|
295
|
-
] as const satisfies RuleEntry;
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { Strings, type RuleEntry } from "../index.js";
|
2
|
-
|
3
|
-
const {
|
4
|
-
Id: { EnableX },
|
5
|
-
Level: { ERROR },
|
6
|
-
State: {
|
7
|
-
NEVER,
|
8
|
-
ALWAYS,
|
9
|
-
CONSISTENT,
|
10
|
-
STRICT,
|
11
|
-
LAST,
|
12
|
-
DOUBLE,
|
13
|
-
},
|
14
|
-
} = Strings;
|
15
|
-
|
16
|
-
export default [
|
17
|
-
EnableX,
|
18
|
-
{
|
19
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
20
|
-
"jsonc/array-bracket-newline": [ERROR, CONSISTENT],
|
21
|
-
"jsonc/array-bracket-spacing": [ERROR, NEVER, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
|
22
|
-
"jsonc/array-element-newline": [ERROR, ALWAYS],
|
23
|
-
"jsonc/comma-dangle": [ERROR, NEVER], /* // trailing commas are NOT allowed in JSON */
|
24
|
-
"jsonc/comma-style": [ERROR, LAST],
|
25
|
-
"jsonc/indent": [ERROR, 2],
|
26
|
-
"jsonc/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: STRICT }],
|
27
|
-
"jsonc/no-dupe-keys": ERROR,
|
28
|
-
"jsonc/no-floating-decimal": ERROR,
|
29
|
-
"jsonc/no-irregular-whitespace": [
|
30
|
-
ERROR,
|
31
|
-
{
|
32
|
-
skipStrings: true,
|
33
|
-
skipComments: true,
|
34
|
-
skipRegExps: true,
|
35
|
-
skipTemplates: true,
|
36
|
-
skipJSXText: true,
|
37
|
-
},
|
38
|
-
],
|
39
|
-
"jsonc/no-multi-str": ERROR,
|
40
|
-
"jsonc/no-octal-escape": ERROR,
|
41
|
-
"jsonc/no-octal": ERROR,
|
42
|
-
"jsonc/no-sparse-arrays": ERROR,
|
43
|
-
"jsonc/no-useless-escape": ERROR,
|
44
|
-
"jsonc/object-curly-newline": [ERROR, { consistent: true, multiline: true, minProperties: 2 }],
|
45
|
-
"jsonc/object-curly-spacing": [ERROR, ALWAYS, { arraysInObjects: true, objectsInObjects: true }],
|
46
|
-
"jsonc/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: false }],
|
47
|
-
"jsonc/quote-props": [ERROR, ALWAYS],
|
48
|
-
"jsonc/quotes": [ERROR, DOUBLE, { avoidEscape: false }],
|
49
|
-
"jsonc/space-unary-ops": ERROR,
|
50
|
-
},
|
51
|
-
] as const satisfies RuleEntry;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { Strings, type RuleEntry } from "../index.js";
|
2
|
-
|
3
|
-
const { Id: { Override }, Level: { ERROR, OFF }, State: { ALWAYS_MULTILINE } } = Strings;
|
4
|
-
|
5
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
6
|
-
export default [Override, { "jsonc/no-comments": OFF /* comments are allowed in JSONC */, "jsonc/comma-dangle": [ERROR, ALWAYS_MULTILINE] /* trailing commas are allowed in JSONC */ }] as const satisfies RuleEntry;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { Strings, type RuleEntry } from "../index.js";
|
2
|
-
|
3
|
-
const { Id: { Enable }, Level: { ERROR, OFF } } = Strings;
|
4
|
-
|
5
|
-
export default [
|
6
|
-
Enable,
|
7
|
-
{
|
8
|
-
// Rules 1-50 supported by this shit plugin: https://gitlab.com/pawelbbdrozd/eslint-plugin-markdownlint/-/tree/main/lib/rules?ref_type=heads
|
9
|
-
// Rules 1-56 supported by this good plugin: https://github.com/DavidAnson/markdownlint/blob/main/doc/md001.md
|
10
|
-
"markdownlint/md003": [ERROR, { style: "atx" }],
|
11
|
-
"markdownlint/md004": [ERROR, { style: "dash" }],
|
12
|
-
"markdownlint/md009": [ERROR, { br_spaces: 0 }],
|
13
|
-
"markdownlint/md010": [ERROR, { spaces_per_tab: 2 }],
|
14
|
-
"markdownlint/md013": OFF,
|
15
|
-
"markdownlint/md029": [ERROR, { style: "one" }],
|
16
|
-
"markdownlint/md033": [ERROR, { allowed_elements: ["details", "summary"] }],
|
17
|
-
"markdownlint/md035": [ERROR, { style: "---" }],
|
18
|
-
"markdownlint/md046": [ERROR, { style: "fenced" }],
|
19
|
-
"markdownlint/md048": [ERROR, { style: "backtick" }],
|
20
|
-
"markdownlint/md049": [ERROR, { style: "underscore" }],
|
21
|
-
"markdownlint/md050": [ERROR, { style: "underscore" }],
|
22
|
-
},
|
23
|
-
] as const satisfies RuleEntry;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import mocha from "eslint-plugin-mocha";
|
2
|
-
import { Strings, type RuleEntry } from "../index.js";
|
3
|
-
|
4
|
-
const { Id: { Recommended } } = Strings;
|
5
|
-
|
6
|
-
// Remove shared config once manually configured
|
7
|
-
export default [Recommended, (mocha.configs.flat.recommended as Record<"rules", RuleEntry.Object>).rules] as const satisfies RuleEntry;
|