forked from hirosystems/stacks.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (34 loc) · 1.23 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
reportUnusedDisableDirectives: true,
extends: ['@stacks/eslint-config', 'plugin:import/typescript'],
plugins: ['@typescript-eslint', 'node', 'import'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./packages/**/tsconfig.json', './tsconfig.json'],
},
settings: {
node: {
tryExtensions: ['.ts'],
},
},
ignorePatterns: ['**/*.js'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': [0],
'@typescript-eslint/prefer-regexp-exec': [0],
'@typescript-eslint/ban-ts-comment': [0],
'@typescript-eslint/restrict-template-expressions': [0],
'@typescript-eslint/no-inferrable-types': [0],
'@typescript-eslint/no-unnecessary-type-assertion': [0],
// TODO: enable the `no-unsafe-*` rules
'@typescript-eslint/no-unsafe-argument': [0],
'@typescript-eslint/no-unsafe-assignment': [0],
'@typescript-eslint/no-unsafe-call': [0],
'@typescript-eslint/no-unsafe-return': [0],
'@typescript-eslint/no-unsafe-member-access': [0],
'@typescript-eslint/no-non-null-assertion': [0],
'node/prefer-global/buffer': ['error', 'never'],
'import/no-extraneous-dependencies': ['error'],
},
};