Skip to content

Commit 29dac17

Browse files
committed
Adds eslint settings to ignore mocha/chai
Also gitignores `package-lock.json`, which seems appropriate for a library package.
1 parent bb4578c commit 29dac17

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.eslintrc.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"env": {
33
"browser": true,
4-
"node": true
4+
"node": true,
5+
"mocha": true
56
},
6-
77
"globals": {
8-
"lunr": true
8+
"lunr": true,
9+
"assert": true
910
},
1011

1112
"extends": "eslint:recommended",
@@ -25,7 +26,7 @@
2526
"attrs", "tf", "idf", "lookups", "whitelist", "whitelisted", "tokenizer",
2627
"whitespace", "automata", "i", "obj", "anymore", "lexer", "var", "refs",
2728
"serializable", "tis", "twas", "int", "args", "unshift", "plugins", "upsert",
28-
"upserting", "readonly", "baz", "tokenization"
29+
"upserting", "readonly", "baz", "tokenization", "lunrjs", "com"
2930
]
3031
}
3132
],

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
docs/
33
test/env/file_list.json
4+
package-lock.json

0 commit comments

Comments
 (0)