diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index d424855..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "singleQuote": false, - "overrides": [ - { - "files": ["*.json"], - "options": { - "parser": "json" - } - }, - { - "files": ["**/*.ts"], - "options": { - "parser": "typescript", - "arrowParens": "avoid", - "bracketSpacing": true, - "semi": false, - "trailingComma": "none" - } - }, - { - "files": ["*.yml", ".github/**/*.yml"], - "options": { - "parser": "yaml" - } - } - ] -} diff --git a/package.json b/package.json index 6059b40..f0fb16b 100644 --- a/package.json +++ b/package.json @@ -81,5 +81,35 @@ "es6": true, "jest/globals": true } - } + }, + "prettier": { + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "singleQuote": false, + "overrides": [ + { + "files": ["*.json"], + "options": { + "parser": "json" + } + }, + { + "files": ["**/*.ts"], + "options": { + "parser": "typescript", + "arrowParens": "avoid", + "bracketSpacing": true, + "semi": false, + "trailingComma": "none" + } + }, + { + "files": ["*.yml", ".github/**/*.yml"], + "options": { + "parser": "yaml" + } + } + ] + } }