mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-05 21:46:28 +00:00
fix(prettier): convert original prettier code linting config from javascript to default .json due to change of project type to module avoiding lint process throwing erros on incompatible configs
This commit is contained in:
parent
23ce20af6c
commit
c63ed7b99c
41
.prettierrc.json
Normal file
41
.prettierrc.json
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"tabWidth": 4,
|
||||
"printWidth": 120,
|
||||
"proseWrap": "preserve",
|
||||
"semi": false,
|
||||
"trailingComma": "es5",
|
||||
"singleQuote": true,
|
||||
"arrowParens": "avoid",
|
||||
"endOfLine": "lf",
|
||||
"overrides": [
|
||||
{
|
||||
"files": "{*.md,.prettierrc,.stylelintrc,.babelrc,.html}",
|
||||
"options": {
|
||||
"tabWidth": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "{*.js?(on),*.js, *.ts, *.vue, *.css, *.scss}",
|
||||
"options": {
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "{**/.vscode/*.json,**/tsconfig.json,**/tsconfig.*.json}",
|
||||
"options": {
|
||||
"parser": "json5",
|
||||
"quoteProps": "preserve",
|
||||
"singleQuote": false,
|
||||
"trailingComma": "all",
|
||||
"tabWidth": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "*.y?(a)ml,",
|
||||
"options": {
|
||||
"singleQuote": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
module.exports = {
|
||||
tabWidth: 4,
|
||||
printWidth: 120,
|
||||
proseWrap: 'preserve',
|
||||
semi: false,
|
||||
trailingComma: 'es5',
|
||||
singleQuote: true,
|
||||
arrowParens: 'avoid',
|
||||
endOfLine: 'lf',
|
||||
overrides: [
|
||||
{
|
||||
files: '{*.md,.prettierrc,.stylelintrc,.babelrc,.html}',
|
||||
options: {
|
||||
tabWidth: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '{*.js?(on),*.js, *.ts, *.vue, *.css, *.scss}',
|
||||
options: {
|
||||
trailingComma: 'none',
|
||||
tabWidth: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '{**/.vscode/*.json,**/tsconfig.json,**/tsconfig.*.json}',
|
||||
options: {
|
||||
parser: 'json5',
|
||||
quoteProps: 'preserve',
|
||||
singleQuote: false,
|
||||
trailingComma: 'all',
|
||||
tabWidth: '2'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '*.y?(a)ml,',
|
||||
options: {
|
||||
singleQuote: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user