Added to the SVG converting script a line to create .svg.js files. These files are normal JS files that exports just a single string, the SVG file content. This way the library doesn't need a build step to embed these files and/or node:fs to read them.
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
import { configs, defineConfig, presets } from '@eslegant/js';
|
|
|
|
export default defineConfig([
|
|
{
|
|
ignores: ['**/*.svg.js'],
|
|
},
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
...presets.strict,
|
|
configs.environments.node.strict.default,
|
|
]);
|
|
|