Skip to content

Commit

Permalink
enable jasmine for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ferclaverino committed Dec 4, 2016
1 parent 8629a16 commit 715efd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,14 @@
{ {
"env": { "env": {
"es6": true, "es6": true,
"jasmine": true,
"node": true "node": true
}, },
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {
"sourceType": "module" "sourceType": "module"
}, },
"plugins": ["jasmine"],
"rules": { "rules": {
"indent": [ "indent": [
"error", "error",
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "0.0.1", "version": "0.0.1",
"description": "", "description": "",
"scripts": { "scripts": {
"eslint": "eslint \"*.js\"",
"start": "node manual/main.js", "start": "node manual/main.js",
"test": "npm run eslint" "test": "npm run eslint",
"test:eslint": "eslint \"**/*.js\"",
"test:unit": "jasmine",
"test:unit:watch": "chokidar 'spec/*.js' -c 'npm run test:unit'"
}, },
"author": "", "author": "",
"license": "MIT", "license": "MIT",
Expand All @@ -14,6 +16,9 @@
"keypress": "^0.2.1" "keypress": "^0.2.1"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^3.11.1" "chokidar-cli": "^1.2.0",
"eslint": "^3.11.1",
"eslint-plugin-jasmine": "^2.2.0",
"jasmine": "^2.5.2"
} }
} }

0 comments on commit 715efd8

Please sign in to comment.