debian-mirror-gitlab/.eslintrc

51 lines
1 KiB
Plaintext
Raw Normal View History

2017-08-17 22:00:37 +05:30
{
"env": {
"jquery": true,
"browser": true,
"es6": true
},
2018-03-17 18:26:18 +05:30
"extends": [
"airbnb-base",
"plugin:vue/recommended"
],
2017-08-17 22:00:37 +05:30
"globals": {
2018-03-17 18:26:18 +05:30
"__webpack_public_path__": true,
2017-08-17 22:00:37 +05:30
"gl": false,
"gon": false,
"localStorage": false
},
2018-03-17 18:26:18 +05:30
"parserOptions": {
"parser": "babel-eslint"
},
2017-08-17 22:00:37 +05:30
"plugins": [
"filenames",
"import",
"html",
"promise"
],
"settings": {
2018-03-17 18:26:18 +05:30
"html/html-extensions": [".html", ".html.raw"],
2017-08-17 22:00:37 +05:30
"import/resolver": {
"webpack": {
"config": "./config/webpack.config.js"
}
}
},
"rules": {
"filenames/match-regex": [2, "^[a-z0-9_]+$"],
2017-09-10 17:25:29 +05:30
"import/no-commonjs": "error",
2017-08-17 22:00:37 +05:30
"no-multiple-empty-lines": ["error", { "max": 1 }],
2017-09-10 17:25:29 +05:30
"promise/catch-or-return": "error",
2018-03-17 18:26:18 +05:30
"no-underscore-dangle": ["error", { "allow": ["__"]}],
"vue/html-self-closing": ["error", {
"html": {
"void": "always",
"normal": "never",
"component": "always"
},
"svg": "always",
"math": "always"
}]
2017-08-17 22:00:37 +05:30
}
}