linted 16.12.1 → 16.12.2-rc.0
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/_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.d.ts → rules/_js.d.ts} +1 -1
- 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.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.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.d.ts +7 -0
- package/dist/rules/_md.d.ts.map +1 -0
- package/dist/rules/_md.js +3 -0
- package/dist/rules/_md.js.map +1 -0
- package/dist/rules/_mocha.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/_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/Svelte.d.ts → rules/_svelte.d.ts} +1 -1
- 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.d.ts → rules/_ts.d.ts} +1 -1
- 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.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/presets/html/Enable.d.ts → rules/html/_enable.d.ts} +1 -1
- package/dist/rules/html/_enable.d.ts.map +1 -0
- package/dist/{base/rules/presets/html/Enable.js → rules/html/_enable.js} +4 -4
- package/dist/rules/html/_enable.js.map +1 -0
- package/dist/rules/html/_recommended.d.ts +3 -0
- package/dist/rules/html/_recommended.d.ts.map +1 -0
- package/dist/rules/html/_recommended.js +5 -0
- package/dist/rules/html/_recommended.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/{base/rules/presets/js/Enable.js → rules/js/_enable.js} +23 -23
- package/dist/rules/js/_enable.js.map +1 -0
- package/dist/{base/rules/presets/js/EnableStylistic.d.ts → rules/js/stylistic.d.ts} +1 -1
- package/dist/rules/js/stylistic.d.ts.map +1 -0
- package/dist/{base/rules/presets/js/EnableStylistic.js → rules/js/stylistic.js} +66 -66
- package/dist/rules/js/stylistic.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/{base/rules/presets/json/EnableX.js → rules/json/enable_x.js} +13 -13
- package/dist/rules/json/enable_x.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 +4 -0
- package/dist/rules/jsonc/override.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 +9 -0
- package/dist/rules/md/_enable.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 +4 -0
- package/dist/rules/mocha/_enable.js.map +1 -0
- package/dist/rules/mocha/_recommended.d.ts +3 -0
- package/dist/rules/mocha/_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/_recommended.js +5 -0
- package/dist/rules/mocha/_recommended.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/{base/rules/presets/svelte/Enable.js → rules/svelte/_enable.js} +19 -19
- package/dist/rules/svelte/_enable.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 +4 -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 +4 -0
- package/dist/rules/svelte/disable_ts.js.map +1 -0
- package/dist/{base/rules/presets/svelte/DisableX.d.ts → rules/svelte/disable_x.d.ts} +1 -1
- package/dist/rules/svelte/disable_x.d.ts.map +1 -0
- package/dist/rules/svelte/disable_x.js +4 -0
- package/dist/rules/svelte/disable_x.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 +4 -0
- package/dist/rules/svelte/enable_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} +14 -14
- package/dist/rules/ts/_enable.js.map +1 -0
- package/dist/{base/rules/presets/ts/DisableCompiler.d.ts → rules/ts/disable_compiler.d.ts} +1 -1
- package/dist/rules/ts/disable_compiler.d.ts.map +1 -0
- package/dist/{base/rules/presets/ts/DisableCompiler.js → rules/ts/disable_compiler.js} +3 -3
- package/dist/rules/ts/disable_compiler.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} +4 -4
- package/dist/rules/ts/disable_x.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} +8 -8
- package/dist/rules/ts/enable_x.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/{base/rules/presets/yml/Enable.js → rules/yml/_enable.js} +11 -11
- 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/{base/rules/presets/yml/EnableX.js → rules/yml/enable_x.js} +8 -8
- package/dist/rules/yml/enable_x.js.map +1 -0
- package/dist/{base/rules.d.ts → rules.d.ts} +2 -33
- 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/_html.ts +4 -0
- package/src/rules/_js.ts +4 -0
- package/src/rules/_json.ts +4 -0
- package/src/rules/_jsonc.ts +4 -0
- package/src/rules/_md.ts +3 -0
- package/src/rules/_mocha.ts +4 -0
- 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/_svelte.ts +15 -0
- package/src/rules/_ts.ts +13 -0
- package/src/rules/_yml.ts +4 -0
- package/src/rules/html/_enable.ts +13 -0
- package/src/rules/html/_recommended.ts +7 -0
- package/src/{base/rules/presets/js/Enable.ts → rules/js/_enable.ts} +35 -36
- package/src/{base/rules/presets/js/EnableStylistic.ts → rules/js/stylistic.ts} +85 -86
- package/src/{base/rules/presets/json/Enable.ts → rules/json/_enable.ts} +6 -4
- package/src/{base/rules/presets/json/EnableX.ts → rules/json/enable_x.ts} +23 -24
- package/src/rules/jsonc/override.ts +9 -0
- package/src/rules/md/_enable.ts +14 -0
- package/src/rules/mocha/_enable.ts +5 -0
- package/src/rules/mocha/_recommended.ts +7 -0
- package/src/{base/rules/presets/svelte/Enable.ts → rules/svelte/_enable.ts} +27 -28
- package/src/{base/rules/presets/svelte/DisableJS.ts → rules/svelte/disable_js.ts} +3 -3
- package/src/{base/rules/presets/svelte/DisableTS.ts → rules/svelte/disable_ts.ts} +3 -3
- package/src/rules/svelte/disable_x.ts +8 -0
- package/src/rules/svelte/enable_x.ts +9 -0
- package/src/{base/rules/presets/ts/Enable.ts → rules/ts/_enable.ts} +17 -18
- package/src/{base/rules/presets/ts/DisableCompiler.ts → rules/ts/disable_compiler.ts} +3 -3
- package/src/{base/rules/presets/ts/DisableX.ts → rules/ts/disable_x.ts} +6 -4
- package/src/{base/rules/presets/ts/EnableX.ts → rules/ts/enable_x.ts} +11 -8
- package/src/rules/yml/_enable.ts +33 -0
- package/src/{base/rules/presets/yml/EnableX.ts → rules/yml/enable_x.ts} +11 -8
- 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.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.map +0 -1
- 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.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.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.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.map +0 -1
- package/dist/base/rules/presets/yml/EnableX.d.ts.map +0 -1
- 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/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/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/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,56 @@
|
|
1
|
+
const
|
2
|
+
Never = "never",
|
3
|
+
Always = "always",
|
4
|
+
AlwaysMultiline = "always-multiline",
|
5
|
+
Multiline = "multiline",
|
6
|
+
Consistent = "consistent",
|
7
|
+
Consecutive = "consecutive",
|
8
|
+
AsNeeded = "as-needed",
|
9
|
+
Explicit = "explicit",
|
10
|
+
Allow = "allow",
|
11
|
+
Strict = "strict",
|
12
|
+
Any = "any",
|
13
|
+
All = "all",
|
14
|
+
Star = "*",
|
15
|
+
First = "first",
|
16
|
+
Last = "last",
|
17
|
+
Before = "before",
|
18
|
+
After = "after",
|
19
|
+
Above = "above",
|
20
|
+
Below = "below",
|
21
|
+
Beside = "beside",
|
22
|
+
Inside = "inside",
|
23
|
+
Outside = "outside",
|
24
|
+
Single = "single",
|
25
|
+
Double = "double",
|
26
|
+
Multi = "multi",
|
27
|
+
Both = "both";
|
28
|
+
|
29
|
+
export {
|
30
|
+
Never,
|
31
|
+
Always,
|
32
|
+
AlwaysMultiline,
|
33
|
+
Multiline,
|
34
|
+
Consistent,
|
35
|
+
Consecutive,
|
36
|
+
AsNeeded,
|
37
|
+
Explicit,
|
38
|
+
Allow,
|
39
|
+
Strict,
|
40
|
+
Any,
|
41
|
+
All,
|
42
|
+
Star,
|
43
|
+
First,
|
44
|
+
Last,
|
45
|
+
Before,
|
46
|
+
After,
|
47
|
+
Above,
|
48
|
+
Below,
|
49
|
+
Beside,
|
50
|
+
Inside,
|
51
|
+
Outside,
|
52
|
+
Single,
|
53
|
+
Double,
|
54
|
+
Multi,
|
55
|
+
Both,
|
56
|
+
};
|
@@ -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_x.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;
|
package/src/rules/_ts.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import Js from "./_js.js";
|
2
|
+
import DisableCompiler from "./ts/disable_compiler.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,13 @@
|
|
1
|
+
import { id, level } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ enable } = id,
|
5
|
+
{ ERROR, OFF } = level;
|
6
|
+
|
7
|
+
export default [
|
8
|
+
enable,
|
9
|
+
{
|
10
|
+
"@html-eslint/require-title": OFF,
|
11
|
+
"@html-eslint/element-newline": [ERROR, { skip: ["head"] }],
|
12
|
+
},
|
13
|
+
] as const;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { id } from "../_strings.js";
|
2
|
+
import html from "@html-eslint/eslint-plugin";
|
3
|
+
|
4
|
+
const { recommended } = id;
|
5
|
+
|
6
|
+
// Remove shared config once manually configured
|
7
|
+
export default [recommended, (html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>).rules] as const;
|
@@ -1,22 +1,21 @@
|
|
1
|
-
import {
|
1
|
+
import { id, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
} = Strings;
|
3
|
+
const
|
4
|
+
{ enable } = id,
|
5
|
+
{ ERROR, OFF } = level,
|
6
|
+
{
|
7
|
+
Never,
|
8
|
+
Always,
|
9
|
+
AsNeeded,
|
10
|
+
Consecutive,
|
11
|
+
Allow,
|
12
|
+
All,
|
13
|
+
Multi,
|
14
|
+
Both,
|
15
|
+
} = state;
|
17
16
|
|
18
17
|
export default [
|
19
|
-
|
18
|
+
enable,
|
20
19
|
{
|
21
20
|
// #region Problems
|
22
21
|
// [ https://eslint.org/docs/latest/rules/#possible-problems ]
|
@@ -28,7 +27,7 @@ export default [
|
|
28
27
|
"no-await-in-loop": ERROR,
|
29
28
|
"no-class-assign": ERROR,
|
30
29
|
"no-compare-neg-zero": ERROR,
|
31
|
-
"no-cond-assign": [ERROR,
|
30
|
+
"no-cond-assign": [ERROR, Always],
|
32
31
|
"no-const-assign": ERROR, /* tsc */
|
33
32
|
"no-constant-binary-expression": ERROR,
|
34
33
|
"no-constant-condition": [ERROR, { checkLoops: true }], /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */
|
@@ -47,7 +46,7 @@ export default [
|
|
47
46
|
"no-fallthrough": [ERROR, { allowEmptyCase: true, reportUnusedFallthroughComment: true }],
|
48
47
|
"no-func-assign": ERROR, /* tsc */
|
49
48
|
"no-import-assign": ERROR, /* tsc (except Object.assign()) */
|
50
|
-
"no-inner-declarations": [ERROR,
|
49
|
+
"no-inner-declarations": [ERROR, Both, { blockScopedFunctions: Allow }],
|
51
50
|
"no-invalid-regexp": [ERROR, { allowConstructorFlags: [] }],
|
52
51
|
"no-irregular-whitespace": [
|
53
52
|
ERROR,
|
@@ -83,9 +82,9 @@ export default [
|
|
83
82
|
"no-unused-vars": [
|
84
83
|
ERROR,
|
85
84
|
{
|
86
|
-
vars:
|
87
|
-
args:
|
88
|
-
caughtErrors:
|
85
|
+
vars: All,
|
86
|
+
args: All,
|
87
|
+
caughtErrors: All,
|
89
88
|
ignoreRestSiblings: false,
|
90
89
|
ignoreClassWithStaticInitBlock: false,
|
91
90
|
reportUsedIgnorePattern: true,
|
@@ -111,7 +110,7 @@ export default [
|
|
111
110
|
// #region Suggestions
|
112
111
|
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
113
112
|
"accessor-pairs": [ERROR, { setWithoutGet: true, getWithoutSet: false, enforceForClassMembers: true }],
|
114
|
-
"arrow-body-style": [ERROR,
|
113
|
+
"arrow-body-style": [ERROR, AsNeeded, { requireReturnForObjectLiteral: true }],
|
115
114
|
"block-scoped-var": ERROR,
|
116
115
|
camelcase: OFF, /* preference */
|
117
116
|
"capitalized-comments": OFF, /* preference */
|
@@ -119,12 +118,12 @@ export default [
|
|
119
118
|
complexity: OFF, /* preference */
|
120
119
|
"consistent-return": [ERROR, { treatUndefinedAsUnspecified: false }], /* tsc -- TSLint:off: tsconfig: noImplicitReturns */
|
121
120
|
"consistent-this": ERROR,
|
122
|
-
curly: [ERROR,
|
121
|
+
curly: [ERROR, Multi],
|
123
122
|
"default-case": OFF, /* preference: don't care */
|
124
123
|
"default-case-last": ERROR,
|
125
124
|
"default-param-last": ERROR, /* TSLint */
|
126
125
|
"dot-notation": [ERROR, { allowKeywords: true }], /* TSLint */
|
127
|
-
eqeqeq: [ERROR,
|
126
|
+
eqeqeq: [ERROR, Always],
|
128
127
|
"func-name-matching": OFF, /* preference */
|
129
128
|
"func-names": OFF, /* preference */
|
130
129
|
"func-style": OFF, /* preference */
|
@@ -133,8 +132,8 @@ export default [
|
|
133
132
|
"id-denylist": OFF, /* preference */
|
134
133
|
"id-length": OFF, /* preference */
|
135
134
|
"id-match": OFF, /* preference */
|
136
|
-
"init-declarations": [ERROR,
|
137
|
-
"logical-assignment-operators": [ERROR,
|
135
|
+
"init-declarations": [ERROR, Always], /* TSLint */
|
136
|
+
"logical-assignment-operators": [ERROR, Always, { enforceForIfStatements: true }],
|
138
137
|
"max-classes-per-file": OFF, /* preference */
|
139
138
|
"max-depth": OFF, /* preference */
|
140
139
|
"max-lines": OFF, /* preference */
|
@@ -205,7 +204,7 @@ export default [
|
|
205
204
|
"no-restricted-imports": OFF, /* preference -- TSLint:off */
|
206
205
|
"no-restricted-properties": OFF, /* preference */
|
207
206
|
"no-restricted-syntax": OFF, /* preference */
|
208
|
-
"no-return-assign": [ERROR,
|
207
|
+
"no-return-assign": [ERROR, Always], /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */
|
209
208
|
"no-script-url": ERROR,
|
210
209
|
"no-sequences": [ERROR, { allowInParentheses: true }],
|
211
210
|
"no-shadow": OFF, /* investigate -- TSLint:off: investigate */
|
@@ -238,21 +237,21 @@ export default [
|
|
238
237
|
"no-void": [ERROR, { allowAsStatement: true }],
|
239
238
|
"no-warning-comments": OFF, /* preference */
|
240
239
|
"no-with": ERROR,
|
241
|
-
"object-shorthand": [ERROR,
|
240
|
+
"object-shorthand": [ERROR, Always, { avoidQuotes: true, ignoreConstructors: false, avoidExplicitReturnArrows: false }],
|
242
241
|
"one-var": [
|
243
242
|
ERROR,
|
244
243
|
{
|
245
|
-
"var":
|
246
|
-
let:
|
247
|
-
"const":
|
244
|
+
"var": Consecutive,
|
245
|
+
let: Consecutive,
|
246
|
+
"const": Consecutive,
|
248
247
|
separateRequires: true,
|
249
248
|
},
|
250
249
|
],
|
251
|
-
"operator-assignment": [ERROR,
|
250
|
+
"operator-assignment": [ERROR, Always],
|
252
251
|
"prefer-arrow-callback": [ERROR, { allowNamedFunctions: false, allowUnboundThis: true }],
|
253
252
|
"prefer-const": [
|
254
253
|
ERROR,
|
255
|
-
{ destructuring:
|
254
|
+
{ destructuring: All, ignoreReadBeforeAssign: false },
|
256
255
|
],
|
257
256
|
"prefer-destructuring": [ERROR, { VariableDeclarator: { array: true, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: true }], /* TSLint */
|
258
257
|
"prefer-exponentiation-operator": ERROR,
|
@@ -265,7 +264,7 @@ export default [
|
|
265
264
|
"prefer-rest-params": ERROR,
|
266
265
|
"prefer-spread": ERROR,
|
267
266
|
"prefer-template": ERROR,
|
268
|
-
radix: [ERROR,
|
267
|
+
radix: [ERROR, AsNeeded],
|
269
268
|
"require-await": ERROR, /* TSLint */
|
270
269
|
"require-unicode-regexp": ERROR,
|
271
270
|
"require-yield": ERROR,
|
@@ -275,7 +274,7 @@ export default [
|
|
275
274
|
strict: OFF, /* preference */
|
276
275
|
"symbol-description": OFF, /* preference */
|
277
276
|
"vars-on-top": ERROR,
|
278
|
-
yoda: [ERROR,
|
277
|
+
yoda: [ERROR, Never, { exceptRange: false, onlyEquality: false }],
|
279
278
|
|
280
279
|
// #endregion
|
281
280
|
|
@@ -285,4 +284,4 @@ export default [
|
|
285
284
|
|
286
285
|
// #endregion
|
287
286
|
},
|
288
|
-
] as const
|
287
|
+
] as const;
|
@@ -1,33 +1,32 @@
|
|
1
|
-
import {
|
1
|
+
import { id, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
} = Strings;
|
3
|
+
const
|
4
|
+
{ stylistic } = id,
|
5
|
+
{ ERROR, OFF } = level,
|
6
|
+
{
|
7
|
+
Never,
|
8
|
+
Always,
|
9
|
+
AlwaysMultiline,
|
10
|
+
Consistent,
|
11
|
+
AsNeeded,
|
12
|
+
Strict,
|
13
|
+
All,
|
14
|
+
Star,
|
15
|
+
Last,
|
16
|
+
Before,
|
17
|
+
After,
|
18
|
+
Below,
|
19
|
+
Beside,
|
20
|
+
Inside,
|
21
|
+
Double,
|
22
|
+
} = state;
|
24
23
|
|
25
24
|
export default [
|
26
|
-
|
25
|
+
stylistic,
|
27
26
|
{
|
28
27
|
// https://eslint.style/rules
|
29
28
|
"@stylistic/array-bracket-newline": [ERROR, { multiline: true, minItems: null }],
|
30
|
-
"@stylistic/array-bracket-spacing": [ERROR,
|
29
|
+
"@stylistic/array-bracket-spacing": [ERROR, Never, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
|
31
30
|
"@stylistic/array-element-newline": [
|
32
31
|
ERROR,
|
33
32
|
{
|
@@ -35,15 +34,15 @@ export default [
|
|
35
34
|
ArrayPattern: { consistent: true, multiline: true, minItems: 4 },
|
36
35
|
},
|
37
36
|
],
|
38
|
-
"@stylistic/arrow-parens": [ERROR,
|
37
|
+
"@stylistic/arrow-parens": [ERROR, AsNeeded, { requireForBlockBody: false }],
|
39
38
|
"@stylistic/arrow-spacing": [ERROR, { before: true, after: true }],
|
40
|
-
"@stylistic/block-spacing": [ERROR,
|
39
|
+
"@stylistic/block-spacing": [ERROR, Always],
|
41
40
|
"@stylistic/brace-style": [ERROR, "stroustrup", { allowSingleLine: true }],
|
42
|
-
"@stylistic/comma-dangle": [ERROR,
|
41
|
+
"@stylistic/comma-dangle": [ERROR, AlwaysMultiline],
|
43
42
|
"@stylistic/comma-spacing": [ERROR, { before: false, after: true }],
|
44
43
|
"@stylistic/comma-style": [
|
45
44
|
ERROR,
|
46
|
-
|
45
|
+
Last,
|
47
46
|
{
|
48
47
|
exceptions: {
|
49
48
|
ArrayExpression: false,
|
@@ -60,15 +59,15 @@ export default [
|
|
60
59
|
},
|
61
60
|
},
|
62
61
|
],
|
63
|
-
"@stylistic/computed-property-spacing": [ERROR,
|
62
|
+
"@stylistic/computed-property-spacing": [ERROR, Never, { enforceForClassMembers: true }],
|
64
63
|
"@stylistic/dot-location": [ERROR, "property"],
|
65
|
-
"@stylistic/eol-last": [ERROR,
|
66
|
-
"@stylistic/function-call-argument-newline": [ERROR,
|
67
|
-
"@stylistic/function-call-spacing": [ERROR,
|
64
|
+
"@stylistic/eol-last": [ERROR, Always],
|
65
|
+
"@stylistic/function-call-argument-newline": [ERROR, Consistent],
|
66
|
+
"@stylistic/function-call-spacing": [ERROR, Never],
|
68
67
|
|
69
68
|
"@stylistic/function-paren-newline": [ERROR, "multiline-arguments"], // BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290
|
70
69
|
"@stylistic/generator-star-spacing": [ERROR, { before: true, after: false }],
|
71
|
-
"@stylistic/implicit-arrow-linebreak": [ERROR,
|
70
|
+
"@stylistic/implicit-arrow-linebreak": [ERROR, Beside],
|
72
71
|
"@stylistic/indent": [
|
73
72
|
ERROR,
|
74
73
|
2,
|
@@ -91,7 +90,7 @@ export default [
|
|
91
90
|
},
|
92
91
|
],
|
93
92
|
"@stylistic/indent-binary-ops": [ERROR, 2],
|
94
|
-
"@stylistic/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode:
|
93
|
+
"@stylistic/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: Strict }],
|
95
94
|
"@stylistic/keyword-spacing": [ERROR, { before: true, after: true, overrides: {} }],
|
96
95
|
"@stylistic/line-comment-position": OFF,
|
97
96
|
"@stylistic/lines-around-comment": [
|
@@ -127,9 +126,9 @@ export default [
|
|
127
126
|
ERROR,
|
128
127
|
{
|
129
128
|
enforce: [
|
130
|
-
{ blankLine:
|
131
|
-
{ blankLine:
|
132
|
-
{ blankLine:
|
129
|
+
{ blankLine: Never, prev: "field", next: "field" },
|
130
|
+
{ blankLine: Always, prev: "field", next: "method" },
|
131
|
+
{ blankLine: Always, prev: "method", next: Star },
|
133
132
|
],
|
134
133
|
},
|
135
134
|
{ exceptAfterSingleLine: false, exceptAfterOverload: true /* TS-only */ },
|
@@ -157,13 +156,13 @@ export default [
|
|
157
156
|
},
|
158
157
|
],
|
159
158
|
"@stylistic/multiline-comment-style": OFF,
|
160
|
-
"@stylistic/multiline-ternary": [ERROR,
|
161
|
-
"@stylistic/new-parens": [OFF,
|
159
|
+
"@stylistic/multiline-ternary": [ERROR, AlwaysMultiline],
|
160
|
+
"@stylistic/new-parens": [OFF, Never],
|
162
161
|
"@stylistic/newline-per-chained-call": [ERROR, { ignoreChainWithDepth: 2 }],
|
163
162
|
"@stylistic/no-confusing-arrow": OFF,
|
164
163
|
"@stylistic/no-extra-parens": [
|
165
164
|
ERROR,
|
166
|
-
|
165
|
+
All,
|
167
166
|
{
|
168
167
|
conditionalAssign: true,
|
169
168
|
returnAssign: true,
|
@@ -186,14 +185,14 @@ export default [
|
|
186
185
|
"@stylistic/no-whitespace-before-property": ERROR,
|
187
186
|
"@stylistic/nonblock-statement-body-position": [
|
188
187
|
ERROR,
|
189
|
-
|
188
|
+
Below,
|
190
189
|
{
|
191
190
|
overrides: {
|
192
|
-
"if":
|
193
|
-
"else":
|
194
|
-
"while":
|
195
|
-
"do":
|
196
|
-
"for":
|
191
|
+
"if": Below,
|
192
|
+
"else": Below,
|
193
|
+
"while": Below,
|
194
|
+
"do": Below,
|
195
|
+
"for": Below,
|
197
196
|
},
|
198
197
|
},
|
199
198
|
],
|
@@ -206,19 +205,19 @@ export default [
|
|
206
205
|
ExportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
|
207
206
|
},
|
208
207
|
],
|
209
|
-
"@stylistic/object-curly-spacing": [ERROR,
|
208
|
+
"@stylistic/object-curly-spacing": [ERROR, Always, { arraysInObjects: true, objectsInObjects: true }],
|
210
209
|
"@stylistic/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: true }],
|
211
|
-
"@stylistic/one-var-declaration-per-line": [ERROR,
|
212
|
-
"@stylistic/operator-linebreak": [ERROR,
|
213
|
-
"@stylistic/padded-blocks": [ERROR, { blocks:
|
210
|
+
"@stylistic/one-var-declaration-per-line": [ERROR, Always],
|
211
|
+
"@stylistic/operator-linebreak": [ERROR, Before, { overrides: { "=": After } }],
|
212
|
+
"@stylistic/padded-blocks": [ERROR, { blocks: Never, classes: Never, switches: Never }, { allowSingleLineBlocks: true }],
|
214
213
|
"@stylistic/padding-line-between-statements": [
|
215
214
|
ERROR,
|
216
|
-
{ blankLine:
|
217
|
-
{ blankLine:
|
218
|
-
{ blankLine:
|
219
|
-
{ blankLine:
|
215
|
+
{ blankLine: Always, prev: "directive", next: Star },
|
216
|
+
{ blankLine: Never, prev: "directive", next: "directive" },
|
217
|
+
{ blankLine: Always, prev: ["import", "cjs-import"], next: Star },
|
218
|
+
{ blankLine: Never, prev: ["import", "cjs-import"], next: ["import", "cjs-import"] },
|
220
219
|
{
|
221
|
-
blankLine:
|
220
|
+
blankLine: Always,
|
222
221
|
prev: [
|
223
222
|
"class",
|
224
223
|
"interface",
|
@@ -235,24 +234,24 @@ export default [
|
|
235
234
|
"debugger",
|
236
235
|
"with",
|
237
236
|
],
|
238
|
-
next:
|
237
|
+
next: Star,
|
239
238
|
},
|
240
|
-
{ blankLine:
|
241
|
-
{ blankLine:
|
242
|
-
{ blankLine:
|
243
|
-
{ blankLine:
|
244
|
-
{ blankLine:
|
245
|
-
{ blankLine:
|
246
|
-
{ blankLine:
|
247
|
-
{ blankLine:
|
248
|
-
{ blankLine:
|
249
|
-
{ blankLine:
|
250
|
-
{ blankLine:
|
251
|
-
{ blankLine:
|
252
|
-
{ blankLine:
|
239
|
+
{ blankLine: Always, prev: "case", next: Star },
|
240
|
+
{ blankLine: Always, prev: "case", next: ["case", "default"] },
|
241
|
+
{ blankLine: Always, prev: "default", next: Star },
|
242
|
+
{ blankLine: Always, prev: "type", next: Star },
|
243
|
+
{ blankLine: Never, prev: "type", next: "type" },
|
244
|
+
{ blankLine: Always, prev: "function", next: Star },
|
245
|
+
{ blankLine: Always, prev: "function-overload", next: Star },
|
246
|
+
{ blankLine: Never, prev: "function-overload", next: "function-overload" },
|
247
|
+
{ blankLine: Never, prev: "function-overload", next: "function" },
|
248
|
+
{ blankLine: Always, prev: ["const", "let", "var"], next: Star },
|
249
|
+
{ blankLine: Never, prev: ["const", "let", "var"], next: ["const", "let", "var"] },
|
250
|
+
{ blankLine: Always, prev: "expression", next: Star },
|
251
|
+
{ blankLine: Never, prev: "expression", next: "expression" },
|
253
252
|
{
|
254
|
-
blankLine:
|
255
|
-
prev:
|
253
|
+
blankLine: Always,
|
254
|
+
prev: Star,
|
256
255
|
next: [
|
257
256
|
"throw",
|
258
257
|
"return",
|
@@ -260,24 +259,24 @@ export default [
|
|
260
259
|
"continue",
|
261
260
|
],
|
262
261
|
},
|
263
|
-
{ blankLine:
|
264
|
-
{ blankLine:
|
262
|
+
{ blankLine: Always, prev: Star, next: ["export", "cjs-export"] },
|
263
|
+
{ blankLine: Never, prev: ["export", "cjs-export"], next: ["export", "cjs-export"] },
|
265
264
|
],
|
266
|
-
"@stylistic/quote-props": [ERROR,
|
267
|
-
"@stylistic/quotes": [ERROR,
|
268
|
-
"@stylistic/rest-spread-spacing": [ERROR,
|
269
|
-
"@stylistic/semi": [ERROR,
|
265
|
+
"@stylistic/quote-props": [ERROR, AsNeeded, { keywords: true, unnecessary: true, numbers: false }],
|
266
|
+
"@stylistic/quotes": [ERROR, Double, { avoidEscape: true, allowTemplateLiterals: true }],
|
267
|
+
"@stylistic/rest-spread-spacing": [ERROR, Never],
|
268
|
+
"@stylistic/semi": [ERROR, Always, { omitLastInOneLineBlock: false, omitLastInOneLineClassBody: false }],
|
270
269
|
"@stylistic/semi-spacing": [ERROR, { before: false, after: true }],
|
271
|
-
"@stylistic/semi-style": [ERROR,
|
272
|
-
"@stylistic/space-before-blocks": [ERROR, { functions:
|
273
|
-
"@stylistic/space-before-function-paren": [ERROR, { anonymous:
|
274
|
-
"@stylistic/space-in-parens": [ERROR,
|
270
|
+
"@stylistic/semi-style": [ERROR, Last],
|
271
|
+
"@stylistic/space-before-blocks": [ERROR, { functions: Always, keywords: Always, classes: Always }],
|
272
|
+
"@stylistic/space-before-function-paren": [ERROR, { anonymous: Always, named: Never, asyncArrow: Always }],
|
273
|
+
"@stylistic/space-in-parens": [ERROR, Never],
|
275
274
|
"@stylistic/space-infix-ops": [ERROR, { int32Hint: true }],
|
276
275
|
"@stylistic/space-unary-ops": [ERROR, { words: true, nonwords: false, overrides: {} }],
|
277
|
-
"@stylistic/spaced-comment": [ERROR,
|
276
|
+
"@stylistic/spaced-comment": [ERROR, Always],
|
278
277
|
"@stylistic/switch-colon-spacing": [ERROR, { after: true, before: false }],
|
279
|
-
"@stylistic/template-curly-spacing": [ERROR,
|
280
|
-
"@stylistic/template-tag-spacing": [ERROR,
|
278
|
+
"@stylistic/template-curly-spacing": [ERROR, Never],
|
279
|
+
"@stylistic/template-tag-spacing": [ERROR, Never],
|
281
280
|
"@stylistic/type-annotation-spacing": [
|
282
281
|
ERROR,
|
283
282
|
{
|
@@ -288,8 +287,8 @@ export default [
|
|
288
287
|
],
|
289
288
|
"@stylistic/type-generic-spacing": ERROR,
|
290
289
|
"@stylistic/type-named-tuple-spacing": ERROR,
|
291
|
-
"@stylistic/wrap-iife": [ERROR,
|
290
|
+
"@stylistic/wrap-iife": [ERROR, Inside, { functionPrototypeMethods: true }],
|
292
291
|
"@stylistic/wrap-regex": ERROR,
|
293
292
|
"@stylistic/yield-star-spacing": [ERROR, { before: false, after: true }],
|
294
293
|
},
|
295
|
-
] as const
|
294
|
+
] as const;
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { id, level } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
3
|
+
const
|
4
|
+
{ enable } = id,
|
5
|
+
{ ERROR, OFF } = level;
|
4
6
|
|
5
7
|
export default [
|
6
|
-
|
8
|
+
enable,
|
7
9
|
{
|
8
10
|
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
9
11
|
"jsonc/auto": OFF,
|
@@ -30,4 +32,4 @@ export default [
|
|
30
32
|
"jsonc/valid-json-number": ERROR,
|
31
33
|
"jsonc/vue-custom-block/no-parsing-error": ERROR,
|
32
34
|
},
|
33
|
-
] as const
|
35
|
+
] as const;
|
@@ -1,29 +1,28 @@
|
|
1
|
-
import {
|
1
|
+
import { id, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
} = Strings;
|
3
|
+
const
|
4
|
+
{ enable_x } = id,
|
5
|
+
{ ERROR } = level,
|
6
|
+
{
|
7
|
+
Never,
|
8
|
+
Always,
|
9
|
+
Consistent,
|
10
|
+
Strict,
|
11
|
+
Last,
|
12
|
+
Double,
|
13
|
+
} = state;
|
15
14
|
|
16
15
|
export default [
|
17
|
-
|
16
|
+
enable_x,
|
18
17
|
{
|
19
18
|
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
20
|
-
"jsonc/array-bracket-newline": [ERROR,
|
21
|
-
"jsonc/array-bracket-spacing": [ERROR,
|
22
|
-
"jsonc/array-element-newline": [ERROR,
|
23
|
-
"jsonc/comma-dangle": [ERROR,
|
24
|
-
"jsonc/comma-style": [ERROR,
|
19
|
+
"jsonc/array-bracket-newline": [ERROR, Consistent],
|
20
|
+
"jsonc/array-bracket-spacing": [ERROR, Never, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
|
21
|
+
"jsonc/array-element-newline": [ERROR, Always],
|
22
|
+
"jsonc/comma-dangle": [ERROR, Never], /* // trailing commas are NOT allowed in JSON */
|
23
|
+
"jsonc/comma-style": [ERROR, Last],
|
25
24
|
"jsonc/indent": [ERROR, 2],
|
26
|
-
"jsonc/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode:
|
25
|
+
"jsonc/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: Strict }],
|
27
26
|
"jsonc/no-dupe-keys": ERROR,
|
28
27
|
"jsonc/no-floating-decimal": ERROR,
|
29
28
|
"jsonc/no-irregular-whitespace": [
|
@@ -42,10 +41,10 @@ export default [
|
|
42
41
|
"jsonc/no-sparse-arrays": ERROR,
|
43
42
|
"jsonc/no-useless-escape": ERROR,
|
44
43
|
"jsonc/object-curly-newline": [ERROR, { consistent: true, multiline: true, minProperties: 2 }],
|
45
|
-
"jsonc/object-curly-spacing": [ERROR,
|
44
|
+
"jsonc/object-curly-spacing": [ERROR, Always, { arraysInObjects: true, objectsInObjects: true }],
|
46
45
|
"jsonc/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: false }],
|
47
|
-
"jsonc/quote-props": [ERROR,
|
48
|
-
"jsonc/quotes": [ERROR,
|
46
|
+
"jsonc/quote-props": [ERROR, Always],
|
47
|
+
"jsonc/quotes": [ERROR, Double, { avoidEscape: false }],
|
49
48
|
"jsonc/space-unary-ops": ERROR,
|
50
49
|
},
|
51
|
-
] as const
|
50
|
+
] as const;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { id, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ override } = id,
|
5
|
+
{ ERROR, OFF } = level,
|
6
|
+
{ AlwaysMultiline } = state;
|
7
|
+
|
8
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
9
|
+
export default [override, { "jsonc/no-comments": OFF /* comments are allowed in JSONC */, "jsonc/comma-dangle": [ERROR, AlwaysMultiline] /* trailing commas are allowed in JSONC */ }] as const;
|