1.0.0 • Published 3 months ago

@thyself/eslint-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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.

NPM Downloads Dependents (via libraries.io) npm bundle size (scoped) npm bundle size (scoped)

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
      }
    }
  ]
}
1.0.0

3 months ago