mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Co-authored-by: samfreund <techguy763@gmail.com> Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
import pluginVue from "eslint-plugin-vue";
|
|
import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";
|
|
|
|
import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";
|
|
|
|
export default defineConfigWithVueTs(
|
|
pluginVue.configs["flat/recommended"],
|
|
vueTsConfigs.recommended,
|
|
skipFormattingConfig,
|
|
{
|
|
ignores: ["**/dist/**"]
|
|
},
|
|
{
|
|
//extends: ["js/recommended"],
|
|
rules: {
|
|
quotes: ["error", "double"],
|
|
"comma-dangle": ["error", "never"],
|
|
|
|
"comma-spacing": [
|
|
"error",
|
|
{
|
|
before: false,
|
|
after: true
|
|
}
|
|
],
|
|
|
|
semi: ["error", "always"],
|
|
"eol-last": "error",
|
|
"object-curly-spacing": ["error", "always"],
|
|
"quote-props": ["error", "as-needed"],
|
|
"no-case-declarations": "off",
|
|
"vue/require-default-prop": "off",
|
|
"vue/v-on-event-hyphenation": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"vue/valid-v-slot": ["error", { allowModifiers: true }]
|
|
}
|
|
}
|
|
);
|