Setup eslint (#153)

This commit is contained in:
shwin 2022-05-12 22:17:08 +08:00 committed by GitHub
parent 1690be646c
commit 94f2552ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

2
.eslintignore Normal file
View file

@ -0,0 +1,2 @@
/rust
/assets

15
.eslintrc.js Normal file
View file

@ -0,0 +1,15 @@
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-undef": "off",
"no-unused-vars": "off"
}
}