Skip to content

Commit

Permalink
Adding eslint (#32)
Browse files Browse the repository at this point in the history
* adding eslint dev-dependency

* prettify existing code

* aligning prettier with eslint config
  • Loading branch information
nirgit committed May 9, 2023
1 parent 26d1472 commit 38949df
Show file tree
Hide file tree
Showing 10 changed files with 2,361 additions and 237 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true,
"jest/globals": true
},
"plugins": ["jest"],
"extends": [
"prettier"
],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{"avoidEscape": true}
],
"semi": [
"error",
"never"
],
"jest/no-identical-title": "error"
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ scripts/
.watchmanconfig
.prettierrc.json
.prettierignore
.eslintrc.json
rollup.config.js
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none"
Expand Down

0 comments on commit 38949df

Please sign in to comment.