This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.53 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
// https://github.com/typescript-eslint/typescript-eslint/blob/2ccd66b920816d54cc1a639059f60410df665900/docs/getting-started/linting/README.md
// https://github.com/typescript-eslint/typescript-eslint/blob/2ccd66b920816d54cc1a639059f60410df665900/docs/getting-started/linting/MONOREPO.md
module.exports = {
root: true,
parser: require.resolve('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: [
'./tsconfig.json',
'./apps/*/tsconfig.json',
'./apps/*/tsconfig.*.json',
'./libs/*/tsconfig.json',
'./libs/*/tsconfig.*.json'
]
},
plugins: ['@typescript-eslint', '@nrwl/nx'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
require.resolve('eslint-config-prettier'),
require.resolve('eslint-config-prettier/@typescript-eslint')
],
rules: {
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@nrwl/nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: [],
depConstraints: [{ sourceTag: '*', onlyDependOnLibsWithTags: ['*'] }]
}
]
},
overrides: [
{
files: ['jest.config.js'],
env: {
node: true
},
rules: {
'@typescript-eslint/no-var-requires': 'off'
}
}
]
};