Skip to content

Commit 8ce589a

Browse files
committed
style: upgrade eslint to v9
1 parent e07291c commit 8ce589a

File tree

20 files changed

+2050
-2349
lines changed

20 files changed

+2050
-2349
lines changed

.commitlintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
'wip',
2828
'workflow',
2929
'types',
30-
'release'
31-
]
32-
]
33-
}
30+
'release',
31+
],
32+
],
33+
},
3434
}

.eslintignore

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

.eslintrc.cjs

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

.pnpmfile.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ function readPackage(pkg) {
1414

1515
module.exports = {
1616
hooks: {
17-
readPackage
18-
}
17+
readPackage,
18+
},
1919
}

eslint.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import factory from '@vexip-ui/eslint-config'
2+
3+
export default [
4+
...factory({ ignores: ['**/types', '**/README*.md'] }),
5+
{
6+
files: ['examples/**'],
7+
rules: {
8+
'no-console': 'off',
9+
},
10+
},
11+
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
22

33
export default {
4-
preprocess: vitePreprocess()
4+
preprocess: vitePreprocess(),
55
}

examples/vue-rolldown/components/JsSetup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ref } from 'vue'
44
const props = defineProps({
55
count: {
66
type: Number,
7-
default: 0
8-
}
7+
default: 0,
8+
},
99
})
1010
1111
const emit = defineEmits(['on-add'])

examples/vue-rolldown/components/TypeProps.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export type Props = {
99
}
1010
1111
withDefaults(defineProps<Props>(), {
12-
color: 'blue',
1312
array: () => [],
1413
})
1514

examples/vue-rolldown/components/outside-ts-props/OutsideTsProps.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ type Props = {
77
}
88
99
withDefaults(defineProps<Props>(), {
10-
title: 'Title',
1110
msg: undefined,
1211
})
1312
</script>

examples/vue-rspack/components/JsSetup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ref } from 'vue'
44
const props = defineProps({
55
count: {
66
type: Number,
7-
default: 0
8-
}
7+
default: 0,
8+
},
99
})
1010
1111
const emit = defineEmits(['on-add'])

0 commit comments

Comments
 (0)