Created
July 1, 2020 23:35
-
-
Save tinacious/39c95ca0d13e6a4dd79f214c35991881 to your computer and use it in GitHub Desktop.
ESLint configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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