Skip to content

Commit

Permalink
feat: Allow config to be used within TypeScript projects
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Jan 10, 2023
1 parent e6e1a39 commit 040875a
Show file tree
Hide file tree
Showing 3 changed files with 829 additions and 6 deletions.
35 changes: 35 additions & 0 deletions index.js
Expand Up @@ -115,4 +115,39 @@ module.exports = {
ignorePackages: true,
}],
},
overrides: [
{
files: ['**/*.ts'],
extends: [
'@vue/eslint-config-typescript/recommended',
'plugin:import/typescript'
],
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'n/no-missing-import': 'off',
'import/extensions': 'off',
'jsdoc/check-tag-names': [
'warn', {
// for projects using typedoc
'definedTags': [
'notExported',
'packageDocumentation'
],
}
],
// Does not make sense with TypeScript
'jsdoc/require-param-type': 'off',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.ts', '.vue'],
},
},
},
}
]
}

0 comments on commit 040875a

Please sign in to comment.