Skip to content

Commit

Permalink
Replace eslint-config-pretty-standard with eslint-config-{prettier,st…
Browse files Browse the repository at this point in the history
…andard}, add eslint-plugin-mocha
  • Loading branch information
papandreou committed Jul 21, 2019
1 parent 2dc6cb3 commit 8dc9815
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": ["standard", "prettier", "prettier/standard"],
"plugins": ["import", "mocha"],
"env": {
"mocha": true
},
"rules": {
"prefer-template": "error",
"mocha/no-exclusive-tests": "error",
"mocha/no-nested-tests": "error",
"mocha/no-identical-title": "error",
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
]
}
}
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "https://github.com/unexpectedjs/unexpected-sinon"
},
"scripts": {
"lint": "eslint .",
"lint": "eslint . && prettier --check '**/*.js'",
"test": "mocha --require unexpected-markdown test/*.js `find documentation -name '*.md'`",
"test-headless": "karma start --single-run",
"test-browser": "serve .",
Expand All @@ -34,9 +34,13 @@
"devDependencies": {
"coveralls": "^3.0.0",
"eslint": "^6.0.0",
"eslint-config-pretty-standard": "^2.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha": "^6.0.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"karma": "^4.1.0",
"karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^1.3.0",
Expand Down

0 comments on commit 8dc9815

Please sign in to comment.