mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Eslint tweaks (#696)
* make eslint styleguide into warnings & drop no-else-return * reintroduce max-warnings=0 * remove unnecessary eslint line disable * reintroduce no-else-return rule
This commit is contained in:
parent
2dd1796351
commit
b7a6ceba68
3 changed files with 9 additions and 11 deletions
14
package.json
14
package.json
|
@ -39,9 +39,9 @@
|
|||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"curly": "error",
|
||||
"curly": "warn",
|
||||
"no-console": [
|
||||
"error",
|
||||
"warn",
|
||||
{
|
||||
"allow": [
|
||||
"warn",
|
||||
|
@ -50,16 +50,16 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"no-else-return": "error",
|
||||
"no-useless-return": "error",
|
||||
"no-else-return": "warn",
|
||||
"no-useless-return": "warn",
|
||||
"prefer-const": [
|
||||
"error",
|
||||
"warn",
|
||||
{
|
||||
"destructuring": "all"
|
||||
}
|
||||
],
|
||||
"prefer-template": "error",
|
||||
"prettier/prettier": "error"
|
||||
"prefer-template": "warn",
|
||||
"prettier/prettier": "warn"
|
||||
}
|
||||
},
|
||||
"homepage": "https://excalidraw.com",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue