Enable 12 vue/ rules in oxlint: lifecycle, props, emits, imports. Convert 9 components from `const props = defineProps()` to destructured form (Vue 3.5+ reactive destructuring).
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "import", "unicorn", "vue"],
|
|
"env": {
|
|
"browser": true,
|
|
"es2024": true
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": "warn",
|
|
"no-console": "off",
|
|
|
|
"typescript/no-explicit-any": "warn",
|
|
"typescript/no-non-null-assertion": "warn",
|
|
"typescript/no-floating-promises": "error",
|
|
|
|
"import/no-cycle": "error",
|
|
"import/no-self-import": "error",
|
|
|
|
"unicorn/no-instanceof-array": "error",
|
|
"unicorn/no-typeof-undefined": "error",
|
|
|
|
"vue/no-arrow-functions-in-watch": "error",
|
|
"vue/no-deprecated-destroyed-lifecycle": "error",
|
|
"vue/no-export-in-script-setup": "error",
|
|
"vue/no-lifecycle-after-await": "error",
|
|
"vue/no-import-compiler-macros": "error",
|
|
"vue/prefer-import-from-vue": "error",
|
|
"vue/valid-define-emits": "error",
|
|
"vue/valid-define-props": "error",
|
|
"vue/no-required-prop-with-default": "error",
|
|
"vue/define-emits-declaration": "error",
|
|
"vue/define-props-destructuring": "error",
|
|
"vue/require-typed-ref": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.test.ts", "**/*.test.tsx"],
|
|
"rules": {
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-non-null-assertion": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/kiwi/kiwi-schema/**"],
|
|
"rules": {
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-non-null-assertion": "off"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": ["node_modules", "dist", "desktop", "*.config.*"]
|
|
}
|