Skip to content

Commit

Permalink
Drop Prettier and just use ESLint
Browse files Browse the repository at this point in the history
There have been problems for a while with Prettier and ESLint fighting
with each other (despite ESLint being configured to not do formatting).
ESLint can do everything we want in the way of both formatting and
linting. So I have removed Prettier and we are now just using ESLint
  • Loading branch information
Andrew Isherwood committed Sep 14, 2020
1 parent f38d664 commit 7386eef
Show file tree
Hide file tree
Showing 20 changed files with 669 additions and 35 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/migrations
52 changes: 52 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"env": {
"node": true,
"commonjs": true,
"jest": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"max-len": [
"error", {
"code": 80,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"comma-dangle": [
"error",
"never"
]
},
"overrides": [
{
"files": [ "*.yaml" ],
"rules": {
"indent": [
"error",
2
]
}
}
]
}
14 changes: 0 additions & 14 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 7386eef

Please sign in to comment.