@zedtk/eslint-config
v1.0.3
Published
Opinionated configurations for eslint
Downloads
6
Readme
@zedtk/eslint-config
@zedtk/eslint-config is a set of opinionated configurations for eslint and various plugins.
The configurations can be considered strict and suited for enterprise developement.
Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed
eslint
version 7 or higher
Installing @zedtk/eslint-config
To install @zedtk/eslint-config, follow these steps:
npm:
npm i -D @zedtk/eslint-config
pnpm:
pnpm add -D @zedtk/eslint-config
Using @zedtk/eslint-config
To use @zedtk/eslint-config, follow these steps:
.eslintrc.json
{
...
"extends": "@zedtk"
...
}
Default configuration provides rules for JavaScript and TypeScript based on:
- eslint
- @typescript-eslint
And configuration for the following plugins if installed:
- eslint-plugin-import
- eslint-plugin-unused-imports
If you are only interested in a subset of the provided configuration, you can extend from:
- a profile:
"extends": "@zedtk/eslint-config/javascript"
- a ruleset:
"extends": "@zedtk/eslint-config/rulesets/unused-imports"
License
This project uses the following license: MIT