gitlab-org--gitlab-foss/app/assets/javascripts
Fatih Acet dd5e46ab69 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
2016-10-26 16:31:08 +00:00
..
behaviors disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
blob disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
blob_edit disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
boards Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
commit disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
diff_notes disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
extensions disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
graphs Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
lib disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
merge_conflicts disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
network disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
profile disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
protected_branches disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
snippet disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
templates disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
u2f disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
users disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
abuse_reports.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
activities.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
admin.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
api.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
application.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
aside.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
autosave.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
awards_handler.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
breakpoints.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
broadcast_message.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
build.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
build_artifacts.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
build_variables.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
commit.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
commits.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
compare.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
compare_autocomplete.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
confirm_danger_modal.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
copy_to_clipboard.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
create_label.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
cycle_analytics.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
diff.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
dispatcher.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
dropzone_input.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
due_date_select.js.es6 Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
files_comment_button.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
flash.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
gfm_auto_complete.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
gl_dropdown.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
gl_field_errors.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
gl_form.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
group_avatar.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
groups_select.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
importer_status.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
issuable.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
issuable_context.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
issuable_form.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
issue.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
issue_status_select.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
issues_bulk_assignment.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
label_manager.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
labels.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
labels_select.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
layout_nav.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
line_highlighter.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
logo.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
member_expiration_date.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
members.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
merge_request.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
merge_request_tabs.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
merge_request_widget.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
merged_buttons.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
milestone.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
milestone_select.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
namespace_select.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
new_branch_form.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
new_commit_form.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
notes.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
notifications_dropdown.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
notifications_form.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
pager.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
pipelines.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
preview_markdown.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
project_avatar.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_find_file.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_fork.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_import.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_new.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_select.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
project_show.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
projects_list.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
right_sidebar.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
search.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
search_autocomplete.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_blob.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_dashboard_navigation.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_find_file.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_issuable.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_navigation.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
shortcuts_network.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
sidebar.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
single_file_diff.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
snippets_list.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
star.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
subscription.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
subscription_select.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
syntax_highlight.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
todos.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
tree.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
user.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
user_tabs.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
username_validator.js.es6 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
users_select.js Merge branch 'eslint' into 'master' 2016-10-26 16:31:08 +00:00
wikis.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
zen_mode.js disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00