Skip to content

Commit

Permalink
Added prettier for formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rewerts authored and smellems committed May 2, 2019
1 parent 1346878 commit 46dfba4
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2018
},
"plugins": ["prettier"],
"env": {
"browser": true,
"es6": true
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": "off"
"prettier/prettier": "error",
"no-console": "off"
}
}
3 changes: 3 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tabWidth: 2
semi: true
singleQuote: true
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"lint": "eslint assets/js/src/**",
"prettify": "eslint assets/js/src/** --fix",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -24,6 +25,8 @@
},
"homepage": "https://github.com/canada-ca/ore-ero#readme",
"devDependencies": {
"eslint": "^5.16.0"
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.0.1",
"prettier": "^1.17.0"
}
}

0 comments on commit 46dfba4

Please sign in to comment.