2020-10-01 22:00:36 +00:00
|
|
|
module.exports = {
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
2021-12-18 07:21:05 +00:00
|
|
|
sourceType: "module",
|
2020-10-01 22:00:36 +00:00
|
|
|
},
|
|
|
|
extends: ["plugin:vue/recommended"],
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
jquery: true,
|
|
|
|
es2017: true,
|
|
|
|
browser: true,
|
2021-12-18 07:21:05 +00:00
|
|
|
webextensions: true,
|
2020-10-01 22:00:36 +00:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"no-trailing-spaces": "error",
|
2021-02-14 06:37:03 +00:00
|
|
|
"eol-last": "error",
|
2021-12-18 07:21:05 +00:00
|
|
|
semi: "error",
|
2022-08-19 21:17:02 +00:00
|
|
|
"no-extra-semi": "error",
|
2021-12-18 07:21:05 +00:00
|
|
|
"comma-dangle": ["error", "always-multiline"],
|
2021-12-18 06:50:51 +00:00
|
|
|
"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",
|
2023-01-15 22:40:23 +00:00
|
|
|
"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
|
2021-12-18 07:21:05 +00:00
|
|
|
},
|
|
|
|
};
|