-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
57 lines (57 loc) · 1.47 KB
/
.eslintrc.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./packages/*/tsconfig.json'],
},
plugins: [
'import',
'jsdoc',
'tsdoc',
'@typescript-eslint/eslint-plugin'
],
extends: [
'eslint:recommended',
'plugin:jsdoc/recommended-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
ignorePatterns: ['.eslintrc.js', 'packages/*/dist'],
rules: {
'no-unused-vars': 'off',
'import/no-extraneous-dependencies': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-empty-interface': 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/tag-lines': ['error', 'any', { startLines: 1 }],
'tsdoc/syntax': 'error',
},
overrides: [
{
files: ['*.spec.tsx'],
rules: {
'jsdoc/tag-lines': 'off',
'tsdoc/syntax': 'off',
},
},
],
};