Skip to content

Commit

Permalink
add eslint rules and formatting (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon authored Feb 14, 2024
1 parent f0e7cee commit 618a112
Show file tree
Hide file tree
Showing 7 changed files with 1,581 additions and 1,113 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
"jest": true
},
"extends": "eslint:recommended",
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "always"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-console": "warn",
"no-unused-vars": "warn",
"no-alert": "error",
"prefer-const": "error",
"no-var": "error",
"arrow-parens": ["error", "always"],
"no-tabs": "error"
},
"parserOptions": {
"ecmaVersion": 2017
}
}
}
Loading

0 comments on commit 618a112

Please sign in to comment.