DEV: uses central eslint-config-discourse (#8150)

* DEV: uses centrain eslint-config-discourse

Discourse project or plugins can now have a central configuration by doing:

`yarn add  --dev eslint-config-discourse@latest`

* adds postinstall script
This commit is contained in:
Joffrey JAFFEUX
2019-10-08 02:56:24 +02:00
committed by Sam
parent 2d4c9bbaac
commit 3f172deab5
3 changed files with 578 additions and 134 deletions

View File

@@ -43,6 +43,8 @@
"chrome-launcher": "^0.10",
"chrome-remote-interface": "^0.25",
"eslint": "^4.19",
"eslint-config-discourse": "1.0.5",
"install-peerdeps": "^1.10.2",
"lodash-cli": "https://github.com/lodash-archive/lodash-cli.git",
"pretender": "^1.6",
"prettier": "^1.18.2",
@@ -52,6 +54,7 @@
"sinon": "^7.2.5"
},
"scripts": {
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')\""
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')\"",
"postinstall": "install-peerdeps --dev eslint-config-discourse -Y --extra-args \"--ignore-scripts\""
}
}