lint init

This commit is contained in:
HaveAGitGat 2020-12-10 17:43:41 +01:00
parent a71f5e28ae
commit 7904647075
107 changed files with 1772 additions and 154624 deletions

30
.eslintrc.json Normal file
View file

@ -0,0 +1,30 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"class-methods-use-this": 0,
"no-case-declarations": 0,
"camelcase": 0,
"jsx-a11y/click-events-have-key-events": 0,
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"max-len": [
"error",
{
"code": 120
}
]
}
}