mirror of
https://github.com/louislam/dockge.git
synced 2024-11-30 14:24:02 +00:00
98 lines
3.1 KiB
JavaScript
98 lines
3.1 KiB
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
env: {
|
||
|
browser: true,
|
||
|
node: true,
|
||
|
},
|
||
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
"plugin:vue/vue3-recommended",
|
||
|
],
|
||
|
parser: "vue-eslint-parser",
|
||
|
parserOptions: {
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
},
|
||
|
plugins: [
|
||
|
"@typescript-eslint",
|
||
|
"jsdoc"
|
||
|
],
|
||
|
rules: {
|
||
|
"yoda": "error",
|
||
|
"linebreak-style": [ "error", "unix" ],
|
||
|
"camelcase": [ "warn", {
|
||
|
"properties": "never",
|
||
|
"ignoreImports": true
|
||
|
}],
|
||
|
"no-unused-vars": [ "warn", {
|
||
|
"args": "none"
|
||
|
}],
|
||
|
indent: [
|
||
|
"error",
|
||
|
4,
|
||
|
{
|
||
|
ignoredNodes: [ "TemplateLiteral" ],
|
||
|
SwitchCase: 1,
|
||
|
},
|
||
|
],
|
||
|
quotes: [ "error", "double" ],
|
||
|
semi: "error",
|
||
|
"vue/html-indent": [ "error", 4 ], // default: 2
|
||
|
"vue/max-attributes-per-line": "off",
|
||
|
"vue/singleline-html-element-content-newline": "off",
|
||
|
"vue/html-self-closing": "off",
|
||
|
"vue/require-component-is": "off", // not allow is="style" https://github.com/vuejs/eslint-plugin-vue/issues/462#issuecomment-430234675
|
||
|
"vue/attribute-hyphenation": "off", // This change noNL to "no-n-l" unexpectedly
|
||
|
"vue/multi-word-component-names": "off",
|
||
|
"no-multi-spaces": [ "error", {
|
||
|
ignoreEOLComments: true,
|
||
|
}],
|
||
|
"array-bracket-spacing": [ "warn", "always", {
|
||
|
"singleValue": true,
|
||
|
"objectsInArrays": false,
|
||
|
"arraysInArrays": false
|
||
|
}],
|
||
|
"space-before-function-paren": [ "error", {
|
||
|
"anonymous": "always",
|
||
|
"named": "never",
|
||
|
"asyncArrow": "always"
|
||
|
}],
|
||
|
"curly": "error",
|
||
|
"object-curly-spacing": [ "error", "always" ],
|
||
|
"object-curly-newline": "off",
|
||
|
"object-property-newline": "error",
|
||
|
"comma-spacing": "error",
|
||
|
"brace-style": "error",
|
||
|
"no-var": "error",
|
||
|
"key-spacing": "warn",
|
||
|
"keyword-spacing": "warn",
|
||
|
"space-infix-ops": "error",
|
||
|
"arrow-spacing": "warn",
|
||
|
"no-trailing-spaces": "error",
|
||
|
"no-constant-condition": [ "error", {
|
||
|
"checkLoops": false,
|
||
|
}],
|
||
|
"space-before-blocks": "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",
|
||
|
"array-bracket-newline": [ "error", "consistent" ],
|
||
|
"eol-last": [ "error", "always" ],
|
||
|
"comma-dangle": [ "warn", "only-multiline" ],
|
||
|
"no-empty": [ "error", {
|
||
|
"allowEmptyCatch": true
|
||
|
}],
|
||
|
"no-control-regex": "off",
|
||
|
"one-var": [ "error", "never" ],
|
||
|
"max-statements-per-line": [ "error", { "max": 1 }],
|
||
|
"@typescript-eslint/ban-ts-comment": "off",
|
||
|
"prefer-const" : "off",
|
||
|
},
|
||
|
};
|