Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 596 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 596 Bytes

How to use ?

Install the package:

$ yarn add git+https://git@github.com/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.