Skip to content

Commit

Permalink
Chore: Add ESLint (javascript code linter)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirsiljkovic committed Dec 10, 2018
1 parent 2f35395 commit b5b21be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "eslint:recommended",
"env": {
"browser": true
},
"rules": {
}
}
11 changes: 11 additions & 0 deletions cypress/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"env": {
"es6": true,
"mocha": true
},
globals: {
"Cypress": true,
"cy": true,
"expect": true
},
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev": "npm start -- -o",
"test": "start-server-and-test start http://localhost:8080 test:cypress",
"test:cypress": "cypress run",
"test:watch": "npm start & cypress open"
"test:watch": "npm start & cypress open",
"lint": "eslint . *.js --ignore-pattern 'index.js'"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +26,7 @@
"license": "MIT",
"devDependencies": {
"cypress": "^3.1.2",
"eslint": "^5.9.0",
"http-server": "^0.11.1",
"start-server-and-test": "^1.0.1"
}
Expand Down

0 comments on commit b5b21be

Please sign in to comment.