@felipe-ds-lima/eslint-config
v1.2.1
Published
Felipe's default lint
Downloads
32
Readme
eslint-config
My eslint default configs for typescript node and react and prettier
How to use
Install the package
npm i --dev @felipe-ds-lima/eslint-config
or
yarn -D @felipe-ds-lima/eslint-config
If you get some error, upgrade the typescript version to >=3.3.1
Create the .eslint.json
file:
{
"extends": [
"@felipe-ds-lima/eslint-config/react-config"
],
"parserOptions": {
"project": "tsconfig.json"
},
"ignorePatterns": ["*.js"],
"rules": {
}
}
In rules you can put your own rules.
Create the .prettierrc
file:
{
"semi": false,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "es5",
"endOfLine": "auto"
}