2022-02-12 02:02:21 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"firebase": "readonly",
|
|
|
|
"$": "readonly",
|
|
|
|
"moment": "readonly",
|
|
|
|
"jQuery": "readonly",
|
|
|
|
"html2canvas": "readonly",
|
|
|
|
"ClipboardItem": "readonly",
|
|
|
|
"grecaptcha": "readonly"
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:json/recommended",
|
2022-02-12 06:34:40 +08:00
|
|
|
"plugin:require-path-exists/recommended"
|
2022-02-12 02:02:21 +08:00
|
|
|
],
|
2022-02-12 06:34:40 +08:00
|
|
|
"plugins": ["json", "require-path-exists"],
|
2022-02-12 02:02:21 +08:00
|
|
|
"parserOptions": {
|
2022-02-12 06:34:40 +08:00
|
|
|
"ecmaVersion": 13,
|
2022-02-12 02:02:21 +08:00
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"json/*": ["error"],
|
|
|
|
"indent": ["off"], //handled by prettier
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"double",
|
|
|
|
{ "allowTemplateLiterals": true, "avoidEscape": true }
|
|
|
|
],
|
|
|
|
"semi": ["error", "always"],
|
2022-02-12 06:34:40 +08:00
|
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^(_|e|event)" }],
|
2022-02-12 02:02:21 +08:00
|
|
|
"no-empty": ["error", { "allowEmptyCatch": true }],
|
|
|
|
"require-path-exists/notEmpty": 2,
|
|
|
|
"require-path-exists/tooManyArguments": 2,
|
|
|
|
"require-path-exists/exists": [
|
|
|
|
2,
|
|
|
|
{
|
2022-02-12 06:34:40 +08:00
|
|
|
"extensions": ["", ".ts", ".js", ".es.js", ".json5", ".es", ".es6"]
|
2022-02-12 02:02:21 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|