Merge branch 'eslint' into 'master'
Add ESLint ## What does this MR do? - create `package.json` - add ESLint dependencies to `package.json` - add JavaScript linting to CI - add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`) ## Are there points in the code the reviewer needs to double check? Probably not. ## Why was this MR needed? My hovercraft was full of eels. ## What are the relevant issue numbers? - https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658 See merge request !5445
Showing
.eslintignore
0 → 100644
.eslintrc
0 → 100644
lib/tasks/eslint.rake
0 → 100644
lib/tasks/lint.rake
0 → 100644
package.json
0 → 100644
{ | ||
"private": true, | ||
"scripts": { | ||
"eslint": "eslint .", | ||
"eslint-fix": "eslint --fix ." | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.1.1", | ||
"eslint-config-airbnb": "^12.0.0", | ||
"eslint-plugin-import": "^2.0.1", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.4.1" | ||
} | ||
} |
Please register or sign in to comment