Skip to content

Commit

Permalink
ESLint and Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Mar 6, 2021
1 parent cae763f commit e40f7ec
Show file tree
Hide file tree
Showing 7 changed files with 1,200 additions and 123 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
elm.js
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"root": true,
"extends": ["eslint:recommended"],
"env": {
"node": true
},
"rules": {
"one-var": [
"error",
{
"var": "always",
"separateRequires": true
}
],
"no-restricted-syntax": [
"error",
{
"selector": "SequenceExpression",
"message": "The comma operator is confusing and a common mistake. Don’t use it!"
}
]
}
}
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
elm.js
elm*.json
package*.json
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"proseWrap": "never"
}
Loading

0 comments on commit e40f7ec

Please sign in to comment.