Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
79a42738
Commit
79a42738
authored
9 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Tweak ESLint rules.
parent
e55fcbcd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
js/.eslintrc
+9
-6
js/.eslintrc
js/src/dropdown.js
+5
-5
js/src/dropdown.js
js/src/modal.js
+4
-4
js/src/modal.js
js/src/tab.js
+3
-3
js/src/tab.js
with
21 additions
and
18 deletions
+21
-18
js/.eslintrc
+
9
-
6
View file @
79a42738
...
...
@@ -9,6 +9,8 @@
// Possible Errors
"comma-dangle": [2, "never"],
"handle-callback-err": 2,
"no-bitwise": 0,
"no-cond-assign": 2,
"no-console": 2,
"no-constant-condition": 2,
...
...
@@ -26,7 +28,7 @@
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace":
0
,
"no-irregular-whitespace":
2
,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
...
...
@@ -66,7 +68,7 @@
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 0,
"no-multi-str":
0
,
"no-multi-str":
2
,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 0,
...
...
@@ -84,6 +86,7 @@
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"no-warning-comments": 0,
"no-with": 2,
...
...
@@ -117,7 +120,7 @@
"eol-last": 2,
"func-names": 0,
"func-style": 0,
"indent":
0
,
"indent":
[2, 2, {"SwitchCase": 1}]
,
"key-spacing": 0,
"linebreak-style": 2,
"lines-around-comment": 0,
...
...
@@ -142,10 +145,10 @@
"operator-assignment": 2,
"operator-linebreak": 0,
"padded-blocks": 0,
"quote-props":
0
,
"quotes":
0
,
"quote-props":
[2, "as-needed"]
,
"quotes":
[2, "single"]
,
"semi": [2, "never"],
"semi-spacing":
0
,
"semi-spacing":
2
,
"sort-vars": 2,
"space-after-keywords": 2,
"space-before-blocks": 2,
...
...
This diff is collapsed.
Click to expand it.
js/src/dropdown.js
+
5
-
5
View file @
79a42738
...
...
@@ -25,11 +25,11 @@ const Dropdown = (($) => {
const
JQUERY_NO_CONFLICT
=
$
.
fn
[
NAME
]
const
Event
=
{
HIDE
:
`hide
${
EVENT_KEY
}
`
,
HIDDEN
:
`hidden
${
EVENT_KEY
}
`
,
SHOW
:
`show
${
EVENT_KEY
}
`
,
SHOWN
:
`shown
${
EVENT_KEY
}
`
,
CLICK
:
`click
${
EVENT_KEY
}
`
,
HIDE
:
`hide
${
EVENT_KEY
}
`
,
HIDDEN
:
`hidden
${
EVENT_KEY
}
`
,
SHOW
:
`show
${
EVENT_KEY
}
`
,
SHOWN
:
`shown
${
EVENT_KEY
}
`
,
CLICK
:
`click
${
EVENT_KEY
}
`
,
CLICK_DATA_API
:
`click
${
EVENT_KEY
}${
DATA_API_KEY
}
`
,
KEYDOWN_DATA_API
:
`keydown
${
EVENT_KEY
}${
DATA_API_KEY
}
`
}
...
...
This diff is collapsed.
Click to expand it.
js/src/modal.js
+
4
-
4
View file @
79a42738
...
...
@@ -41,10 +41,10 @@ const Modal = (($) => {
}
const
Event
=
{
HIDE
:
`hide
${
EVENT_KEY
}
`
,
HIDDEN
:
`hidden
${
EVENT_KEY
}
`
,
SHOW
:
`show
${
EVENT_KEY
}
`
,
SHOWN
:
`shown
${
EVENT_KEY
}
`
,
HIDE
:
`hide
${
EVENT_KEY
}
`
,
HIDDEN
:
`hidden
${
EVENT_KEY
}
`
,
SHOW
:
`show
${
EVENT_KEY
}
`
,
SHOWN
:
`shown
${
EVENT_KEY
}
`
,
FOCUSIN
:
`focusin
${
EVENT_KEY
}
`
,
RESIZE
:
`resize
${
EVENT_KEY
}
`
,
CLICK_DISMISS
:
`click.dismiss
${
EVENT_KEY
}
`
,
...
...
This diff is collapsed.
Click to expand it.
js/src/tab.js
+
3
-
3
View file @
79a42738
...
...
@@ -253,9 +253,9 @@ const Tab = (($) => {
$
(
document
)
.
on
(
Event
.
CLICK_DATA_API
,
Selector
.
DATA_TOGGLE
,
function
(
event
)
{
event
.
preventDefault
()
Tab
.
_jQueryInterface
.
call
(
$
(
this
),
'
show
'
)
})
event
.
preventDefault
()
Tab
.
_jQueryInterface
.
call
(
$
(
this
),
'
show
'
)
})
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets