banana_split/.eslintrc.js
Kirill Pimenov e27865e53b
Fix linter issues
Now that the rules are much more pedantic there are quite some places
where we are inconsistent with codestyle; all security issues detected
were false positives, though.
2020-08-03 20:38:37 +02:00

42 lines
780 B
JavaScript

module.exports = {
parser: "vue-eslint-parser", // Specifies the ESLint parser
extends: [
"eslint:recommended",
"plugin:vue/recommended",
"plugin:prettier/recommended",
"plugin:security/recommended"
],
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
ecmaFeatures: {
globalReturn: false,
impliedStrict: false,
jsx: false
}
},
env: {
browser: true,
node: true
},
rules: {
"vue/html-self-closing": [
"warning",
{
html: "never"
}
],
"vue/v-on-style": ["warning", "longform"],
"vue/max-attributes-per-line": [
"warning",
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: true
}
}
]
}
};