From: Ben Beltran Date: Mon, 9 Mar 2020 18:23:02 +0000 (-0500) Subject: Adapt eslint rules to use modules X-Git-Tag: 3.0.0^2~4 X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/commitdiff_plain/be2bf74b90d95adad5e61acaa3663ac2cb215955?hp=50e5d933b94dd91f15b9f08e59320bb6107fe22e Adapt eslint rules to use modules --- diff --git a/.eslintrc b/.eslintrc index e38a8dd..1ea88c5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,9 +1,21 @@ { - "extends": "eslint-config-hapi", + "parserOptions": { + "ecmaVersion": 2019, + "sourceType": "module" + }, + "env": { + "es6": true, + "browser": true + }, + "extends": [ + "@hapi/eslint-config-hapi" + ], "rules": { "indent": [ - "error", + 2, 2 - ] + ], + "no-undef": 2, + "require-yield": 0 } }