Skip to content

Commit

Permalink
Added new linting with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
deamme committed Oct 9, 2018
1 parent b4eaa0c commit bee09f8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"es6": true,
"node": true
},
"extends": ["prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"bracketSpacing": true
}
],
"linebreak-style": ["error", "unix"]
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"main": "index.js",
"license": "GPL-3.0",
"scripts": {
"test": "eslint index.js pointsbot.js chatbot.js constants.js",
"test": "eslint .",
"lint:fix": "eslint . --fix",
"start": "node index"
},
"dependencies": {
Expand All @@ -15,6 +16,9 @@
"matrix-js-sdk": "^0.10.2"
},
"devDependencies": {
"eslint": "^5.6.1"
"eslint": "^5.6.1",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-prettier": "^3.0.0",
"prettier": "^1.14.3"
}
}

0 comments on commit bee09f8

Please sign in to comment.