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