We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在根目录新建:.prettierrc.js,内容如下:
.prettierrc.js
module.exports = { parser: 'babylon', printWidth: 120, // 每行最大120字符 semi: true, // 末尾分号 singleQuote: true, // 使用单引号 overrides: [ { files: ['*.json', '.eslintrc', '.tslintrc', '.prettierrc', '.tern-project'], options: { parser: 'json', tabWidth: 2 } }, { files: '*.{css,sass,scss,less,styl}', options: { parser: 'css', tabWidth: 2 } }, { files: '*.ts', options: { parser: 'typescript' } } ] };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在根目录新建:
.prettierrc.js
,内容如下:The text was updated successfully, but these errors were encountered: