Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
a7eb806e
Commit
a7eb806e
authored
Aug 18, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add global __webpack_public_path__ to eslint config
parent
3695c6bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
.eslintrc
.eslintrc
+1
-0
app/assets/javascripts/repo/monaco_loader.js
app/assets/javascripts/repo/monaco_loader.js
+2
-4
app/assets/javascripts/webpack.js
app/assets/javascripts/webpack.js
+1
-1
spec/javascripts/repo/monaco_loader_spec.js
spec/javascripts/repo/monaco_loader_spec.js
+0
-2
No files found.
.eslintrc
View file @
a7eb806e
...
...
@@ -6,6 +6,7 @@
},
"extends": "airbnb-base",
"globals": {
"__webpack_public_path__": true,
"_": false,
"gl": false,
"gon": false,
...
...
app/assets/javascripts/repo/monaco_loader.js
View file @
a7eb806e
/* eslint-disable no-underscore-dangle, camelcase */
/* global __webpack_public_path__ */
import
monacoContext
from
'
monaco-editor/dev/vs/loader
'
;
monacoContext
.
require
.
config
({
paths
:
{
vs
:
`
${
__webpack_public_path__
}
monaco-editor/vs`
,
vs
:
`
${
__webpack_public_path__
}
monaco-editor/vs`
,
// eslint-disable-line camelcase
},
});
// eslint-disable-next-line no-underscore-dangle
window
.
__monaco_context__
=
monacoContext
;
export
default
monacoContext
.
require
;
app/assets/javascripts/webpack.js
View file @
a7eb806e
...
...
@@ -5,5 +5,5 @@
*/
if
(
gon
&&
gon
.
webpack_public_path
)
{
__webpack_public_path__
=
gon
.
webpack_public_path
;
// eslint-disable-line
__webpack_public_path__
=
gon
.
webpack_public_path
;
// eslint-disable-line
camelcase
}
spec/javascripts/repo/monaco_loader_spec.js
View file @
a7eb806e
/* global __webpack_public_path__ */
import
monacoContext
from
'
monaco-editor/dev/vs/loader
'
;
import
monacoLoader
from
'
~/repo/monaco_loader
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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