0.0.0-bun-test • Published 2 years ago
@aprets/config v0.0.0-bun-test
@aprets/config
Usage
- Install the package
npm install -D @aprets/config- Create
.eslintrc.jsfile 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.jsonfile in the root of where you want to use the config
"@aprets/config/prettier"- Create
tsconfig.jsonfile in the root of where you want to use the config
{
"extends": "@aprets/config/tsconfig",
"compilerOptions": {
"noEmit": true,
},
"include": [
"./src"
]
}- Create
.stylelintrcfile in the root of where you want to use the config
{
"extends": "@aprets/config/stylelint"
}- Potentially reload relevant plugins or restart your editor.