Exchange flow plugin with new one (babel/eslint-config-babel#2)
* Change to eslint-plugin-flowtype * Use new plugin * Make dependencies peerDependencies * Readd babel-eslint
This commit is contained in:
@@ -3,8 +3,8 @@ module.exports = {
|
||||
extends: "eslint:recommended",
|
||||
plugins: ["flow-vars", "babel"],
|
||||
rules: {
|
||||
"flow-vars/define-flow-type": "warn",
|
||||
"flow-vars/use-flow-type": "warn",
|
||||
"flowtype/define-flow-type": "warn",
|
||||
"flowtype/use-flow-type": "warn",
|
||||
quotes: ["error", "double"],
|
||||
"no-var": "error",
|
||||
"keyword-spacing": "error",
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
"url": "https://github.com/babel/babel/tree/master/packages/eslint-config-babel"
|
||||
},
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"peerDependencies": {
|
||||
"babel-eslint": "^6.0.0",
|
||||
"eslint-plugin-babel": "^3.0.0",
|
||||
"eslint-plugin-flow-vars": "^0.4.0"
|
||||
"eslint-plugin-flowtype": "^2.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
||||
Reference in New Issue
Block a user