ESLint config
ESLint rules for all POS Web projects.
Installation
This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:
Copy
yarn add --dev @pos-web/eslint-config
Usage
Then add the extends to your .eslintrc.js:
Copy
module.exports = {
extends: '@pos-web/eslint-config',
};
Warning: Due to this bug you need to have the associated plugins installed to make things work. We recommend adding them as devDependencies to your project if you're going to use the config for it.
Associated plugins:
-
@typescript-eslint/eslint-plugin
-
@typescript-eslint/parser
-
babel-eslint
-
eslint-config-prettier
-
eslint-plugin-import
-
eslint-plugin-jest
-
eslint-plugin-jest-dom
-
eslint-plugin-jsx-a11y
-
eslint-plugin-node
-
eslint-plugin-prettier
-
eslint-plugin-react
-
eslint-plugin-react-hooks
-
eslint-plugin-testing-library
Copy
yarn add --dev @typescript-eslint/eslint-plugin@^3.4.0 @typescript-eslint/parser@^3.4.0 babel-eslint@^10.1.0 eslint-config-prettier@^6.11.0 eslint-plugin-import@^2.21.2 eslint-plugin-jest@^23.17.1 eslint-plugin-jest-dom@^3.0.1 eslint-plugin-jsx-a11y@^6.3.1 eslint-plugin-node@^11.1.0 eslint-plugin-prettier@^3.1.4 eslint-plugin-react@^7.20.0 eslint-plugin-react-hooks@^4.0.4 eslint-plugin-testing-library@^3.3.1