@saasjetlib/eslint-config-ts-react
v1.6.7
Published
SaaSJet ESLint config for React + TS
Downloads
1,005
Readme
SaaSJet ESLint config for TS + React.js
This package provides base JS .eslintrc.json as an extensible shared config.
Usage
- Install packages
npm
npm install @saasjetlib/eslint-config-ts-react eslint-plugin-import --save-dev
yarn
yarn add @saasjetlib/eslint-config-ts-react --dev
- Create ESLint configuration file .eslintrc.json
{
"extends": ["@saasjetlib/eslint-config-ts-react"]
}
- 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)
NPM
eslint eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y