0.0.0-bun-test • Published 2 months ago
@aprets/config v0.0.0-bun-test
@aprets/config
Usage
- Install the package
npm install -D @aprets/config
- Create
.eslintrc.js
file in the root of where you want to use the config
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@aprets/config/patch/modern-name-resolution');
module.exports = {
extends: ['./node_modules/@aprets/config/eslint/react'],
parserOptions: {
project: './tsconfig.json',
},
};
- Create
.prettierrc.json
file in the root of where you want to use the config
"@aprets/config/prettier"
- Create
tsconfig.json
file in the root of where you want to use the config
{
"extends": "@aprets/config/tsconfig",
"compilerOptions": {
"noEmit": true,
},
"include": [
"./src"
]
}
- Create
.stylelintrc
file in the root of where you want to use the config
{
"extends": "@aprets/config/stylelint"
}
- Potentially reload relevant plugins or restart your editor.