Skip to content

Commit

Permalink
add .eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
DegrangeM committed Apr 14, 2021
1 parent f5d428d commit f88c357
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"globals": {
"H5P": true,
"H5PIntegration": true,
"H5PEditor": true,
"CodeMirror": true
},
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"rules": {
"valid-jsdoc": "off",
"semi": [2, "always"],
"indent": ["error", 2, {"SwitchCase": 1}],
"brace-style": ["error", "stroustrup"],
"keyword-spacing": ["error", {"after": true}],
"comma-spacing": ["error", { "before": false, "after": true }],
"space-infix-ops": ["error", {"int32Hint": false}],
"eqeqeq": [2, "smart"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"quotes": [2, "single"],
"no-extra-boolean-cast": "off",
"no-console": ["error", {"allow": ["warn", "error"]}]
}
}
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

0 comments on commit f88c357

Please sign in to comment.