summaryrefslogtreecommitdiff
path: root/.eslintrc.yml
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-16 16:35:40 -0500
committerMike Greiling <mike@pixelcog.com>2018-10-16 16:35:40 -0500
commita001069faf6c68058b7eb4af3baec8c52f249ce8 (patch)
tree02ca4ae214f5dd629f4bb2bc3b1f3003c264efce /.eslintrc.yml
parentd87e88a616f370421add5b3d964550e456430432 (diff)
downloadgitlab-ce-a001069faf6c68058b7eb4af3baec8c52f249ce8.tar.gz
Use @gitlab/eslint-config as base in eslintrc
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml37
1 files changed, 1 insertions, 36 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
index d04a10a9127..fe0d5f5dce3 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -1,22 +1,13 @@
-env:
- browser: true
- es6: true
extends:
- - airbnb-base
- - prettier
- - plugin:vue/recommended
+ - '@gitlab'
globals:
__webpack_public_path__: true
gl: false
gon: false
localStorage: false
-parserOptions:
- parser: babel-eslint
plugins:
- - filenames
- import
- html
- - promise
settings:
html/html-extensions:
- '.html'
@@ -25,38 +16,12 @@ settings:
webpack:
config: './config/webpack.config.js'
rules:
- filenames/match-regex:
- - error
- - '^[a-z0-9_]+$'
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:
- error
- allow:
- __
- _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
no-else-return:
- error