From 29dac17ace1be007e585e0565fae9002939591ce Mon Sep 17 00:00:00 2001 From: Andrew O'Brien Date: Mon, 18 Jun 2018 13:58:48 -0400 Subject: [PATCH] Adds eslint settings to ignore mocha/chai Also gitignores `package-lock.json`, which seems appropriate for a library package. --- .eslintrc.json | 9 +++++---- .gitignore | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 362b36be..aec22f85 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,12 @@ { "env": { "browser": true, - "node": true + "node": true, + "mocha": true }, - "globals": { - "lunr": true + "lunr": true, + "assert": true }, "extends": "eslint:recommended", @@ -25,7 +26,7 @@ "attrs", "tf", "idf", "lookups", "whitelist", "whitelisted", "tokenizer", "whitespace", "automata", "i", "obj", "anymore", "lexer", "var", "refs", "serializable", "tis", "twas", "int", "args", "unshift", "plugins", "upsert", - "upserting", "readonly", "baz", "tokenization" + "upserting", "readonly", "baz", "tokenization", "lunrjs", "com" ] } ], diff --git a/.gitignore b/.gitignore index dee86324..601f2e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules docs/ test/env/file_list.json +package-lock.json \ No newline at end of file