mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-06-28 07:20:28 -04:00
BREAKING CHANGE: Configurations are now returned as objects, like most shared ESLint configurations. The `make*Config` functions are no more. Also, everything is now exported through one file.
25 lines
584 B
JavaScript
25 lines
584 B
JavaScript
import sortImports from '@trivago/prettier-plugin-sort-imports'
|
|
|
|
/**
|
|
* @see https://prettier.io/docs/configuration
|
|
* @type {import("prettier").Config}
|
|
*/
|
|
const recommended = {
|
|
// #region Prettier
|
|
arrowParens: 'avoid',
|
|
bracketSameLine: false,
|
|
bracketSpacing: true,
|
|
plugins: [sortImports],
|
|
printWidth: 118,
|
|
semi: false,
|
|
singleQuote: true,
|
|
tabWidth: 2,
|
|
trailingComma: 'all',
|
|
// #endregion Prettier
|
|
|
|
// #region @trivago/prettier-plugin-sort-imports
|
|
importOrder: ['^@', '^[./]'],
|
|
// #endregion @trivago/prettier-plugin-sort-imports
|
|
}
|
|
|
|
export { recommended }
|