1.6.0 • Published 7 months ago

@saasjetlib/eslint-config-react v1.6.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

SaaSJet ESLint config for React.js

This package provides base JS .eslintrc.json as an extensible shared config.

Usage

  1. Install packages:
npm
npm install @saasjetlib/eslint-config-js-react --save-dev
yarn
yarn add @saasjetlib/eslint-config-js-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks --dev
  1. Create ESLint configuration file .eslintrc
{
  "extends": [
    "@saasjetlib/eslint-config-react"
  ]
}
  1. Options:
env.browser - set true, if  code run in Browser
env.node - set true, if  code run in Node
env.commonjs- set true, if use CommonJS modules (require/exports)

parserOptions.sourceType - set "module", if use JavaScript modules (import/export)

All rules from the ataskit eslint plugin are included as error, you can find all these rules on https://atlassian.design/components/eslint-plugin-design-system/usage

Only these rules are included as WARN:

  • @atlaskit/design-system/no-custom-icons
  • @atlaskit/design-system/no-legacy-icons
  • @atlaskit/design-system/no-margin
  • @atlaskit/design-system/no-physical-properties
  • @atlaskit/design-system/no-unsupported-drag-and-drop-libraries
1.2.0

12 months ago

1.5.5

12 months ago

1.5.4

12 months ago

1.5.3

12 months ago

1.5.2

12 months ago

1.6.0

7 months ago

1.5.1

12 months ago

1.5.0

12 months ago

1.4.1

12 months ago

1.4.0

12 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.0

4 years ago

0.1.0

4 years ago