forked from microsoftgraph/microsoft-graph-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: ['@microsoft/eslint-config-msgraph'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: [
'packages/mgt/tsconfig.json',
'packages/mgt-element/tsconfig.json',
'packages/mgt-components/tsconfig.json',
'packages/mgt-react/tsconfig.json',
'packages/mgt-spfx/tsconfig.json',
'packages/mgt-spfx-utils/tsconfig.json',
'packages/providers/mgt-electron-provider/tsconfig.authenticator.json',
'packages/providers/mgt-electron-provider/tsconfig.provider.json',
'packages/providers/mgt-mock-provider/tsconfig.json',
'packages/providers/mgt-msal2-provider/tsconfig.json',
'packages/providers/mgt-proxy-provider/tsconfig.json',
'packages/providers/mgt-sharepoint-provider/tsconfig.json',
'packages/providers/mgt-teamsfx-provider/tsconfig.json'
],
sourceType: 'module'
},
plugins: ['eslint-plugin-jsdoc', 'eslint-plugin-prefer-arrow', 'eslint-plugin-react', '@typescript-eslint'],
root: true,
ignorePatterns: ['**/**-css.ts', '.eslintrc.js', '*.cjs'],
rules: {
'@typescript-eslint/prefer-optional-chain': 'warn',
'newline-per-chained-call': 'off'
}
};