-
Notifications
You must be signed in to change notification settings - Fork 4
/
typescript.js
43 lines (43 loc) · 993 Bytes
/
typescript.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/** Rules for typescript */
module.exports = {
files: ['**/*.ts', '**/*.cts', '**/*.mts', '**/*.tsx'],
extends: [
'@vue/eslint-config-typescript/recommended',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {},
rules: {
// allow for generic type parameters on function calls
'func-call-spacing': 'off',
'@typescript-eslint/func-call-spacing': 'error',
//
'n/no-missing-import': 'off',
'import/extensions': 'off',
'jsdoc/check-tag-names': [
'warn', {
definedTags: [
// for projects using typedoc
'notExported',
'packageDocumentation',
// for jest
'jest-environment',
],
},
],
// Does not make sense with TypeScript
'jsdoc/require-param-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
node: {
paths: ['src'],
extensions: ['.(m|c)?js', '.ts', '.tsx', '.vue'],
},
},
},
}