mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-17 23:46:41 +01:00
45953e3ba3
* improve accessibility of FreeTube input elements Co-Authored-By: Jason <84899178+jasonhenriquez@users.noreply.github.com> * make focus visible for prompt * add close button to ft-prompt * Update src/renderer/components/ft-icon-button/ft-icon-button.vue Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * make suggested changes * move eslint plugin to devdepedencies Co-Authored-By: absidue <48293849+absidue@users.noreply.github.com> * dont hide ft-prompt on focus out * add aria-describeby * update eslint-plugin-vuejs-accessibility * Update yarn.lock * Update yarn.lock * Fix lint issues * only escape whitespace in ids * use computed properties Co-authored-by: Jason <84899178+jasonhenriquez@users.noreply.github.com> Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
module.exports = {
|
|
// https://eslint.org/docs/user-guide/configuring#using-configuration-files-1
|
|
root: true,
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#specifying-environments
|
|
env: {
|
|
browser: true,
|
|
node: true
|
|
},
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#specifying-parser
|
|
parser: 'vue-eslint-parser',
|
|
|
|
// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module'
|
|
},
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
|
|
// order matters: from least important to most important in terms of overriding
|
|
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c
|
|
extends: [
|
|
'prettier',
|
|
'eslint:recommended',
|
|
'plugin:vue/recommended',
|
|
'standard'
|
|
// 'plugin:vuejs-accessibility/recommended' // uncomment once issues are fixed
|
|
],
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
|
|
plugins: ['vue', 'vuejs-accessibility'],
|
|
|
|
rules: {
|
|
'space-before-function-paren': 'off',
|
|
'comma-dangle': ['error', 'only-multiline'],
|
|
'vue/no-v-html': 'off',
|
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
'no-unused-vars': 'warn',
|
|
'no-undef': 'warn',
|
|
'vue/no-template-key': 'warn',
|
|
'vue/no-useless-template-attributes': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vuejs-accessibility/no-onchange': 'off',
|
|
'vuejs-accessibility/label-has-for': ['error', {
|
|
required: {
|
|
some: ['nesting', 'id']
|
|
}
|
|
}]
|
|
}
|
|
}
|