@thyself/eslint-plugin
v1.0.0
Published
An eslint plugin that inspired and based on `@nx/eslint-plugin` with extra rules of flavour for each of the nx supported environments.
Downloads
3
Maintainers
Readme
eslint-plugin
An eslint plugin that inspired and based on @nx/eslint-plugin
with extra rules of flavour for each of the nx supported environments.
Features
- Supports the following environments:
typescript
,javascript
.
Install
# npm
npm i -D @thyself/eslint-plugin@latest
# yarn
yarn add @thyself/eslint-plugin@latest -D
# pnpm
pnpm add @thyself/eslint-plugin@latest -D
Usage
Configure in your eslint
config:
{
// ...more options
"plugins": ["@thyself"],
// global
"extends": ["plugin:@thyself/typescript"],
// OR use in overrides, for mixed environments and/or better control
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@thyself/typescript"],
"rules": {
// ...more typescript custom rules
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@thyself/javascript"],
"rules": {
// ...more javascript custom rules
}
}
]
}