-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
35 lines (33 loc) · 1.04 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
module.exports = {
root: true,
reportUnusedDisableDirectives: true,
env: {
es6: true,
},
overrides: [
{
files: ['*.ts', '*.tsx'], // Your TypeScript files extension
// As mentioned in the comments, you should extend TypeScript plugins here,
// instead of extending them outside the `overrides`.
// If you don't want to extend any rules, you don't need an `extends` attribute.
plugins: ['jest'],
extends: ['@stacks/eslint-config'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': [0],
'@typescript-eslint/no-unsafe-assignment': [0],
'@typescript-eslint/consistent-type-imports': [1],
'@typescript-eslint/strict-boolean-expressions': [
2,
{
allowNullableString: true,
allowNullableBoolean: true,
},
],
'@typescript-eslint/no-unnecessary-type-assertion': [0],
},
parserOptions: {
project: ['./tsconfig.json'], // Specify it only for TypeScript files
},
},
],
};