60 строки
1.3 KiB
JSON
60 строки
1.3 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"plugin:vue/recommended",
|
|
"prettier",
|
|
"prettier/vue",
|
|
"plugin:prettier/recommended",
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "vue-eslint-parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module",
|
|
"parser": "@typescript-eslint/parser"
|
|
},
|
|
"plugins": ["vue", "prettier"],
|
|
"rules": {
|
|
"arrow-spacing": [
|
|
2,
|
|
{
|
|
"before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/no-array-constructor": "off",
|
|
//"array-bracket-spacing": [2, "always"],
|
|
"block-spacing": [2, "always"],
|
|
"camelcase": [
|
|
1,
|
|
{
|
|
"properties": "always"
|
|
}
|
|
],
|
|
// "space-in-parens": [2, "always"],
|
|
"keyword-spacing": 2,
|
|
"semi": "off",
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
"space-unary-ops": [
|
|
2,
|
|
{
|
|
"words": true,
|
|
"nonwords": false
|
|
}
|
|
],
|
|
"no-continue": "off",
|
|
"no-prototype-builtins": "off",
|
|
"vue/require-default-prop": "off",
|
|
"vue/no-v-html": "off"
|
|
}
|
|
}
|