mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 19:39:13 -04:00
25 lines
776 B
JSON
25 lines
776 B
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"es2022": true,
|
|
"browser": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2022,
|
|
"sourceType": "module"
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"rules": {
|
|
"semi": ["error", "never"],
|
|
"indent": ["warn", 4, { "flatTernaryExpressions": true, "SwitchCase": 1 }],
|
|
"quotes": ["warn", "single"],
|
|
"comma-dangle": ["warn", "always-multiline"],
|
|
"no-trailing-spaces": "warn",
|
|
"no-unused-vars": "warn",
|
|
"no-console": ["warn", { "allow": ["debug", "warn", "error", "assert"] }],
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
|
"no-empty": ["error", { "allowEmptyCatch": true }]
|
|
},
|
|
"reportUnusedDisableDirectives": true
|
|
}
|