This package contains the standard eslint configurations for TypeScript packages used by STORIS. It extends and relies on a number of other rulesets and packages including eslint-config-airbnb, @typescript/eslint, and others. It then refines those rulesets to match the STORIS TypeScript style guide.
@storis/eslint-config is available as an npm package.
npm install @storis/eslint-configThe package relies on the following peer dependencies which differ depending on if you are using the @storis/eslint-config/nodejs config or the @storis/eslint-config/react config. You must ensure that compatible versions of the necessary peer dependencies have been installed.
@typescript-eslint/eslint-plugin@typescript-eslint/parsereslinteslint-config-airbnb-typescripteslint-config-prettiereslint-plugin-importeslint-plugin-jesttypescript
eslint-config-airbnb-baseeslint-import-resolver-babel-module
eslint-config-airbnbeslint-import-resolver-webpackeslint-plugin-jsx-a11yeslint-plugin-reacteslint-plugin-react-hookseslint-plugin-testing-library
Add the following to your eslint configuration file (e.g. .eslintrc.js):
{
extends: ['@storis/eslint-config/nodejs'],
parserOptions: { tsconfigRootDir: __dirname, project: location_of_tsconfig_file }
}
Add the following to your eslint configuration file (e.g. .eslintrc.js):
{
extends: ['@storis/eslint-config/react'],
parserOptions: { tsconfigRootDir: __dirname, project: location_of_tsconfig_file }
}
This project is licensed under the terms of the MIT license.