1.0.1 • Published 2 years ago
@wardes/eslint-config-react v1.0.1
eslint-config
Personal Eslint config (react + typescript)
Prettier friendly !
Installation
Install @wardes/eslint-config-react:
npm i -D eslint @wardes/eslint-config-reactyarn add -D eslint @wardes/eslint-config-reactpnpm add -D eslint @wardes/eslint-config-reactAdd the following to your eslint config:
{
"extends": [
"@wardes/eslint-config-react"
]
}or for nextjs:
{
"extends": [
"@wardes/eslint-config-react/next"
]
}And add ECMAScript env in your eslint config from Eslint envrionement config
{
"strict": true,
"parserOptions": {
"project": "./tsconfig.json"
}
}or
{
"noImplicitAny": true,
"strictNullChecks": true,
"parserOptions": {
"project": "./tsconfig.json"
}
}1.0.1
2 years ago