3.2.1 • Published 4 months ago

eslint-plugin-widen v3.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

eslint-plugin-widen

npm

Widen's own ESLint plugin containing custom lint rules for our code.

Installation

yarn add --dev eslint-plugin-widen

Usage

Add the following to your eslint.config.mjs file.

import widen from 'eslint-plugin-widen'

export default [
  {
    plugins: {
      widen,
    },
    rules: {
      'widen/jsx-fragments': 'error',
      'widen/jsx-import': 'error',
    },
  },
]

List of Supported Rules

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

āœ”šŸ”§RuleDescription
šŸ”§widen/jsx-fragmentsEnforce usage of JSX fragment longhand to allow for compatibility with Emotion.
šŸ”§widen/jsx-importEnforces all files to use the jsx pragma from @emotion/react when using the css prop.
3.2.1

4 months ago

3.2.0

4 months ago

3.0.0

12 months ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago