UNPKG

personal-style-guide

Version:

A shared configuration for ESLint, Prettier, and Stylelint to ensure consistent and clean code across your projects.

31 lines (29 loc) 787 B
/** * Some of Prettier's defaults can be overridden by an EditorConfig file. We * define those here to ensure that doesn't happen. * * See: https://github.com/prettier/prettier/blob/main/docs/configuration.md#editorconfig */ const overridableDefaults = { endOfLine: "lf", printWidth: 100, tabWidth: 2, useTabs: false, }; export default { ...overridableDefaults, arrowParens: "avoid", bracketSpacing: true, htmlWhitespaceSensitivity: "strict", jsxSingleQuote: true, plugins: ["prettier-plugin-packagejson", "@prettier/plugin-pug"], proseWrap: "preserve", pugAttributeSeparator: "none", pugFramework: "vue", pugSingleQuote: false, quoteProps: "as-needed", semi: false, singleQuote: true, trailingComma: "none", vueIndentScriptAndStyle: true, };