Opinionated configuration for projects using Prettier, ESLint, TypeScript and React.
npm install --save-dev @eruptionjs/configWhile you have full control over the configuration, you can use the settings in this project as a starting point for your own. In many cases, the default configurations may be all you need.
Install prettier on your project, and add the eruptionjs configuration on your package.json:
npm install --save-dev prettierpackage.json
{
// ... Your existing configuration
"prettier": "@eruptionjs/config/prettier"
}The Eruption TypeScript configuration extends the base TypeScript configuration with additional rules and settings.
To use the configuration, add the following to your tsconfig.json (create it if it doesn't exist):
{
"extends": "@eruptionjs/config/typescript",
"include": ["@eruptionjs/reset.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}The Eruption ESLint configuration extends the base ESLint configuration with additional rules and settings.
To use the configuration, install eslint on your project, and add the following to your eslint.config.js file (create it if it doesn't exist):
npm install --save-dev eslinteslint.config.js
import { config as defaultConfig } from '@eruptionjs/config/eslint'
/** @type {import("eslint").Linter.Config} */
export default [...defaultConfig]Install biome on your project, and add the eruptionjs configuration on your biome.json file:
npm install --save-dev @biomejs/biomebiome.json
{
"extends": "@eruptionjs/config/biome"
}MIT @ EruptionJS and its contributors.