forked from olivernn/lunr.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
85 lines (73 loc) · 1.96 KB
/
.eslintrc.json
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"env": {
"browser": true,
"node": true
},
"globals": {
"lunr": true
},
"extends": "eslint:recommended",
"plugins": [
"spellcheck"
],
"rules": {
"spellcheck/spell-checker": [1,
{
"lang": "en_GB",
"skipWords": [
"lunr", "val", "param", "idx", "utils", "namespace", "eslint", "latin",
"str", "len", "sqrt", "wildcard", "concat", "metadata", "fn", "params",
"lexeme", "lex", "pos", "typedef", "wildcards", "lexemes", "fns", "stemmer",
"attrs", "tf", "idf", "lookups", "whitelist", "whitelisted", "tokenizer",
"whitespace", "automata", "i", "obj", "anymore", "lexer", "var", "refs",
"serializable", "tis", "twas", "int", "args", "unshift", "plugins", "upsert",
"upserting"
]
}
],
"no-constant-condition": [
"error",
{ "checkLoops": false }
],
"no-redeclare": "off",
"dot-location": [
"error",
"property"
],
"no-alert": "error",
"no-caller": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-extend-native": "error",
"no-implicit-globals": "error",
"no-multi-spaces": "error",
"array-bracket-spacing": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs",
{ "allowSingleLine": true }
],
"camelcase": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"func-style": "error",
"indent": [
"error",
2,
{ "VariableDeclarator": 2, "SwitchCase": 1 }
],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"new-cap": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"semi": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"space-in-parens": "error",
"space-infix-ops": "error"
}
}