Added ESlint config

pull/42/head
MillenniumEarl 2020-10-28 11:51:26 +01:00
parent 63a7a9a3a0
commit bf3b29acd5
1 changed files with 35 additions and 0 deletions

35
.eslintrc.json Normal file
View File

@ -0,0 +1,35 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "./node_modules/babel-eslint",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-unused-vars": [
"error",
"after-used"
]
}
}