Skip to content

Instantly share code, notes, and snippets.

@tinacious
Created July 1, 2020 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinacious/39c95ca0d13e6a4dd79f214c35991881 to your computer and use it in GitHub Desktop.
Save tinacious/39c95ca0d13e6a4dd79f214c35991881 to your computer and use it in GitHub Desktop.
ESLint configs
{
"env": {
"node": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
],
"padded-blocks": [
"error",
{
"blocks": "never",
"switches": "never",
"classes": "never"
}
],
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": false
}
]
}
}
{
"eslintConfig": {
"extends": "react-app",
"rules": {
"semi": 1,
"padded-blocks": [
"error",
{
"blocks": "never",
"switches": "never",
"classes": "never"
}
],
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": false
}
],
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment