1.0.2 • Published 2 years ago
@schopp/eslint-config v1.0.2
Schopp ESLint Config
This package provides standard ESLint configuration to all Schopp TypeScript projects, ensuring consistent code style.
Quickstart
Run the following at your project root to install this package and all peer dependencies:
npm i --save-dev @schopp/eslint-config \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint \
typescript
Then, copy this minimal configuration to .eslintrc.json
in the same directory:
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"@schopp/eslint-config"
]
}
Configure tsconfig.json
, .eslintignore
and so forth as your project requires. Now you should be able to run npx eslint <your-src-dir>
and see some results. Happy linting!