1.0.1 • Published 3 months ago

eslint-plugin-trim v1.0.1

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

eslint-plugin-trim

Installation

# npm
npm install -D eslint-plugin-trim

# yarn
yarn add -D eslint-plugin-trim

# pnpm
pnpm add -D eslint-plugin-trim

Configuration (legacy: .eslintrc\*)

{
  "plugins": ["trim"],
  "rules": {
    "trim/argument": "warn",
    "trim/class-name": "warn"
  }
}

or

{
  "extends": ["plugin:trim/recommended"]
}

Configuration (new: eslint.config.js)

import trim from 'eslint-plugin-trim';

export default [trim.configs.flat.recommended];

List of supported rules

āœ”ļø: Enabled in the recommended configuration.\ šŸ”§: Fixable with eslint --fix.

āœ”ļøšŸ”§RuleDescription
āœ…šŸ”§argumentEnforce argument
āœ…šŸ”§class-nameEnforce className
1.0.1

3 months ago

1.0.0

5 months ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.3.1

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago