Skip to content

Commit cce4afa

Browse files
SauravMaheshkarGr1N
authored andcommitted
chore: move prettierrc to package.json
1 parent b19c495 commit cce4afa

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.prettierrc.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

package.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,35 @@
8181
"es6": true,
8282
"jest/globals": true
8383
}
84-
}
84+
},
85+
"prettier": {
86+
"printWidth": 80,
87+
"tabWidth": 2,
88+
"useTabs": false,
89+
"singleQuote": false,
90+
"overrides": [
91+
{
92+
"files": ["*.json"],
93+
"options": {
94+
"parser": "json"
95+
}
96+
},
97+
{
98+
"files": ["**/*.ts"],
99+
"options": {
100+
"parser": "typescript",
101+
"arrowParens": "avoid",
102+
"bracketSpacing": true,
103+
"semi": false,
104+
"trailingComma": "none"
105+
}
106+
},
107+
{
108+
"files": ["*.yml", ".github/**/*.yml"],
109+
"options": {
110+
"parser": "yaml"
111+
}
112+
}
113+
]
114+
}
85115
}

0 commit comments

Comments
 (0)