2017-10-26 15:18:08 +08:00
|
|
|
{
|
2019-09-28 19:20:26 +08:00
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"jasmine": true,
|
|
|
|
"jest": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"parser": "babel-eslint"
|
|
|
|
},
|
|
|
|
"extends": ["plugin:vue/recommended", "prettier"],
|
|
|
|
"plugins": ["markdown"],
|
2020-04-05 21:38:32 +08:00
|
|
|
"overrides": [
|
|
|
|
{
|
2020-05-15 11:18:05 +08:00
|
|
|
"files": ["**/demo/*.md"],
|
|
|
|
"processor": "markdown/markdown",
|
2020-04-05 21:38:32 +08:00
|
|
|
"rules": {
|
|
|
|
"no-console": "off"
|
|
|
|
}
|
2020-09-08 13:33:55 +08:00
|
|
|
},
|
|
|
|
{
|
2020-09-30 17:35:51 +08:00
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
"extends": [
|
|
|
|
"@vue/typescript/recommended",
|
|
|
|
"@vue/prettier",
|
|
|
|
"@vue/prettier/@typescript-eslint"
|
|
|
|
],
|
2020-09-08 13:33:55 +08:00
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-explicit-any": 0,
|
2020-09-30 17:15:17 +08:00
|
|
|
"@typescript-eslint/ban-types": 0,
|
2020-09-30 18:17:04 +08:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
2020-10-03 15:54:52 +08:00
|
|
|
"@typescript-eslint/no-empty-function": 0,
|
2020-10-19 16:43:10 +08:00
|
|
|
"@typescript-eslint/no-non-null-assertion": 0,
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }]
|
2020-09-08 13:33:55 +08:00
|
|
|
}
|
2020-04-05 21:38:32 +08:00
|
|
|
}
|
|
|
|
],
|
2019-09-28 19:20:26 +08:00
|
|
|
"rules": {
|
|
|
|
"comma-dangle": [2, "always-multiline"],
|
|
|
|
"no-var": "error",
|
2020-03-18 14:52:02 +08:00
|
|
|
"no-console": [2, { "allow": ["warn", "error"] }],
|
|
|
|
"object-shorthand": 2,
|
|
|
|
"no-unused-vars": [2, { "ignoreRestSiblings": true, "argsIgnorePattern": "^h$" }],
|
|
|
|
"no-undef": 2,
|
2019-09-28 19:20:26 +08:00
|
|
|
"camelcase": "off",
|
|
|
|
"no-extra-boolean-cast": "off",
|
|
|
|
"semi": ["error", "always"],
|
|
|
|
"vue/require-prop-types": "off",
|
|
|
|
"vue/require-default-prop": "off",
|
|
|
|
"vue/no-reserved-keys": "off",
|
2020-05-15 11:18:05 +08:00
|
|
|
"vue/comment-directive": "off",
|
2019-09-28 19:20:26 +08:00
|
|
|
"vue/prop-name-casing": "off",
|
|
|
|
"vue/max-attributes-per-line": [
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"singleline": 20,
|
|
|
|
"multiline": {
|
|
|
|
"max": 1,
|
|
|
|
"allowFirstLine": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-03-18 14:52:02 +08:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"h": true
|
2019-09-28 19:20:26 +08:00
|
|
|
}
|
|
|
|
}
|