Skip to content
Snippets Groups Projects
Commit dd5e46ab authored by Fatih Acet's avatar Fatih Acet
Browse files

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
parents 5a4dabd0 02f94cf0
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 0 deletions
/* eslint-disable */
(() => {
JumpToDiscussion = Vue.extend({
mixins: [DiscussionMixins],
Loading
Loading
/* eslint-disable */
((w) => {
w.ResolveBtn = Vue.extend({
props: {
Loading
Loading
/* eslint-disable */
((w) => {
w.ResolveCount = Vue.extend({
mixins: [DiscussionMixins],
Loading
Loading
/* eslint-disable */
((w) => {
w.ResolveDiscussionBtn = Vue.extend({
props: {
Loading
Loading
/* eslint-disable */
//= require vue
//= require vue-resource
//= require_directory ./models
Loading
Loading
/* eslint-disable */
((w) => {
w.DiscussionMixins = {
computed: {
Loading
Loading
/* eslint-disable */
class DiscussionModel {
constructor (discussionId) {
this.id = discussionId;
Loading
Loading
/* eslint-disable */
class NoteModel {
constructor (discussionId, noteId, canResolve, resolved, resolved_by) {
this.discussionId = discussionId;
Loading
Loading
/* eslint-disable */
((w) => {
class ResolveServiceClass {
constructor() {
Loading
Loading
/* eslint-disable */
((w) => {
w.CommentsStore = {
state: {},
Loading
Loading
/* eslint-disable */
(function() {
var Dispatcher;
 
Loading
Loading
/* eslint-disable */
 
/*= require preview_markdown */
 
Loading
Loading
/* eslint-disable */
(function(global) {
class DueDateSelect {
constructor({ $dropdown, $loading } = {}) {
Loading
Loading
/* eslint-disable */
Array.prototype.first = function() {
return this[0];
}
Loading
Loading
/* eslint-disable */
Element.prototype.matches = Element.prototype.matches || Element.prototype.msMatches;
 
Element.prototype.closest = function closest(selector, selectedElement = this) {
Loading
Loading
/* eslint-disable */
// Disable an element and add the 'disabled' Bootstrap class
(function() {
$.fn.extend({
Loading
Loading
/* eslint-disable */
(function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
 
Loading
Loading
/* eslint-disable */
(function() {
this.Flash = (function() {
var hideFlash;
Loading
Loading
/* eslint-disable */
// Creates the variables for setting up GFM auto-completion
(function() {
if (window.GitLab == null) {
Loading
Loading
/* eslint-disable */
(function() {
var GitLabDropdown, GitLabDropdownFilter, GitLabDropdownRemote,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment