Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit759375a

Browse files
committed
feat(eslint-config)!: drop legacy eslint config
1 parentef92b8a commit759375a

File tree

7 files changed

+48
-72
lines changed

7 files changed

+48
-72
lines changed

‎.changeset/short-feet-joke.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@vue-macros/eslint-config":minor
3+
---
4+
5+
drop legacy ESLint config
6+

‎eslint.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ts-check
22
import{sxzz}from'@sxzz/eslint-config'
3-
importvueMacrosfrom'./packages/eslint-config/src/flat.ts'
3+
importvueMacrosfrom'./packages/eslint-config/src/index.ts'
44

55
exportdefaultsxzz([
66
vueMacros,

‎packages/eslint-config/package.json‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,15 @@
3535
"require":"./dist/index.cjs",
3636
"import":"./dist/index.js"
3737
},
38-
"./flat": {
39-
"dev":"./src/flat.ts",
40-
"require":"./dist/flat.cjs",
41-
"import":"./dist/flat.js"
42-
},
4338
"./*":"./*"
4439
},
45-
"typesVersions": {
46-
"*": {
47-
"*": [
48-
"./dist/*",
49-
"./*"
50-
]
51-
}
52-
},
5340
"publishConfig": {
5441
"access":"public",
5542
"exports": {
5643
".": {
5744
"require":"./dist/index.cjs",
5845
"import":"./dist/index.js"
5946
},
60-
"./flat": {
61-
"require":"./dist/flat.cjs",
62-
"import":"./dist/flat.js"
63-
},
6447
"./*":"./*"
6548
}
6649
},
@@ -69,7 +52,7 @@
6952
"dev":"DEV=true tsup"
7053
},
7154
"peerDependencies": {
72-
"eslint":">=8.0.0"
55+
"eslint":">=9.0.0"
7356
},
7457
"devDependencies": {
7558
"eslint":"^9.18.0"

‎packages/eslint-config/src/common.ts‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎packages/eslint-config/src/flat.ts‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎packages/eslint-config/src/index.ts‎

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1-
import{globals,rules}from'./common'
1+
/* eslint perfectionist/sort-objects: "error" */
2+
3+
importtype{Rules}from'@sxzz/eslint-config'
24
importtype{Linter}from'eslint'
35

4-
constconfig:Linter.LegacyConfig={
5-
globals,
6+
constglobals:Linter.Globals={
7+
$:'readonly',
8+
$$:'readonly',
9+
$computed:'readonly',
10+
$customRef:'readonly',
11+
$defineModels:'readonly',
12+
$defineProps:'readonly',
13+
$definePropsRefs:'readonly',
14+
$ref:'readonly',
15+
$shallowRef:'readonly',
16+
$toRef:'readonly',
17+
defineEmit:'readonly',
18+
defineModels:'readonly',
19+
defineOptions:'readonly',
20+
defineProp:'readonly',
21+
defineProps:'readonly',
22+
defineRender:'readonly',
23+
defineSetupComponent:'readonly',
24+
defineSlots:'readonly',
25+
}
26+
27+
construles:Linter.RulesRecord={
28+
'vue/no-export-in-script-setup':'off',// exportRender / exportExpose / exportProps
29+
'vue/valid-attribute-name':'off',// short-vmodel
30+
'vue/valid-define-props':'off',// hoistStatic
31+
'vue/valid-v-bind':'off',// shortBind + shortVmodel
32+
}satisfiesRules
33+
34+
constconfig:Linter.Config={
35+
languageOptions:{
36+
globals,
37+
},
38+
name:'vue-macros/rules',
639
rules,
740
}
841

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import{defineConfig}from'tsup'
2-
importconfigfrom'../../tsup.config.js'
1+
import{config}from'../../tsup.config.js'
32

4-
exportdefaultdefineConfig({
5-
...config,
6-
entry:['src/index.ts','src/flat.ts'],
3+
exportdefaultconfig({
4+
onlyIndex:true,
5+
splitting:true,
76
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp