Skip to content

Commit

Permalink
fix(lint): Fix issues found by eslint
Browse files Browse the repository at this point in the history
Run eslint with out config on our config.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Jan 10, 2023
1 parent 2288a54 commit 3c39fea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions index.js
Expand Up @@ -92,8 +92,8 @@ module.exports = {
multiline: 1,
}],
'vue/first-attribute-linebreak': ['error', {
'singleline': 'beside',
'multiline': 'beside',
singleline: 'beside',
multiline: 'beside',
}],
// Allow single-word components names
'vue/multi-word-component-names': ['off'],
Expand All @@ -107,7 +107,7 @@ module.exports = {
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
// the src folder
'n/no-unpublished-import': ['error', {
'allowModules': ['@vue/test-utils', '@testing-library/vue'],
allowModules: ['@vue/test-utils', '@testing-library/vue'],
}],
// require object literal shorthand syntax
'object-shorthand': ['error', 'always'],
Expand All @@ -121,7 +121,7 @@ module.exports = {
files: ['**/*.ts'],
extends: [
'@vue/eslint-config-typescript/recommended',
'plugin:import/typescript'
'plugin:import/typescript',
],
parserOptions: {
parser: '@typescript-eslint/parser',
Expand All @@ -132,11 +132,11 @@ module.exports = {
'jsdoc/check-tag-names': [
'warn', {
// for projects using typedoc
'definedTags': [
definedTags: [
'notExported',
'packageDocumentation'
'packageDocumentation',
],
}
},
],
// Does not make sense with TypeScript
'jsdoc/require-param-type': 'off',
Expand All @@ -148,7 +148,7 @@ module.exports = {
extensions: ['.js', '.ts', '.vue'],
},
},
},
}
]
},
},
],
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -8,7 +8,8 @@
"url": "git+https://github.com/nextcloud/eslint-config.git"
},
"scripts": {
"lint": "eslint -c index.js *.js"
"lint": "eslint -c index.js *.js",
"lint:fix": "eslint -c index.js --fix *.js"
},
"peerDependencies": {
"@babel/core": "^7.13.10",
Expand Down

0 comments on commit 3c39fea

Please sign in to comment.