Skip to content

Commit 14bf2ec

Browse files
committed
upd: pkgs & configs
1 parent 3107cc8 commit 14bf2ec

File tree

8 files changed

+2141
-562
lines changed

8 files changed

+2141
-562
lines changed

.editorconfig

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

.eslintrc.cjs

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

.prettierrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/prettierrc",
33
"semi": false,
4-
"tabWidth": 2,
54
"singleQuote": true,
6-
"printWidth": 100,
7-
"trailingComma": "none"
5+
"printWidth": 100
86
}

eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import js from '@eslint/js'
2+
import pluginVue from 'eslint-plugin-vue'
3+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
4+
5+
export default [
6+
{
7+
name: 'app/files-to-lint',
8+
files: ['**/*.{js,mjs,jsx,vue}'],
9+
},
10+
11+
{
12+
name: 'app/files-to-ignore',
13+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
14+
},
15+
16+
js.configs.recommended,
17+
...pluginVue.configs['flat/essential'],
18+
skipFormatting,
19+
]

jsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
43
"paths": {
5-
"@/*": ["src/*"]
6-
}
7-
},
4+
"@/*": ["./src/*"]
5+
}
6+
},
87
"exclude": ["node_modules", "dist"]
9-
}
8+
}

0 commit comments

Comments
 (0)