Skip to content

Commit b1ce459

Browse files
keyzgaearon
authored andcommittedJul 22, 2016
Dogfood our eslint config (facebook#68)
* dogfood eslint config * moved linting to e2e
1 parent 417f3a7 commit b1ce459

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
 

‎.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const clientESLintConfig = require('./config/eslint');
2+
3+
module.exports = Object.assign({}, clientESLintConfig, {
4+
env: Object.assign({}, clientESLintConfig.env, {
5+
node: true
6+
})
7+
});

‎scripts/eject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
6969

7070
files.forEach(function(file) {
7171
console.log('Copying ' + file + ' to ' + hostPath);
72-
content = fs
72+
var content = fs
7373
.readFileSync(path.join(selfPath, file), 'utf8')
7474
// Remove license header from JS
7575
.replace(/^\/\*\*(\*(?!\/)|[^*])*\*\//, '')

‎tasks/e2e.sh

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
3030
npm install
3131
scripts_path=$PWD/`npm pack`
3232

33+
# lint
34+
./node_modules/.bin/eslint --ignore-path .gitignore ./
35+
3336
# Pack CLI
3437
cd global-cli
3538
npm install

0 commit comments

Comments
 (0)