Created
July 16, 2018 18:05
-
-
Save Bajena/9c80763f2e5d60db40e2b399df549426 to your computer and use it in GitHub Desktop.
eslint config for GDS connector + jest tests
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
module.exports = { | |
"env": { | |
"browser": true, | |
"es6": true, | |
"jest/globals": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module", | |
"ecmaVersion": 2017 | |
}, | |
"plugins": ["jest"], | |
"rules": { | |
"array-bracket-spacing": 2, | |
"arrow-spacing": 2, | |
"camelcase": [ "error", { "properties": "never" } ], | |
"comma-style": 2, | |
"comma-spacing": ["error", { "before": false, "after": true }], | |
"curly": [ 2, "all" ], | |
"eol-last": 2, | |
"indent": [ "error", 2 ], | |
"key-spacing": 2, | |
"keyword-spacing": 2, | |
"no-console": 0, | |
"no-trailing-spaces": "error", | |
"no-multiple-empty-lines": ["error", { "max": 1 }], | |
"object-curly-spacing": [ 2, "always" ], | |
"padded-blocks": ["error", "never"], | |
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], | |
"semi": [ 2, "always" ], | |
"space-before-blocks": 2, | |
"space-in-parens": 2, | |
"space-infix-ops": 2 | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment