mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Add linting to our mocha suite
This commit is contained in:
parent
8fde8a8921
commit
1cafdb8b1d
@ -5,7 +5,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "gulp dev",
|
||||
"test": "mocha --require test/helper.js --compilers js:babel-register --recursive && gulp lint",
|
||||
"test": "mocha --require test/helper.js --compilers js:babel-register --recursive",
|
||||
"watch": "mocha watch --compilers js:babel-register --recursive"
|
||||
},
|
||||
"browserify": {
|
||||
@ -89,6 +89,7 @@
|
||||
"jshint-stylish": "~0.1.5",
|
||||
"lodash.assign": "^4.0.6",
|
||||
"mocha": "^2.4.5",
|
||||
"mocha-eslint": "^2.1.1",
|
||||
"mocha-jsdom": "^1.1.0",
|
||||
"mocha-sinon": "^1.1.5",
|
||||
"sinon": "^1.17.3",
|
||||
|
9
test/unit/linting_test.js
Normal file
9
test/unit/linting_test.js
Normal file
@ -0,0 +1,9 @@
|
||||
// LINTING:
|
||||
const lint = require('mocha-eslint');
|
||||
const lintPaths = ['app/**/*.js', 'ui/**/*.js', '!node_modules/**', '!dist/**', '!docs/**', '!app/scripts/chromereload.js']
|
||||
|
||||
const lintOptions = {
|
||||
strict: true,
|
||||
}
|
||||
|
||||
lint(lintPaths, lintOptions)
|
Loading…
Reference in New Issue
Block a user