mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-08-29 09:28:23 +02:00
* feat(ci): added custom prettier plugin for icon SVG files * feat(ci): added custom prettier plugin for icon SVG files * feat(ci): replace prettier plugin implementation with one based on svgo * fix(ci): fix linting issues in prettier plugin * Allow fill in path to fix podcast icon * Format code --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
25 lines
468 B
JavaScript
25 lines
468 B
JavaScript
/** @satisfies {import('prettier').Config} */
|
|
const config = {
|
|
plugins: ['./prettier-plugin-lucide-svg.mjs'],
|
|
singleQuote: true,
|
|
trailingComma: 'all',
|
|
printWidth: 100,
|
|
singleAttributePerLine: true,
|
|
overrides: [
|
|
{
|
|
files: ['icons/*.json', 'categories/*.json'],
|
|
options: {
|
|
printWidth: 0,
|
|
},
|
|
},
|
|
{
|
|
files: ['icons/*.svg'],
|
|
options: {
|
|
parser: 'lucide-svg',
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default config;
|