Skip to content

Commit 5329549

Browse files
committedOct 14, 2024
feat: simplified the *-type-checked configurations by providing a meaningful and performant default
1 parent df69e5e commit 5329549

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1589
-47
lines changed
 

‎README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ export default [
6363
// You can also manually enable the stylistic rules.
6464
// "stylistic",
6565

66-
// [!NOTE] The ones with `-type-checked` are not yet tested.
67-
6866
// Other utility configurations, such as `eslint-recommended`,
6967
// are also extendable here. But we don't recommend using them directly.
7068
],
@@ -92,15 +90,13 @@ export default [
9290
jsx: false,
9391
},
9492

95-
// [!NOT YET IMPLEMENTED]
9693
// <https://github.com/vuejs/eslint-plugin-vue/issues/1910#issuecomment-1819993961>
9794
// Optional: the root directory to resolve the `.vue` files, defaults to `process.cwd()`.
98-
//
95+
// You may need to set this to the root directory of your project if you have a monorepo.
9996
// This is useful when you allow any other languages than `ts` in `.vue` files.
10097
// Our config helper would resolve and parse all the `.vue` files under `rootDir`,
10198
// and only apply the loosened rules to the files that do need them.
102-
//
103-
// rootDir: __dirname,
99+
rootDir: import.meta.dirname,
104100
})
105101
]
106102
```

‎examples/type-checked/.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
2+
charset = utf-8
3+
indent_size = 2
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true

0 commit comments

Comments
 (0)