Commit b1ce4598 authored by Keyan Zhang's avatar Keyan Zhang Committed by Dan Abramov
Browse files

Dogfood our eslint config (#68)

* dogfood eslint config

* moved linting to e2e
parent 417f3a77
No related merge requests found
Showing with 11 additions and 1 deletion
+11 -1
const clientESLintConfig = require('./config/eslint');
module.exports = Object.assign({}, clientESLintConfig, {
env: Object.assign({}, clientESLintConfig.env, {
node: true
})
});
...@@ -69,7 +69,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi ...@@ -69,7 +69,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
files.forEach(function(file) { files.forEach(function(file) {
console.log('Copying ' + file + ' to ' + hostPath); console.log('Copying ' + file + ' to ' + hostPath);
content = fs var content = fs
.readFileSync(path.join(selfPath, file), 'utf8') .readFileSync(path.join(selfPath, file), 'utf8')
// Remove license header from JS // Remove license header from JS
.replace(/^\/\*\*(\*(?!\/)|[^*])*\*\//, '') .replace(/^\/\*\*(\*(?!\/)|[^*])*\*\//, '')
......
...@@ -30,6 +30,9 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json ...@@ -30,6 +30,9 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
npm install npm install
scripts_path=$PWD/`npm pack` scripts_path=$PWD/`npm pack`
# lint
./node_modules/.bin/eslint --ignore-path .gitignore ./
# Pack CLI # Pack CLI
cd global-cli cd global-cli
npm install npm install
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment