118 lines
3.7 KiB
Plaintext
118 lines
3.7 KiB
Plaintext
{
|
|
"root": true,
|
|
"extends": [
|
|
"standard"
|
|
],
|
|
"plugins": [
|
|
"html"
|
|
],
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
// "requireConfigFile": false
|
|
},
|
|
"rules": {
|
|
"no-new": "off",
|
|
"camelcase": "off",
|
|
"no-return-assign": "off",
|
|
"space-before-function-paren": ["error", "never"],
|
|
"no-var": "error",
|
|
"no-fallthrough": "off",
|
|
"prefer-promise-reject-errors": "off",
|
|
"eqeqeq": "off",
|
|
"no-multiple-empty-lines": [1, {"max": 2}],
|
|
"comma-dangle": [2, "always-multiline"],
|
|
"standard/no-callback-literal": "off",
|
|
"prefer-const": "off",
|
|
"no-labels": "off",
|
|
"node/no-callback-literal": "off"
|
|
},
|
|
"ignorePatterns": ["vendors", "*.min.js", "dist"],
|
|
"overrides": [
|
|
{
|
|
"files": [ "*.vue" ],
|
|
"rules": {
|
|
"no-new": "off",
|
|
"camelcase": "off",
|
|
"no-return-assign": "off",
|
|
"space-before-function-paren": ["error", "never"],
|
|
"no-var": "error",
|
|
"no-fallthrough": "off",
|
|
"prefer-promise-reject-errors": "off",
|
|
"eqeqeq": "off",
|
|
"no-multiple-empty-lines": [1, {"max": 2}],
|
|
"comma-dangle": [2, "always-multiline"],
|
|
"standard/no-callback-literal": "off",
|
|
"prefer-const": "off",
|
|
"no-labels": "off",
|
|
"node/no-callback-literal": "off",
|
|
"vue/multi-word-component-names": "off",
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/space-before-function-paren": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/naming-convention": "off",
|
|
"vue/max-attributes-per-line": "off",
|
|
"vue/singleline-html-element-content-newline": "off",
|
|
"vue/use-v-on-exact": "off",
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
// "no-undef": "off"
|
|
},
|
|
"parser": "vue-eslint-parser",
|
|
"extends": [
|
|
"plugin:vue/base",
|
|
// "plugin:vue/strongly-recommended"
|
|
"plugin:vue/vue3-recommended",
|
|
"standard-with-typescript",
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"parser": {
|
|
// Script parser for `<script>`
|
|
"js": "@typescript-eslint/parser",
|
|
|
|
// Script parser for `<script lang="ts">`
|
|
"ts": "@typescript-eslint/parser"
|
|
},
|
|
"extraFileExtensions": [".vue"]
|
|
}
|
|
},
|
|
{
|
|
"files": [ "*.ts" ],
|
|
"rules": {
|
|
"no-new": "off",
|
|
"camelcase": "off",
|
|
"no-return-assign": "off",
|
|
"space-before-function-paren": ["error", "never"],
|
|
"no-var": "error",
|
|
"no-fallthrough": "off",
|
|
"prefer-promise-reject-errors": "off",
|
|
"eqeqeq": "off",
|
|
"no-multiple-empty-lines": [1, {"max": 2}],
|
|
"comma-dangle": [2, "always-multiline"],
|
|
"standard/no-callback-literal": "off",
|
|
"prefer-const": "off",
|
|
"no-labels": "off",
|
|
"node/no-callback-literal": "off",
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/space-before-function-paren": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/restrict-template-expressions": [1, {
|
|
"allowBoolean": true
|
|
}],
|
|
"@typescript-eslint/naming-convention": "off",
|
|
"@typescript-eslint/return-await": "off",
|
|
"multiline-ternary": "off",
|
|
"@typescript-eslint/comma-dangle": "off",
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": [
|
|
"standard-with-typescript"
|
|
],
|
|
"parserOptions": {
|
|
"project": "./src/**/tsconfig.json"
|
|
}
|
|
}
|
|
]
|
|
}
|