From 5aac8e46a58169865287705319138f0a954befbf Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 8 Oct 2019 22:57:22 +0200 Subject: [PATCH] add eslint files --- .eslintrc.js | 6 ++++++ migrations/.eslintrc.js | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 .eslintrc.js create mode 100644 migrations/.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000000..df826ca6a7 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,6 @@ +module.exports = { + root: true, + extends: [ + 'habitrpg/lib/node' + ], +} diff --git a/migrations/.eslintrc.js b/migrations/.eslintrc.js new file mode 100644 index 0000000000..199f8feb07 --- /dev/null +++ b/migrations/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + root: false, + rules: { + 'no-console': 0, + 'no-use-before-define': ['error', { functions: false }] + } +}