mirror of
https://github.com/hanzoai/o11y-components.git
synced 2026-10-30 14:54:15 +00:00
* fix(package): better compatibility with cjs/esm * refactor(components): try optimize bundle output * refactor(index): use tailwind config * feat(vite): migrate from tsdown * feat(biome): migrate from eslint * fix(vite): last config to correct d.ts of cjs
35 lines
683 B
JavaScript
35 lines
683 B
JavaScript
const { resolve } = require('node:path');
|
|
|
|
const project = resolve(process.cwd(), 'tsconfig.json');
|
|
|
|
/*
|
|
* This is a custom ESLint configuration for use with
|
|
* typescript packages.
|
|
*
|
|
* This config extends the Vercel Engineering Style Guide.
|
|
* For more information, see https://github.com/vercel/style-guide
|
|
*
|
|
*/
|
|
|
|
module.exports = {
|
|
extends: ['@vercel/style-guide/eslint/node', '@vercel/style-guide/eslint/typescript'].map(
|
|
require.resolve
|
|
),
|
|
parserOptions: {
|
|
project,
|
|
},
|
|
plugins: ['only-warn'],
|
|
globals: {
|
|
React: true,
|
|
JSX: true,
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {
|
|
project,
|
|
},
|
|
},
|
|
},
|
|
ignorePatterns: ['node_modules/', 'dist/'],
|
|
};
|