2021-07-27 12:33:44 -05:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
2021-07-29 06:23:10 -05:00
|
|
|
es2020: true,
|
2021-07-27 12:33:44 -05:00
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:vue/vue3-recommended",
|
|
|
|
],
|
2021-07-29 23:27:54 -05:00
|
|
|
parser: "@babel/eslint-parser",
|
2021-07-27 12:33:44 -05:00
|
|
|
parserOptions: {
|
|
|
|
sourceType: "module",
|
2021-07-29 23:27:54 -05:00
|
|
|
requireConfigFile: false,
|
2021-07-27 12:33:44 -05:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
// override/add rules settings here, such as:
|
|
|
|
// 'vue/no-unused-vars': 'error'
|
2021-07-28 07:52:49 -05:00
|
|
|
"no-unused-vars": "warn",
|
2021-07-29 06:33:45 -05:00
|
|
|
indent: [
|
|
|
|
"error",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
ignoredNodes: ["TemplateLiteral"],
|
|
|
|
SwitchCase: 1,
|
|
|
|
},
|
|
|
|
],
|
2021-07-27 12:33:44 -05:00
|
|
|
quotes: ["warn", "double"],
|
|
|
|
//semi: ['off', 'never'],
|
|
|
|
"vue/html-indent": ["warn", 4], // default: 2
|
|
|
|
"vue/max-attributes-per-line": "off",
|
2021-07-28 12:01:55 -05:00
|
|
|
"vue/singleline-html-element-content-newline": "off",
|
2021-07-27 12:33:44 -05:00
|
|
|
"no-multi-spaces": ["error", {
|
|
|
|
ignoreEOLComments: true,
|
|
|
|
}],
|
|
|
|
"curly": "error",
|
|
|
|
"object-curly-spacing": ["error", "always"],
|
2021-07-30 09:11:14 -05:00
|
|
|
"object-curly-newline": "off",
|
2021-07-27 12:33:44 -05:00
|
|
|
"object-property-newline": "error",
|
|
|
|
"comma-spacing": "error",
|
|
|
|
"brace-style": "error",
|
|
|
|
"no-var": "error",
|
|
|
|
"key-spacing": "warn",
|
|
|
|
"keyword-spacing": "warn",
|
|
|
|
"space-infix-ops": "warn",
|
|
|
|
"arrow-spacing": "warn",
|
|
|
|
"no-trailing-spaces": "warn",
|
2021-07-30 02:13:51 -05:00
|
|
|
"no-constant-condition": ["error", {
|
|
|
|
"checkLoops": false,
|
|
|
|
}],
|
2021-07-27 12:33:44 -05:00
|
|
|
"space-before-blocks": "warn",
|
|
|
|
//'no-console': 'warn',
|
|
|
|
"no-extra-boolean-cast": "off",
|
|
|
|
"no-multiple-empty-lines": ["warn", {
|
|
|
|
"max": 1,
|
|
|
|
"maxBOF": 0,
|
|
|
|
}],
|
|
|
|
"lines-between-class-members": ["warn", "always", {
|
|
|
|
exceptAfterSingleLine: true,
|
|
|
|
}],
|
|
|
|
"no-unneeded-ternary": "error",
|
|
|
|
"no-else-return": ["error", {
|
|
|
|
"allowElseIf": false,
|
|
|
|
}],
|
|
|
|
"array-bracket-newline": ["error", "consistent"],
|
|
|
|
"eol-last": ["error", "always"],
|
|
|
|
//'prefer-template': 'error',
|
|
|
|
"comma-dangle": ["warn", "always-multiline"],
|
|
|
|
},
|
|
|
|
}
|