diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 178ae537b88021e15fe81f18d14adf0f859e056a..78e240f3a2192c93a7452c800a75f09e595cd7d4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,10 +34,10 @@ language: system files: \.(py)$ -#- repo: local -# hooks: -# - id: eslint-format-checker -# name: eslint-format-checker -# description: Format files with ESLint. -# entry: bash ./.eslint_format.hook -# language: system +- repo: local + hooks: + - id: eslint-format-checker + name: eslint-format-checker + description: Format files with ESLint. + entry: bash ./.eslint_format.hook + language: system diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index f66d7f66e2375ec8d6ba00d7791edbb6f86efb80..b579de16de63113b2511072632a53eb0b1a43a64 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -5,11 +5,20 @@ module.exports = { 'plugin:vue/essential', 'plugin:vue/strongly-recommended', ], + parserOptions: { + "sourceType": "module", + }, rules: { // override/add rules settings here, such as: 'vue/no-unused-vars': 'warn', 'max-len': ["warn", 120], "vue/prop-name-casing": ["error"], 'vue/script-indent': 'error', + + // The following rules should apply eventually. Turn them off for now + // so we can have pre-commit running + 'no-invalid-this': 'off', + 'require-jsdoc': 'off', + 'no-unused-vars': 'off', } } diff --git a/frontend/src/audio/Audio.vue b/frontend/src/audio/Audio.vue index e5ff7120e8a62c617cbde2fbf1cbfd51dc212914..f05d6d3c13594b3ca03ac5db5d9c1e84d6bc5632 100644 --- a/frontend/src/audio/Audio.vue +++ b/frontend/src/audio/Audio.vue @@ -31,7 +31,7 @@