mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-18 05:02:47 -04:00
[web] Fix linting configuration
This commit is contained in:
parent
e476032776
commit
99ef7b8dfc
File diff suppressed because one or more lines are too long
@ -5,20 +5,19 @@ import pluginVue from 'eslint-plugin-vue'
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
files: ['src/**/*.js', 'src/**/.vue'],
|
files: ['**/*.js', 'src/**/*.vue'],
|
||||||
languageOptions: { globals: { ...globals.node } }
|
languageOptions: { globals: { ...globals.browser, ...globals.node } }
|
||||||
},
|
},
|
||||||
eslintConfigPrettier,
|
|
||||||
js.configs.all,
|
|
||||||
...pluginVue.configs['flat/recommended'],
|
...pluginVue.configs['flat/recommended'],
|
||||||
{
|
{
|
||||||
rules: {
|
rules: {
|
||||||
|
...eslintConfigPrettier.rules,
|
||||||
|
...js.configs.all.rules,
|
||||||
camelcase: 'off',
|
camelcase: 'off',
|
||||||
'id-length': 'off',
|
'id-length': 'off',
|
||||||
'max-lines-per-function': 'off',
|
'max-lines-per-function': 'off',
|
||||||
'no-bitwise': 'off',
|
'no-bitwise': 'off',
|
||||||
'no-magic-numbers': 'off',
|
'no-magic-numbers': 'off',
|
||||||
'no-undef': 'off',
|
|
||||||
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
|
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
|
||||||
'one-var': 'off',
|
'one-var': 'off',
|
||||||
'sort-keys': 'off',
|
'sort-keys': 'off',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user