1.7.0 • Published 7 months ago

@saasjetlib/eslint-config-ts-react v1.7.0

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

SaaSJet ESLint config for TS + React.js

This package provides base JS .eslintrc.json as an extensible shared config. It uses atlaskit eslint plugin

Usage

  1. Install packages
npm
npm install @saasjetlib/eslint-config-ts-react eslint-plugin-import --save-dev
yarn
yarn add @saasjetlib/eslint-config-ts-react --dev
  1. Create ESLint configuration file .eslintrc.json
{
  "extends": ["@saasjetlib/eslint-config-ts-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

NPM

eslint eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y

1.6.4

12 months ago

1.6.3

12 months ago

1.6.2

12 months ago

1.7.0

7 months ago

1.6.1

12 months ago

1.6.0

12 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.6.7

12 months ago

1.6.6

12 months ago

1.6.5

12 months ago

1.1.1

2 years ago