Chore/base configurations
This commit is contained in:
23
.prettierrc.mjs
Normal file
23
.prettierrc.mjs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Prettier configuration aligned with @xo-cash/eslint-config
|
||||
export default {
|
||||
// Matches @stylistic/max-len': [ 'warn', 150, ...]
|
||||
printWidth: 150,
|
||||
|
||||
// Matches @stylistic/no-tabs': [ 'error' ]
|
||||
useTabs: false,
|
||||
|
||||
// Matches @stylistic/indent': [ 'error', 4, ...]
|
||||
tabWidth: 4,
|
||||
|
||||
// Matches @stylistic/array-bracket-spacing': [ 'error', 'always', ...]
|
||||
bracketSpacing: true,
|
||||
|
||||
// Matches @stylistic/quotes: ['error', 'single', { avoidEscape: true }], from @chalp/eslint-airbnb/base/stylistic.js
|
||||
singleQuote: true,
|
||||
|
||||
// Matches @stylistic/semi: ['error', 'always'], from @chalp/eslint-airbnb/base/stylistic.js
|
||||
semi: true,
|
||||
|
||||
// Matches @stylistic/arrow-parens: ['error', 'always'], from @chalp/eslint-airbnb/base/stylistic.js
|
||||
arrowParens: 'always',
|
||||
};
|
||||
Reference in New Issue
Block a user