monkeytype/old_js.eslintrc.json

48 lines
1.1 KiB
JSON
Raw Normal View History

{
"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 06:34:40 +08:00
"plugins": ["json", "require-path-exists"],
"parserOptions": {
2022-02-12 06:34:40 +08:00
"ecmaVersion": 13,
"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)" }],
"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"]
}
]
}
}