chore: combine prettier with eslint

This commit is contained in:
Martin Guillon
2021-04-20 12:08:46 +02:00
parent d28db38341
commit 0d34ab7f3b
2 changed files with 11 additions and 3 deletions

View File

@@ -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",

4
tsconfig.eslint.json Normal file
View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["packages/**/*"]
}