betaflight-configurator/.eslintrc.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

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",
2021-12-19 06:51:44 +00:00
"prefer-template": "error",
2021-12-19 07:10:24 +00:00
"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
},
};