@hybrbase/eslint-config
Version:
A shareable eslint base configuration for projects.
32 lines (29 loc) • 692 B
JavaScript
// @ts-check
/**
* @type {import('prettier').Config}
*/
module.exports = {
endOfLine: "auto",
// https://prettier.io/docs/en/options.html#print-width
printWidth: 100,
tabWidth: 2,
arrowParens: "avoid",
singleQuote: true,
semi: false,
trailingComma: "es5",
useTabs: false,
bracketSpacing: true,
bracketSameLine: false,
overrides: [
{
files: ["*.html"],
options: {
// disable to prevent conflicts with html-validate
trailingComma: "none",
// https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting
htmlWhitespaceSensitivity: "css",
singleAttributePerLine: true,
},
},
],
};