mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
1980d536db
Updated ESLint's ECMA version to 9 (2018). I'll need to use some lookbehind regex directives from now on. It's supported since Node 10, which is the oldest version I'll support. Refactored "can not" -> "cannot". Filtering for regular users is still work in progress. Some features aren't working as expected yet.
38 lines
559 B
JSON
38 lines
559 B
JSON
{
|
|
"root": true,
|
|
"parserOptions": {
|
|
"ecmaVersion": 9
|
|
},
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"standard"
|
|
],
|
|
"rules": {
|
|
"curly": [
|
|
"error",
|
|
"multi",
|
|
"consistent"
|
|
],
|
|
"no-throw-literal": 0,
|
|
"no-var": "error",
|
|
"prefer-const": [
|
|
"error",
|
|
{
|
|
"destructuring": "any",
|
|
"ignoreReadBeforeAssign": false
|
|
}
|
|
],
|
|
"object-shorthand": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"standard/no-callback-literal": 0
|
|
}
|
|
}
|