From 368a2a8ae05410b55e5d31d99acdd5b1b74060ca Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Mon, 24 Oct 2016 14:58:53 -0400 Subject: [PATCH 1/2] Actually lint React files Previously eslint ignored .jsx files :| --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9658b79dcac..fad2891c8e2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "npm run clean && webpack --progress --colors --bail", "clean": "rm -rf ./build && mkdir -p build", "deploy": "gh-pages -d build -m \"Build for $(git log --pretty=format:%H -n1)\"", - "lint": "eslint .", + "lint": "eslint . --ext .js,.jsx", "postmerge": "opt --in postmerge --exec 'npm install'", "postrewrite": "opt --in postrewrite --exec 'npm install'", "precommit": "opt --in precommit --exec 'npm run lint'", From 620843c5a28bd7e281f386309b94d5f4b342dcfe Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Mon, 24 Oct 2016 14:59:35 -0400 Subject: [PATCH 2/2] Upgrade eslint-config-scratch to 2.0 Includes rules missed in the first pass of eslint rules --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fad2891c8e2..440c0acbd85 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "babel-preset-react": "6.11.1", "copy-webpack-plugin": "3.0.1", "eslint": "3.5.0", - "eslint-config-scratch": "^1.0.0", + "eslint-config-scratch": "^2.0.0", "eslint-plugin-react": "6.4.1", "gh-pages": "0.11.0", "html-webpack-plugin": "2.22.0",