mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-23 18:30:53 +01:00
d53111d7f1
* Bump eslint-plugin-vue from 7.20.0 to 9.6.0 Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 7.20.0 to 9.6.0. - [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases) - [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v7.20.0...v9.6.0) --- updated-dependencies: - dependency-name: eslint-plugin-vue dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * add new lint rules Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: onion chunky <78101139+ChunkyProgrammer@users.noreply.github.com>
46 lines
1.3 KiB
JavaScript
46 lines
1.3 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'
|
|
],
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
|
|
plugins: ['vue'],
|
|
|
|
rules: {
|
|
'space-before-function-paren': 'off',
|
|
'comma-dangle': ['error', 'never'],
|
|
'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'
|
|
}
|
|
}
|