-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
57 lines (57 loc) · 1.51 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"parserOptions": {
"sourceType": "module",
"parser": "babel-eslint",
"allowImportExportEverywhere": true,
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"commonjs": true,
"es6": true
},
"extends": ["plugin:security/recommended"],
"plugins": ["import", "node", "prettier", "promise", "security", "standard"],
"rules": {
"indent": ["off"],
"no-eval": ["error"],
"no-script-url": ["error"],
"linebreak-style": ["warn", "unix"],
"quotes": ["warn", "single"],
"semi": ["warn", "never"],
"no-undef": ["off"],
"require-jsdoc": [
"off",
{
"require": null,
"FunctionDeclaration": [true],
"MethodDefinition": [true],
"ClassDeclaration": [true],
"ArrowFunctionExpression": [true],
"FunctionExpression": [true]
}
],
"valid-jsdoc": ["warn"],
"no-useless-escape": ["off"],
"key-spacing": ["off"],
"wrap-iife": ["error", "inside"],
"handle-callback-err": ["error"],
"callback-return": ["error"],
"no-mixed-requires": ["error"],
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "i|res|next|^err"
}
],
"security/detect-non-literal-fs-filename": ["off"],
"security/detect-non-literal-regexp": ["off"],
"security/detect-non-literal-require": ["off"],
"security/detect-object-injection": ["off"],
"vue/html-self-closing": ["off"],
"vue/no-v-html": ["off"],
"vue/max-attributes-per-line": ["off"]
}
}