Skip to content

Instantly share code, notes, and snippets.

@TimMikeladze
Created September 23, 2024 12:12
Show Gist options
  • Save TimMikeladze/3028052fe9b609db1b101b4a6eb532c1 to your computer and use it in GitHub Desktop.
Save TimMikeladze/3028052fe9b609db1b101b4a6eb532c1 to your computer and use it in GitHub Desktop.
Biome config for React / NextJS development
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"files": {
"ignore": [
"**/dist/**",
"**/storybook-static/**",
"**/coverage/**",
"**/.next/**",
"**/node_modules/**"
]
},
"organizeImports": {
"enabled": true
},
"css": {
"formatter": {
"enabled": true
},
"linter": {
"enabled": true
}
},
"linter": {
"enabled": true,
"rules": {
"nursery": {
"useSortedClasses": {
"fix": "safe",
"level": "error",
"options": {
"attributes": ["classList"],
"functions": ["clsx", "cm", "cva", "tw"]
}
}
},
"all": true,
"style": {
"noDefaultExport": "off",
"useFilenamingConvention": "off",
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false
}
}
},
"performance": {
"noReExportAll": "off",
"noBarrelFile": "off"
},
"suspicious": {
"noReactSpecificProps": "off",
"noConsole": {
"fix": "none",
"level": "warn"
},
"noConsoleLog": {
"fix": "none",
"level": "warn"
}
},
"correctness": {
"useImportExtensions": "off",
"noUndeclaredDependencies": "off",
"noUnusedVariables": "off",
"noNodejsModules": "off"
}
}
},
"formatter": {
"enabled": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment