From 6f71cfeff9bfffb479ea2dd8feb4f357e81a0676 Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Sun, 7 May 2017 03:26:54 +0800 Subject: Eslintrc fix (#2850) * eslintrc: adapt changes in eslint-plugin-jsx-a11y * Replace 'jsx-a11y/img-has-alt' with 'jsx-a11y/alt-text'. Reference: evcohen/eslint-plugin-jsx-a11y@24b6193 * Replace 'jsx-a11y/onclick-has-focus' with 'jsx-a11y/interactive-supports-focus' Reference: evcohen/eslint-plugin-jsx-a11y@cbdfeb8 * Replace 'jsx-a11y/onclick-has-role' with 'jsx-a11y/no-noninteractive-element-interactions' Reference: evcohen/eslint-plugin-jsx-a11y@18c9b71 * Update eslint-plugin-jsx-a11y to 5.0.0 Follow the change in Code Climate. Make sure the same eslintrc can be executed locally and in Code Climate. * Convert .eslintrc.json to equivlant .eslintrc.yml * Less quotes and commas, more readability, allow comment. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 6b88c7a1f..136c92860 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "start": "babel-node ./streaming/index.js --presets es2015,stage-2", "storybook": "start-storybook -p 9001 -c storybook", "test": "npm run test:lint && npm run test:mocha", - "test:lint": "eslint -c .eslintrc.json --ext=js --ext=jsx app/javascript/", + "test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/", "test:mocha": "mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx" }, "repository": { @@ -112,7 +112,7 @@ "chai-enzyme": "^0.6.1", "enzyme": "^2.8.2", "eslint": "^3.19.0", - "eslint-plugin-jsx-a11y": "^4.0.0", + "eslint-plugin-jsx-a11y": "^5.0.0", "eslint-plugin-react": "^6.10.3", "jsdom": "^9.11.0", "minimist": "^1.2.0", -- cgit