Added JSHint and JSXHint for linting the code.
This commit is contained in:
25
package.json
25
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scripts": {
|
||||
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js",
|
||||
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js && jsxhint --jsx-only .",
|
||||
"start": "npm install && bower install && gulp"
|
||||
},
|
||||
"jest": {
|
||||
@@ -8,24 +8,23 @@
|
||||
"jest.js"
|
||||
],
|
||||
"testDirectoryName": "tests",
|
||||
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
|
||||
"unmockedModulePathPatterns": [
|
||||
"<rootDir>/node_modules/react"
|
||||
]
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"babel-jest": "^5.3.0",
|
||||
"chai": "^3.0.0",
|
||||
"gulp": "^3.8.8",
|
||||
"jest-cli": "^0.4.12",
|
||||
"jshint": "^2.8.0",
|
||||
"jsxhint": "^0.15.1",
|
||||
"laravel-elixir": "*",
|
||||
"react-tools": "^0.13.3",
|
||||
"mocha": "^2.2.5",
|
||||
"mocha-sinon": "^1.1.4",
|
||||
"mocha-traceur": "^2.1.0",
|
||||
"sinon": "^1.14.1",
|
||||
"babel": "^5.5.6",
|
||||
"chai": "^3.0.0"
|
||||
"react-tools": "^0.13.3",
|
||||
"sinon": "^1.14.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^3.3.4",
|
||||
@@ -33,5 +32,17 @@
|
||||
"jquery": "^2.1.3",
|
||||
"moment": "^2.10.3",
|
||||
"react": "^0.13.3"
|
||||
},
|
||||
"jshintConfig": {
|
||||
"asi": false,
|
||||
"browser": true,
|
||||
"curly": false,
|
||||
"expr": true,
|
||||
"indent": 4,
|
||||
"loopfunc": true,
|
||||
"node": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"white": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user