Skip to content

Instantly share code, notes, and snippets.

@ManotLuijiu
Created April 28, 2019 10:45
Show Gist options
  • Save ManotLuijiu/4287f30a90dc03451ce72e74449cec8a to your computer and use it in GitHub Desktop.
Save ManotLuijiu/4287f30a90dc03451ce72e74449cec8a to your computer and use it in GitHub Desktop.
Eslint and Prettier Configure
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/destructuring-assignment": ["always", { "ignoreClassFields": true }]
},
"parser": "babel-eslint"
}
{
"endOfLine": "lf",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"highlight-matching-tag.styles": {
"opening": {
"left": {
"custom": {
"borderWidth": "0 0 0 3px",
"borderStyle": "solid",
"borderColor": "yellow",
"borderRadius": "5px"
}
},
"right": {
"custom": {
"borderWidth": "0 3px 0 0",
"borderStyle": "solid",
"borderColor": "yellow",
"borderRadius": "5px"
}
}
}
},
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.syntaxProfiles": {
"javascript": "jsx",
"javascript": "html"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment