Install the package:
$ yarn add git+https://[email protected]/derniercri/eslint-config-derniercri.git
Create or edit a .eslintrc
file at project's root :
{
"extends": [
"derniercri"
]
}
And a .prettierrc
(prettier
can't read eslint
configuration) :
{
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
Finally the following script to your package.json
"lint": "eslint 'src/**/*.{t,j}s{,x}'"
And voilà !
Check the sample folder of this repository for a concrete example.