@sxzz/eslint-config
Advanced tools
Comparing version 3.6.4 to 3.7.0
@@ -15,2 +15,3 @@ // src/plugins.ts | ||
import * as pluginYml from "eslint-plugin-yml"; | ||
import * as pluginSortKeys from "eslint-plugin-sort-keys"; | ||
import * as parserTypeScript from "@typescript-eslint/parser"; | ||
@@ -412,2 +413,11 @@ import * as parserVue from "vue-eslint-parser"; | ||
// src/configs/sort-keys.ts | ||
var sortKeys = [ | ||
{ | ||
plugins: { | ||
"sort-keys": pluginSortKeys | ||
} | ||
} | ||
]; | ||
// src/configs/sort.ts | ||
@@ -921,3 +931,3 @@ var sortPackageJson = [ | ||
]; | ||
var all = [...basic, ...vue, ...unocss, ...prettier]; | ||
var all = [...basic, ...sortKeys, ...vue, ...unocss, ...prettier]; | ||
function sxzz(config = [], { | ||
@@ -927,2 +937,3 @@ vue: enableVue = true, | ||
markdown: enableMarkdown = true, | ||
sortKeys: enableSortKeys = true, | ||
unocss: enableUnocss = false | ||
@@ -932,2 +943,5 @@ } = {}) { | ||
configs.push(...basic); | ||
if (enableSortKeys) { | ||
configs.push(...sortKeys); | ||
} | ||
if (enableVue) { | ||
@@ -996,2 +1010,3 @@ configs.push(...vue); | ||
pluginPrettier, | ||
pluginSortKeys, | ||
pluginTypeScript, | ||
@@ -1008,2 +1023,3 @@ pluginUnicorn, | ||
reactivityTransform, | ||
sortKeys, | ||
sortPackageJson, | ||
@@ -1010,0 +1026,0 @@ sortTsconfig, |
@@ -10,2 +10,4 @@ import { FlatESLintConfigItem } from 'eslint-define-config'; | ||
export { eslintPluginYml as pluginYml }; | ||
import * as eslintPluginSortKeys from 'eslint-plugin-sort-keys'; | ||
export { eslintPluginSortKeys as pluginSortKeys }; | ||
import * as parser from '@typescript-eslint/parser'; | ||
@@ -34,2 +36,4 @@ export { parser as parserTypeScript }; | ||
declare const sortKeys: FlatESLintConfigItem[]; | ||
declare const sortPackageJson: FlatESLintConfigItem[]; | ||
@@ -92,3 +96,3 @@ declare const sortTsconfig: FlatESLintConfigItem[]; | ||
declare const all: FlatESLintConfigItem[]; | ||
declare function sxzz(config?: FlatESLintConfigItem | FlatESLintConfigItem[], { vue: enableVue, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnocss, }?: Partial<{ | ||
declare function sxzz(config?: FlatESLintConfigItem | FlatESLintConfigItem[], { vue: enableVue, prettier: enablePrettier, markdown: enableMarkdown, sortKeys: enableSortKeys, unocss: enableUnocss, }?: Partial<{ | ||
vue: boolean; | ||
@@ -98,4 +102,5 @@ prettier: boolean; | ||
unocss: boolean; | ||
sortKeys: boolean; | ||
}>): FlatESLintConfigItem[]; | ||
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml }; | ||
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml }; |
@@ -15,2 +15,3 @@ // src/plugins.ts | ||
import * as pluginYml from "eslint-plugin-yml"; | ||
import * as pluginSortKeys from "eslint-plugin-sort-keys"; | ||
import * as parserTypeScript from "@typescript-eslint/parser"; | ||
@@ -412,2 +413,11 @@ import * as parserVue from "vue-eslint-parser"; | ||
// src/configs/sort-keys.ts | ||
var sortKeys = [ | ||
{ | ||
plugins: { | ||
"sort-keys": pluginSortKeys | ||
} | ||
} | ||
]; | ||
// src/configs/sort.ts | ||
@@ -921,3 +931,3 @@ var sortPackageJson = [ | ||
]; | ||
var all = [...basic, ...vue, ...unocss, ...prettier]; | ||
var all = [...basic, ...sortKeys, ...vue, ...unocss, ...prettier]; | ||
function sxzz(config = [], { | ||
@@ -927,2 +937,3 @@ vue: enableVue = true, | ||
markdown: enableMarkdown = true, | ||
sortKeys: enableSortKeys = true, | ||
unocss: enableUnocss = false | ||
@@ -932,2 +943,5 @@ } = {}) { | ||
configs.push(...basic); | ||
if (enableSortKeys) { | ||
configs.push(...sortKeys); | ||
} | ||
if (enableVue) { | ||
@@ -996,2 +1010,3 @@ configs.push(...vue); | ||
pluginPrettier, | ||
pluginSortKeys, | ||
pluginTypeScript, | ||
@@ -1008,2 +1023,3 @@ pluginUnicorn, | ||
reactivityTransform, | ||
sortKeys, | ||
sortPackageJson, | ||
@@ -1010,0 +1026,0 @@ sortTsconfig, |
{ | ||
"name": "@sxzz/eslint-config", | ||
"version": "3.6.4", | ||
"version": "3.7.0", | ||
"packageManager": "pnpm@8.8.0", | ||
@@ -45,2 +45,3 @@ "description": "ESLint config for @sxzz.", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-sort-keys": "^2.3.5", | ||
"eslint-plugin-unicorn": "^48.0.1", | ||
@@ -62,3 +63,2 @@ "eslint-plugin-unused-imports": "^3.0.0", | ||
"eslint": "^8.51.0", | ||
"eslint-plugin-sort-keys": "^2.3.5", | ||
"sucrase": "^3.34.0", | ||
@@ -65,0 +65,0 @@ "tsup": "^7.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99839
7
3208
23
+ Addedeslint-plugin-sort-keys@2.3.5(transitive)