yarn add --dev eslint@^8.0.0 @atomixdesign/eslint-config@^1.0.0
Add the following into your .eslintrc
file:
{
"extends": "@atomixdesign/eslint-config/recommended"
}
Also include the following npm dependencies:
yarn add --dev eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
And use the React config instead in your .eslintrc
:
{
"extends": "@atomixdesign/eslint-config/react"
}
yarn add --dev eslint @atomixdesign/eslint-config
Add the following into your eslint.config.mjs
file (note the .mjs, not .js):
import config from "@atomixdesign/eslint-config"
export default [
...config
];
Add the additional react config into your eslint.config.mjs
file (note the .mjs, not .js):
import config from "@atomixdesign/eslint-config"
import reactConfig from "@atomixdesign/eslint-config/react"
export default [
...config,
...reactConfig
];