From ce151e2384e7f7042a72a42eda6d6003c29c2ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sun, 20 Aug 2023 14:37:54 +0200 Subject: [PATCH] chore: use JS ESLintRC file (#43) --- .eslintrc.cjs | 17 +++++++++++++++++ .eslintrc.yml | 11 ----------- 2 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 .eslintrc.cjs delete mode 100644 .eslintrc.yml diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..00e6673 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,17 @@ +/** @type {import('eslint').Linter.Config} */ +module.exports = { + root: true, + env: { + browser: true, + es2021: true, + mocha: true, + }, + extends: ['standard'], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + }, + rules: { + 'space-before-function-paren': ['error', 'never'], + }, +} \ No newline at end of file diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index e20974f..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,11 +0,0 @@ -env: - browser: true - es2021: true - mocha: true -extends: standard -overrides: [] -parserOptions: - ecmaVersion: latest - sourceType: module -rules: - space-before-function-paren: ["error", "never"]