Skip to content

Instantly share code, notes, and snippets.

@Bajena
Created July 16, 2018 18:05
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 Bajena/9c80763f2e5d60db40e2b399df549426 to your computer and use it in GitHub Desktop.
Save Bajena/9c80763f2e5d60db40e2b399df549426 to your computer and use it in GitHub Desktop.
eslint config for GDS connector + jest tests
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