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
Boxiang Sun
gitlab-ce
Commits
a001069f
Commit
a001069f
authored
Oct 16, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use @gitlab/eslint-config as base in eslintrc
parent
d87e88a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
46 deletions
+19
-46
.eslintrc.yml
.eslintrc.yml
+1
-36
package.json
package.json
+1
-6
yarn.lock
yarn.lock
+17
-4
No files found.
.eslintrc.yml
View file @
a001069f
env
:
browser
:
true
es6
:
true
extends
:
extends
:
-
airbnb-base
-
'
@gitlab'
-
prettier
-
plugin:vue/recommended
globals
:
globals
:
__webpack_public_path__
:
true
__webpack_public_path__
:
true
gl
:
false
gl
:
false
gon
:
false
gon
:
false
localStorage
:
false
localStorage
:
false
parserOptions
:
parser
:
babel-eslint
plugins
:
plugins
:
-
filenames
-
import
-
import
-
html
-
html
-
promise
settings
:
settings
:
html/html-extensions
:
html/html-extensions
:
-
'
.html'
-
'
.html'
...
@@ -25,38 +16,12 @@ settings:
...
@@ -25,38 +16,12 @@ settings:
webpack
:
webpack
:
config
:
'
./config/webpack.config.js'
config
:
'
./config/webpack.config.js'
rules
:
rules
:
filenames/match-regex
:
-
error
-
'
^[a-z0-9_]+$'
import/no-commonjs
:
error
import/no-commonjs
:
error
promise/catch-or-return
:
error
no-param-reassign
:
-
error
-
props
:
true
ignorePropertyModificationsFor
:
-
'
acc'
# for reduce accumulators
-
'
accumulator'
# for reduce accumulators
-
'
el'
# for DOM elements
-
'
element'
# for DOM elements
-
'
state'
# for Vuex mutations
no-underscore-dangle
:
no-underscore-dangle
:
-
error
-
error
-
allow
:
-
allow
:
-
__
-
__
-
_links
-
_links
no-mixed-operators
:
off
vue/html-self-closing
:
-
error
-
html
:
void
:
always
normal
:
never
component
:
always
svg
:
always
math
:
always
camelcase
:
-
error
-
properties
:
never
ignoreDestructuring
:
true
# Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
# Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
no-else-return
:
no-else-return
:
-
error
-
error
...
...
package.json
View file @
a001069f
...
@@ -111,8 +111,8 @@
...
@@ -111,8 +111,8 @@
"
xterm
"
:
"
^3.5.0
"
"
xterm
"
:
"
^3.5.0
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@gitlab/eslint-config
"
:
"
^1.1.0
"
,
"
axios-mock-adapter
"
:
"
^1.15.0
"
,
"
axios-mock-adapter
"
:
"
^1.15.0
"
,
"
babel-eslint
"
:
"
^9.0.0
"
,
"
babel-plugin-istanbul
"
:
"
^5.1.0
"
,
"
babel-plugin-istanbul
"
:
"
^5.1.0
"
,
"
babel-plugin-rewire
"
:
"
^1.2.0
"
,
"
babel-plugin-rewire
"
:
"
^1.2.0
"
,
"
babel-template
"
:
"
^6.26.0
"
,
"
babel-template
"
:
"
^6.26.0
"
,
...
@@ -120,15 +120,10 @@
...
@@ -120,15 +120,10 @@
"
chalk
"
:
"
^2.4.1
"
,
"
chalk
"
:
"
^2.4.1
"
,
"
commander
"
:
"
^2.18.0
"
,
"
commander
"
:
"
^2.18.0
"
,
"
eslint
"
:
"
~5.6.0
"
,
"
eslint
"
:
"
~5.6.0
"
,
"
eslint-config-airbnb-base
"
:
"
^13.1.0
"
,
"
eslint-config-prettier
"
:
"
^3.1.0
"
,
"
eslint-import-resolver-webpack
"
:
"
^0.10.1
"
,
"
eslint-import-resolver-webpack
"
:
"
^0.10.1
"
,
"
eslint-plugin-filenames
"
:
"
^1.3.2
"
,
"
eslint-plugin-html
"
:
"
4.0.5
"
,
"
eslint-plugin-html
"
:
"
4.0.5
"
,
"
eslint-plugin-import
"
:
"
^2.14.0
"
,
"
eslint-plugin-import
"
:
"
^2.14.0
"
,
"
eslint-plugin-jasmine
"
:
"
^2.10.1
"
,
"
eslint-plugin-jasmine
"
:
"
^2.10.1
"
,
"
eslint-plugin-promise
"
:
"
^4.0.1
"
,
"
eslint-plugin-vue
"
:
"
^5.0.0-beta.3
"
,
"
gettext-extractor
"
:
"
^3.3.2
"
,
"
gettext-extractor
"
:
"
^3.3.2
"
,
"
gettext-extractor-vue
"
:
"
^4.0.1
"
,
"
gettext-extractor-vue
"
:
"
^4.0.1
"
,
"
ignore
"
:
"
^3.3.7
"
,
"
ignore
"
:
"
^3.3.7
"
,
...
...
yarn.lock
View file @
a001069f
...
@@ -630,6 +630,19 @@
...
@@ -630,6 +630,19 @@
bootstrap-vue "^2.0.0-rc.11"
bootstrap-vue "^2.0.0-rc.11"
vue "^2.5.16"
vue "^2.5.16"
"@gitlab/eslint-config@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@gitlab/eslint-config/-/eslint-config-1.1.0.tgz#9757764b3a78b6bacfbcd9533331cb6345ffdd59"
integrity sha512-tTdHj8nmZbgl7ygzZYYgfETgvFX/+Z/xA5abqbmwcejpI4fmJUhQwERTHu7P+NwQ2ywzPCS6dO4LljlT/r1jBw==
dependencies:
babel-eslint "^10.0.1"
eslint-config-airbnb-base "^13.1.0"
eslint-config-prettier "^3.1.0"
eslint-plugin-filenames "^1.3.2"
eslint-plugin-import "^2.14.0"
eslint-plugin-promise "^4.0.1"
eslint-plugin-vue "^5.0.0-beta.3"
"@sindresorhus/is@^0.7.0":
"@sindresorhus/is@^0.7.0":
version "0.7.0"
version "0.7.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
...
@@ -1136,10 +1149,10 @@ babel-code-frame@^6.26.0:
...
@@ -1136,10 +1149,10 @@ babel-code-frame@^6.26.0:
esutils "^2.0.2"
esutils "^2.0.2"
js-tokens "^3.0.2"
js-tokens "^3.0.2"
babel-eslint@^
9.0.0
:
babel-eslint@^
10.0.1
:
version "
9.0.0
"
version "
10.0.1
"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-
9.0.0.tgz#7d9445f81ed9f60aff38115f838970df9f2b6220
"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-
10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed
"
integrity sha512-
itv1MwE3TMbY0QtNfeL7wzak1mV47Uy+n6HtSOO4Xd7rvmO+tsGQSgyOEEgo6Y2vHZKZphaoelNeSVj4vkLA1g
==
integrity sha512-
z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ
==
dependencies:
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/code-frame" "^7.0.0"
"@babel/parser" "^7.0.0"
"@babel/parser" "^7.0.0"
...
...
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