1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-13 03:19:56 +03:00
betaflight-configurator/eslint.config.js
Mark Haslinghuis 3b25ba37b8
Remove cordova remnants (#4378)
* Remove cordova remnants

* Remove more after review McGivergim
2025-03-10 20:54:25 +01:00

47 lines
1.3 KiB
JavaScript

import { defineConfig } from "eslint-define-config";
import vuePlugin from "eslint-plugin-vue";
import prettierPlugin from "eslint-plugin-prettier";
import vueParser from "vue-eslint-parser";
export default defineConfig([
{
files: ["**/*.js", "**/*.vue"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
ol: "readonly",
wNumb: "readonly",
ConfigStorage: "readonly",
// globals for vite
__APP_PRODUCTNAME__: "readonly",
__APP_VERSION__: "readonly",
__APP_REVISION__: "readonly",
},
},
plugins: {
vue: vuePlugin,
prettier: prettierPlugin,
},
rules: {
"no-var": "error",
"prefer-template": "error",
"comma-dangle": ["error", "always-multiline"],
indent: [
"error",
4,
{
SwitchCase: 1,
},
],
},
ignores: ["dist/", "*.json", "*.html", "*.less", "*.css", "package.json"],
},
{
files: ["**/*.vue"],
languageOptions: {
parser: vueParser,
},
processor: "vue/vue",
},
]);