0.0.0-bun-test • Published 2 months ago

@aprets/config v0.0.0-bun-test

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

@aprets/config

Usage

  1. Install the package
npm install -D @aprets/config
  1. 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',
  },
};
  1. Create .prettierrc.json file in the root of where you want to use the config
"@aprets/config/prettier"
  1. Create tsconfig.json file in the root of where you want to use the config
{
  "extends": "@aprets/config/tsconfig",
  "compilerOptions": {
    "noEmit": true,
  },
  "include": [
    "./src"
  ]
}
  1. Create .stylelintrc file in the root of where you want to use the config
{
  "extends": "@aprets/config/stylelint"
}
  1. Potentially reload relevant plugins or restart your editor.