filesafe/.eslintrc.json
Bobby Wibowo 1980d536db
Initialize upload filters for regular users (WIP)
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.
2020-05-03 02:39:24 +07:00

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
}
}