From 80b34b4c9129dc7af216ce57149a797e345c4375 Mon Sep 17 00:00:00 2001 From: Nick Playfair Date: Wed, 17 Mar 2021 19:23:11 +0000 Subject: [PATCH] Update eslint config --- .eslintignore | 2 ++ .eslintrc.json | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..76add87 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 1d6beba..0d7ad06 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,14 +1,16 @@ { - "env": { - "browser": true, - "commonjs": true, - "es2021": true - }, + "root": true, + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint" + ], "extends": [ - "airbnb-base" + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" ], "parserOptions": { - "ecmaVersion": 12 + "project": "./tsconfig.json" }, "rules": { "no-console": "off"