Skip to content
Permalink
Browse files

chore(lint): use eslint

  • Loading branch information...
blond committed Nov 3, 2017
1 parent 5b584a7 commit c5c12cb45b36a350ae0b9228b689c2ca90a38c17
Showing with 30 additions and 76 deletions.
  1. +3 −0 .eslintignore
  2. +23 −0 .eslintrc.yml
  3. +0 −63 .jscsrc
  4. +0 −8 .jshintrc
  5. +4 −5 package.json
@@ -0,0 +1,3 @@
node_modules
test/fixtures
coverage
@@ -0,0 +1,23 @@
parserOptions:
ecmaVersion: 2016

env:
node: true
es6: true

extends: pedant

rules:
no-proto: off
no-shadow: off

overrides:
files: test/**/*.js
env:
mocha: true
globals:
sinon: false
expect: false
chai: false
rules:
no-unused-expressions: off
63 .jscsrc

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -67,9 +67,9 @@
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"deasync": "^0.1.7",
"eslint": "^4.10.0",
"eslint-config-pedant": "^1.0.0",
"istanbul": "^0.4.3",
"jscs": "^3.0.4",
"jshint": "^2.9.2",
"mocha": "^4.0.1",
"mock-enb": "^0.3.2",
"mock-fs": "^4.2.0",
@@ -82,12 +82,11 @@
},
"main": "lib/api/index",
"scripts": {
"test": "npm run jshint && npm run check-style && npm run unit-test && npm run tech-test",
"jshint": "jshint .",
"test": "npm run lint && npm run unit-test && npm run tech-test",
"lint": "eslint .",
"unit-test": "mocha test/lib",
"tech-test": "mocha test/techs",
"build-sample-proj": "node ./bin/enb make -n --graph --dir test/fixtures/sample-project",
"check-style": "jscs lib test",
"coverage": "istanbul cover _mocha -- -R dot test/lib",
"coveralls": "npm i coveralls && istanbul cover _mocha -- -R dot test/lib --report lcovonly && cat ./coverage/lcov.info | coveralls"
},

0 comments on commit c5c12cb

Please sign in to comment.
You can’t perform that action at this time.