Add lint for pre-commit

This commit is contained in:
Zalmoxisus 2019-01-03 17:40:38 +02:00
parent c9b21a578b
commit edd397d7db
4 changed files with 7 additions and 11 deletions

View File

@ -4,7 +4,8 @@
"babel-eslint": "^10.0.0",
"eslint-plugin-react": "7.4.0",
"eslint-plugin-flowtype": "3.2.0",
"lerna": "3.4.2"
"lerna": "3.4.2",
"pre-commit": "^1.1.3"
},
"scripts": {
"lerna": "lerna",
@ -20,5 +21,8 @@
},
"workspaces": [
"packages/*"
],
"pre-commit": [
"lint"
]
}

View File

@ -89,7 +89,6 @@
"simple-element-resize-detector": "^1.1.0",
"styled-components": "^2.2.2"
},
"pre-commit": ["lint"],
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/tests/setup.js"
},

View File

@ -49,8 +49,5 @@
"lodash": "^4.17.11",
"nanoid": "^2.0.0",
"remotedev-serialize": "^0.1.8"
},
"pre-commit": [
"lint"
]
}
}

View File

@ -44,7 +44,6 @@
"json-loader": "^0.5.4",
"lodash.shuffle": "^4.2.0",
"nyan-progress-webpack-plugin": "^1.1.4",
"pre-commit": "^1.1.3",
"raw-loader": "^0.5.1",
"react": "^16.4.2",
"react-bootstrap": "^0.30.6",
@ -87,8 +86,5 @@
"react-json-tree": "^0.11.1",
"react-pure-render": "^1.0.2",
"redux-devtools-themes": "^1.0.0"
},
"pre-commit": [
"lint"
]
}
}