Skip to content

Commit

Permalink
This should clean up several problems with eslint and prettier - Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ktiedt committed Oct 30, 2019
1 parent 0995973 commit e4dd9c1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 190 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github
node_modules
deploy
assets.js
package-lock.json
186 changes: 0 additions & 186 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github
node_modules
deploy
assets.js
package-lock.json
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"printWidth": 100,
"singleQuote": true,
"useTabs": true,
"trailingComma": "none"
"trailingComma": "all"
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"start": "cross-env NODE_ENV=production node server.js",
"start:dev": "cross-env NODE_ENV=development node server.js",
"assetLister": "node ./assetLister.js",
"lint": "eslint -c .eslintrc.json --ignore-pattern assets.js src/*.js src/**/*.js",
"lint-fix": "eslint -c .eslintrc.json --fix --ignore-pattern assets.js src/*.js src/**/*.js",
"lint": "eslint src/*.js src/**/*.js",
"lint-fix": "eslint --fix src/*.js src/**/*.js",
"format": "prettier-eslint --write \"src/**/*.js\"",
"precommit": "lint-staged",
"eslint-check": "eslint --print-config .eslintrc.json | eslint-config-prettier-check",
Expand All @@ -70,7 +70,7 @@
"concurrent": false,
"linters": {
"*.{js,json,less,md}": ["prettier --write", "git add"],
"*.js": ["eslint -c .eslintrc.json --fix", "git add"]
"*.js": ["eslint --fix", "git add"]
}
},
"collective": {
Expand Down

0 comments on commit e4dd9c1

Please sign in to comment.