diff --git a/package.json b/package.json index ddaee03b6..0a2ca93a7 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "build": "npm run clean && npm run build:webpack", "start": "node index.js", "dev": "NODE_ENV=development DEBUG=sql,cache,presenters ./node_modules/.bin/nodemon --watch server index.js", - "lint": "npm run lint:js && npm run lint:flow", + "lint": "npm run lint:flow && npm run lint:js", "lint:js": "eslint frontend", - "lint:flow": "flow check", + "lint:flow": "flow", "deploy": "git push heroku master", "heroku-postbuild": "npm run build && npm run sequelize:migrate", "sequelize:create-migration": "sequelize migration:create", @@ -22,35 +22,19 @@ "precommit": "lint-staged" }, "lint-staged": { - "*.js": [ - "eslint --fix", - "git add" - ] + "*.js": ["eslint --fix", "git add"] }, "jest": { "verbose": false, - "roots": [ - "frontend" - ], + "roots": ["frontend"], "moduleNameMapper": { "^.*[.](s?css|css)$": "/__mocks__/styleMock.js", "^.*[.](gif|ttf|eot|svg)$": "/__test__/fileMock.js" }, - "moduleFileExtensions": [ - "js", - "jsx", - "json" - ], - "moduleDirectories": [ - "node_modules" - ], - "modulePaths": [ - "frontend" - ], - "setupFiles": [ - "/setupJest.js", - "/__mocks__/window.js" - ] + "moduleFileExtensions": ["js", "jsx", "json"], + "moduleDirectories": ["node_modules"], + "modulePaths": ["frontend"], + "setupFiles": ["/setupJest.js", "/__mocks__/window.js"] }, "engines": { "node": ">= 7.6"