(https://www.npmjs.com/package/@a24/codestyle)
This package provides Author24 .eslintrc as an extensible shared config.
Our default export contains most of our ESLint rules, including ECMAScript 6+ and React.
- Install the correct versions of each package, which are listed by the command:
npm info "@a24/codestyle@latest" peerDependencies
If using npm
npm install -g install-peerdeps
install-peerdeps --dev @a24/codestyle
or if you don't want install istall-peerdeps global you can use shortcut
npm install --save-dev @a24/codestyle eslint-plugin-react@7.30.1 @typescript-eslint/eslint-plugin@4.28.1 @typescript-eslint/parser@4.28.1 eslint@7.32.0 eslint-config-prettier@8.8.0 eslint-plugin-prettier@4.2.1 eslint-plugin-react@7.30.1 eslint-plugin-react-hooks@4.6.0 eslint-plugin-simple-import-sort@10.0.0
If using yarn
yarn add -D @a24/codestyle eslint-plugin-react@7.30.1 @typescript-eslint/eslint-plugin@4.28.1 @typescript-eslint/parser@4.28.1 eslint@7.32.0 eslint-config-prettier@8.8.0 eslint-plugin-prettier@4.2.1 eslint-plugin-react@7.30.1 eslint-plugin-react-hooks@4.6.0 eslint-plugin-simple-import-sort@10.0.0
- Add
"extends": "./node_modules/@a24/codestyle"
to your.eslintrc