Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Jan 13, 2021
1 parent 354445e commit a9ebc02
Show file tree
Hide file tree
Showing 31 changed files with 2,190 additions and 1,054 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-empty": [
"error",
{ "allowEmptyCatch": true }
],
"no-unused-vars": "warn",
"no-redeclare": "warn",
"no-constant-condition": "warn",
"no-useless-escape": "warn",
"no-case-declarations": "warn",
}
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
.vscode
data
data
Loading

0 comments on commit a9ebc02

Please sign in to comment.