Skip to content

Commit a3ab530

Browse files
committed
chore: update .editorconfig and simplify eslint configuration
1 parent a34f13d commit a3ab530

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
22
charset = utf-8
33
indent_size = 2
44
indent_style = space
55
insert_final_newline = true
66
trim_trailing_whitespace = true
7+
8+
end_of_line = lf
9+
max_line_length = 100

eslint.config.js

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
1+
import { globalIgnores } from 'eslint/config'
2+
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
13
import pluginVue from 'eslint-plugin-vue'
2-
import vueTsEslintConfig from '@vue/eslint-config-typescript'
34
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
45

5-
export default [
6+
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
7+
// import { configureVueProject } from '@vue/eslint-config-typescript'
8+
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
9+
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
10+
11+
export default defineConfigWithVueTs(
612
{
713
name: 'app/files-to-lint',
814
files: ['**/*.{ts,mts,tsx,vue}'],
915
},
1016

11-
{
12-
name: 'app/files-to-ignore',
13-
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/playground/**'],
14-
},
17+
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
1518

16-
...pluginVue.configs['flat/essential'],
17-
...vueTsEslintConfig(),
19+
pluginVue.configs['flat/essential'],
20+
vueTsConfigs.recommended,
1821
skipFormatting,
19-
20-
{
21-
rules: {
22-
'@typescript-eslint/no-unused-vars': [
23-
'error',
24-
{
25-
ignoreRestSiblings: true,
26-
varsIgnorePattern: '^_',
27-
argsIgnorePattern: '^_',
28-
},
29-
],
30-
},
31-
},
32-
]
22+
)

packages/vue-spring-bottom-sheet/src/BottomSheet.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const {
9595
maxSnapPoint,
9696
} = useSnapPoints(snapPointsRef, height, windowHeight)
9797
98+
// eslint-disable-next-line
9899
let controls: any
99100
100101
const isWindowScrollLocked = useScrollLock(document.body)

0 commit comments

Comments
 (0)