filesafe/public/js/.eslintrc.json
Bobby Wibowo 00cbd3e76c
Updates
Updated ESLint rule: curly, again.
Mainly to also enabled "consistent" rule, which enforces curly into
else/elseif blocks, if its if block requires curly.

Added support for GET requests to /api/delete route.
Its usage is /api/delete/identifier, where identifier is the filename.
Though just like its POST route, it needs token in the header.
2018-12-19 00:41:42 +07:00

35 lines
473 B
JSON

{
"root": true,
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"browser": true
},
"extends": [
"standard"
],
"rules": {
"curly": [
"error",
"multi",
"consistent"
],
"quotes": [
"error",
"single"
],
"object-shorthand": [
"error",
"always"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
}