2018-08-07 21:47:50 +00:00
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"jasmine": true,
|
|
|
|
"amd": true
|
|
|
|
},
|
2019-12-04 20:39:09 +00:00
|
|
|
"globals": {
|
|
|
|
"_": "readonly"
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2020-04-24 18:53:31 +00:00
|
|
|
"plugin:vue/recommended"
|
2019-12-04 20:39:09 +00:00
|
|
|
],
|
|
|
|
"parser": "vue-eslint-parser",
|
2018-08-07 21:47:50 +00:00
|
|
|
"parserOptions": {
|
2019-12-04 20:39:09 +00:00
|
|
|
"parser": "babel-eslint",
|
2018-08-07 21:47:50 +00:00
|
|
|
"allowImportExportEverywhere": true,
|
|
|
|
"ecmaVersion": 2015,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-bitwise": "error",
|
|
|
|
"curly": "error",
|
|
|
|
"eqeqeq": "error",
|
|
|
|
"guard-for-in": "error",
|
|
|
|
"no-extend-native": "error",
|
|
|
|
"no-inner-declarations": "off",
|
|
|
|
"no-use-before-define": ["error", "nofunc"],
|
|
|
|
"no-caller": "error",
|
|
|
|
"no-sequences": "error",
|
|
|
|
"no-irregular-whitespace": "error",
|
|
|
|
"no-new": "error",
|
|
|
|
"no-shadow": "error",
|
|
|
|
"no-undef": "error",
|
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"vars": "all",
|
|
|
|
"args": "none"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-console": "off",
|
|
|
|
"no-trailing-spaces": "error",
|
|
|
|
"space-before-function-paren": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"anonymous": "always",
|
|
|
|
"asyncArrow": "always",
|
|
|
|
"named": "never",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"array-bracket-spacing": "error",
|
|
|
|
"space-in-parens": "error",
|
|
|
|
"space-before-blocks": "error",
|
|
|
|
"comma-dangle": "error",
|
|
|
|
"eol-last": "error",
|
|
|
|
"new-cap": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"capIsNew": false,
|
|
|
|
"properties": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"dot-notation": "error",
|
2019-12-04 20:39:09 +00:00
|
|
|
"indent": ["error", 4],
|
|
|
|
"vue/html-indent": [
|
|
|
|
"error",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
"attribute": 1,
|
|
|
|
"baseIndent": 0,
|
|
|
|
"closeBracket": 0,
|
|
|
|
"alignAttributesVertically": true,
|
|
|
|
"ignores": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"vue/html-self-closing": ["error",
|
|
|
|
{
|
|
|
|
"html": {
|
|
|
|
"void": "never",
|
|
|
|
"normal": "never",
|
|
|
|
"component": "always"
|
|
|
|
},
|
|
|
|
"svg": "always",
|
|
|
|
"math": "always"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"vue/max-attributes-per-line": ["error", {
|
|
|
|
"singleline": 1,
|
|
|
|
"multiline": {
|
|
|
|
"max": 1,
|
|
|
|
"allowFirstLine": true
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
"vue/multiline-html-element-content-newline": "off",
|
|
|
|
"vue/singleline-html-element-content-newline": "off"
|
2018-08-07 21:47:50 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*Spec.js"],
|
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"vars": "all",
|
|
|
|
"args": "none",
|
|
|
|
"varsIgnorePattern": "controller",
|
|
|
|
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|