diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..059ea64 --- /dev/null +++ b/.eslintrc.json @@ -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"]}] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index fd66109..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ - -.eslintrc.json -package.json