mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
* Adding version details to the PWA * Created a coded version.js that can be loaded as a module. * Reverting, and simply identifying the permissible global vars for Vite * Update .eslintrc.js Removing whitespace * Update vite.config.js
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
module.exports = {
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
},
|
|
extends: ["plugin:vue/recommended"],
|
|
env: {
|
|
node: true,
|
|
jquery: true,
|
|
es2017: true,
|
|
browser: true,
|
|
webextensions: true,
|
|
},
|
|
rules: {
|
|
"no-trailing-spaces": "error",
|
|
"eol-last": "error",
|
|
semi: "error",
|
|
"no-extra-semi": "error",
|
|
"comma-dangle": ["error", "always-multiline"],
|
|
"no-var": "error",
|
|
"prefer-template": "error",
|
|
"template-curly-spacing": "error",
|
|
"no-undef": "error",
|
|
'no-duplicate-imports': 'error',
|
|
},
|
|
globals: {
|
|
cordova: true,
|
|
cordovaUI: true,
|
|
ol: true,
|
|
wNumb: true,
|
|
ConfigStorage: true,
|
|
// start cordova bindings, remove after cordova is removed/replace/modularized
|
|
cordova_serial: true,
|
|
fileChooser: true,
|
|
i18n: true,
|
|
appReady: true,
|
|
cordovaChromeapi: true,
|
|
appAvailability: true,
|
|
// end cordova bindings
|
|
|
|
// globals for vite
|
|
__APP_PRODUCTNAME__: "readonly",
|
|
__APP_VERSION__: "readonly",
|
|
__APP_REVISION__: "readonly",
|
|
},
|
|
// ignore src/dist folders
|
|
ignorePatterns: ["src/dist/*"],
|
|
};
|