gitlab-org--gitlab-foss/.eslintrc

57 lines
1.1 KiB
Plaintext
Raw Normal View History

{
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb-base",
"plugin:vue/recommended"
],
"globals": {
"__webpack_public_path__": true,
"gl": false,
"gon": false,
"localStorage": false
2016-11-22 18:56:03 +00:00
},
"parserOptions": {
2018-01-09 11:58:34 +00:00
"parser": "babel-eslint"
},
2016-11-22 18:56:03 +00:00
"plugins": [
"filenames",
2017-04-06 22:03:23 +00:00
"import",
"html",
"promise"
2016-11-22 18:56:03 +00:00
],
"settings": {
2018-01-04 19:07:28 +00:00
"html/html-extensions": [".html", ".html.raw"],
"import/resolver": {
"webpack": {
"config": "./config/webpack.config.js"
}
}
},
2016-11-22 18:56:03 +00:00
"rules": {
2017-02-14 19:10:57 +00:00
"filenames/match-regex": [2, "^[a-z0-9_]+$"],
"import/no-commonjs": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"promise/catch-or-return": "error",
"no-underscore-dangle": ["error", { "allow": ["__", "_links"] }],
"no-mixed-operators": 0,
"space-before-function-paren": 0,
"curly": 0,
"arrow-parens": 0,
"vue/html-self-closing": [
"error",
{
"html": {
"void": "always",
"normal": "never",
"component": "always"
},
"svg": "always",
"math": "always"
}
]
}
}