@ctrl/eslint-config-biome
v4.2.13
Published
eslint typescript config
Downloads
592
Readme
@ctrl/eslint-config-biome
Not really a shareable eslint config, more of a set of rules and eslint all together. Installs all required eslint dependencies. This package was created to unify my eslint rules and reduce churn from all the eslint packages in package.json. Does not include prettier rules, expected to be setup with biome.
Based on xo and xo-typescript and disables rules that are in biome are I found annoying.
npm i @biomejs/biome @ctrl/eslint-config-biome @eslint/compat eslint -D
eslint.config.mjs
import config from '@ctrl/eslint-config-biome';
import { includeIgnoreFile } from '@eslint/compat';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, '.gitignore');
export default [
includeIgnoreFile(gitignorePath),
{
ignores: ['tailwind.config.cjs', 'postcss.config.cjs', 'eslint.config.mjs', 'vite.config.ts'],
},
];
biome.json
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true,
"ignore": ["dist/*", "package.json"]
},
"extends": ["@ctrl/eslint-config-biome/biome"]
}