Skip to content

Commit

Permalink
add linting with ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Dec 21, 2017
1 parent 0002b11 commit d5349d2
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 124 deletions.
10 changes: 10 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"plugin:cypress-dev/general",
"plugin:cypress-dev/tests"
],
"globals": {
"cy": true,
"Cypress": true
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ build/Release
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
cypress/videos
cypress/screenshots
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"standard.enable": false,
"eslint.enable": true,
"prettier.eslintIntegration": true
}
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ dependencies:

test:
pre:
## lint our code
- npm run lint

## runs the 'start' script which
## boots our local app server on port 8080
## which cypress expects to be running
Expand Down
Loading

0 comments on commit d5349d2

Please sign in to comment.