diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,21 @@ +module.exports = { + "env": { + "browser": true, + "es6": true, + "jquery": true + }, + "extends": "eslint:recommended", + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "plugins": [ + "html" + ], + "rules": { + } +}; diff --git a/kallithea/front-end/package.json b/kallithea/front-end/package.json --- a/kallithea/front-end/package.json +++ b/kallithea/front-end/package.json @@ -7,6 +7,7 @@ "codemirror": "5.49.0", "datatables.net": "1.10.20", "datatables.net-bs": "1.10.20", + "eslint": "6.8.0", "jquery": "3.4.1", "jquery.caret": "0.3.1", "jquery.flot": "0.8.3",