Skip to content

Eslint defaults rules for our Javascript projects

Notifications You must be signed in to change notification settings

derniercri/eslint-config-derniercri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use ?

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.