Skip to content

Instantly share code, notes, and snippets.

@andrewriveradev
Created June 29, 2021 03:49
Show Gist options
  • Save andrewriveradev/df39fc35dbd79fccd5057e8491a9d5cd to your computer and use it in GitHub Desktop.
Save andrewriveradev/df39fc35dbd79fccd5057e8491a9d5cd to your computer and use it in GitHub Desktop.
[Boilerplate] ESLint + Prettier + stylelint + Tailwind + Cypress + TypeScript + VS Code
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb/hooks",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".js",
".jsx"
]
}
],
"prettier/prettier": "error"
}
}
{
"singleQuote": true,
"trailingComma": "all"
}
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": [
"js"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment