mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 11:13:29 +00:00
* add tailwind prettier plugin + run prettier * add eslint tailwind plugin and eslint fix to turbo * Ran eslint fix + fixed every other lint issues * twStyle and lint stuff * remove auto lint as it's buggy * update eslint & add twStyle to tailwind regex * Fix auto lint + config inconsistencies * Add tailwind config to prettier config * run lint:fix --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
28 lines
656 B
JavaScript
28 lines
656 B
JavaScript
/**
|
|
* {@type require('prettier').Config}
|
|
*/
|
|
module.exports = {
|
|
useTabs: true,
|
|
printWidth: 100,
|
|
singleQuote: true,
|
|
trailingComma: 'none',
|
|
bracketSameLine: false,
|
|
semi: true,
|
|
quoteProps: 'consistent',
|
|
importOrder: [
|
|
// external packages
|
|
'^([A-Za-z]|@[^s/])',
|
|
// spacedrive packages
|
|
'^@sd/(interface|client|ui)(/.*)?$',
|
|
// this package
|
|
'^~/',
|
|
// relative
|
|
'^\\.'
|
|
],
|
|
importOrderSortSpecifiers: true,
|
|
importOrderParserPlugins: ['importAssertions', 'typescript', 'jsx'],
|
|
pluginSearchDirs: false,
|
|
plugins: ['@trivago/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
|
|
tailwindConfig: 'packages/ui/tailwind.config.js'
|
|
};
|