style: 更新 .editorconfig 文件配置
- 扩展配置到更多文件类型,包括 CSS 预处理器文件 - 添加 end_of_line 和 max_line_length 设置 - 统一使用 LF 换行符 - 设置最大行长度为 120 字符
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
|
||||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
|
||||
charset = utf-8
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
max_line_length = 120
|
||||
|
@@ -61,7 +61,7 @@ export default defineConfigWithVueTs(
|
||||
|
||||
{
|
||||
...pluginPlaywright.configs['flat/recommended'],
|
||||
files: ['tests/playwright/**/*.{test,spec}.{js,ts,jsx,tsx}'],
|
||||
files: ['e2e/playwright/**/*.{test,spec}.{js,ts,jsx,tsx}'],
|
||||
},
|
||||
...pluginOxlint.configs['flat/recommended'],
|
||||
skipFormatting,
|
||||
|
@@ -32,7 +32,7 @@
|
||||
"knip": "pnpm dlx knip"
|
||||
},
|
||||
"lint-staged": {
|
||||
"{src,tests/playwright}/**/*.{js,jsx,ts,tsx,vue}": [
|
||||
"{src,e2e/playwright}/**/*.{js,jsx,ts,tsx,vue}": [
|
||||
"prettier --write",
|
||||
"eslint --fix",
|
||||
"oxlint --fix"
|
||||
|
@@ -63,7 +63,7 @@ export default defineConfig({
|
||||
reporter: 'html',
|
||||
/* Retry on CI only */
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
testDir: './tests/playwright',
|
||||
testDir: './e2e/playwright',
|
||||
/* Maximum time one test can run for. */
|
||||
timeout: 30 * 1000,
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
|
Reference in New Issue
Block a user