From e1caea13804eb30d332fd3c38456f30b9177bb14 Mon Sep 17 00:00:00 2001 From: Saurav Maheshkar Date: Mon, 17 Apr 2023 22:39:20 +0100 Subject: [PATCH] feat: move configurations to package.json Signed-off-by: Saurav Maheshkar --- .eslintrc.json | 23 ----------------------- .prettierrc.json | 11 ----------- package.json | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 .prettierrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index b46613b..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "env": { - "node": true, - "es2021": true, - "jest": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:jest/recommended", - "plugin:prettier/recommended" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "plugins": [ - "@typescript-eslint", - "jest", - "prettier" - ] -} diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index d8339f6..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "printWidth": 240, - "tabWidth": 2, - "useTabs": false, - "semi": true, - "singleQuote": true, - "trailingComma": "none", - "bracketSpacing": false, - "arrowParens": "avoid", - "parser": "typescript" -} diff --git a/package.json b/package.json index 4b1988c..d6f12b7 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,39 @@ "ts-jest": "^29.0.5", "ts-node": "^10.9.1", "typescript": "^4.9.5" + }, + "eslintConfig": { + "env": { + "node": true, + "es2021": true, + "jest": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:jest/recommended", + "plugin:prettier/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint", + "jest", + "prettier" + ] + }, + "prettier": { + "printWidth": 240, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": true, + "trailingComma": "none", + "bracketSpacing": false, + "arrowParens": "avoid", + "parser": "typescript" } }