Support lint rules in vue #3370
Replies: 5 comments 4 replies
-
Rules we need to implement:
{
"oxc/no-const-enum": "error",
"oxc/no-async-await": "error",
"oxc/no-rest-spread-properties": ["error", {
object_spread_message: "esbuild transpiles object spread into very verbose inline helpers.\n " +
"'Please use the `extend` helper from @vue/shared instead.",
object_rest_message: "Our output target is ES2016, so async/await syntax should be avoided."
}],
"no-optional-chaining": [ "error", {
message: "Our output target is ES2016, and optional chaining results in verbose helpers and should be avoided."
}]
}
-'import-x/no-nodejs-modules': [
- 'error',
- { allow: builtinModules.map(mod => `node:${mod}`) },
- ]
+ 'unicorn/prefer-node-protocol': 'error'
|
Beta Was this translation helpful? Give feedback.
-
It seems like we need to support eslint v9 for per directory configuration :-/
|
Beta Was this translation helpful? Give feedback.
-
Ah, No unused vars, my arch enemy, maybe I'll try tackling that for the third time... |
Beta Was this translation helpful? Give feedback.
-
What's next up for this? |
Beta Was this translation helpful? Give feedback.
-
Could However I guess it was mentioned before: #3370 (comment) |
Beta Was this translation helpful? Give feedback.
-
https://github.com/vuejs/core/blob/main/eslint.config.js
Beta Was this translation helpful? Give feedback.
All reactions