From 0d34ab7f3b158e68c30951e46ce085ab789a525e Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 20 Apr 2021 12:08:46 +0200 Subject: [PATCH] chore: combine prettier with eslint --- .eslintrc.json | 10 +++++++--- tsconfig.eslint.json | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintrc.json b/.eslintrc.json index 3cbbb9c6d..4324e6b05 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,14 @@ { + "extends": ["plugin:prettier/recommended"], "parser": "@typescript-eslint/parser", "parserOptions": { - "sourceType": "module", - "ecmaVersion": 2015 + "ecmaVersion": 2018, + "sourceType": "module", + "parser": "@typescript-eslint/parser", + "project": "tsconfig.eslint.json", + "warnOnUnsupportedTypeScriptVersion": false }, - "plugins": ["@nativescript"], + "plugins": ["prettier", "@nativescript"], "rules": { "@nativescript/no-nativescript-angular-imports": "warn", "@nativescript/no-tns-core-modules-imports": "warn", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 000000000..414937055 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["packages/**/*"] +} \ No newline at end of file