1
1
module . exports = {
2
- " env" : {
3
- " browser" : true ,
4
- "es2021" : true ,
5
- " node" : true
2
+ env : {
3
+ browser : true ,
4
+ es6 : true ,
5
+ node : true
6
6
} ,
7
- "extends" : [
8
- "eslint:recommended" ,
9
- "plugin:@typescript-eslint/recommended"
10
- ] ,
11
- "overrides" : [
12
- {
13
- "env" : {
14
- "node" : true
15
- } ,
16
- "files" : [
17
- ".eslintrc.{js,cjs}"
18
- ] ,
19
- "parserOptions" : {
20
- "sourceType" : "script"
21
- }
22
- }
23
- ] ,
24
- "parser" : "@typescript-eslint/parser" ,
25
- "parserOptions" : {
26
- "ecmaVersion" : "latest" ,
27
- "sourceType" : "module"
7
+ extends : [ '@microsoft/eslint-config-msgraph' ] ,
8
+ parser : '@typescript-eslint/parser' ,
9
+ parserOptions : {
10
+ project : [
11
+ 'packages/abstractions/tsconfig.json' ,
12
+ 'packages/authentication/azure/tsconfig.json' ,
13
+ 'packages/authentication/azure/tsconfig.json' ,
14
+ 'packages/http/fetch/tsconfig.json' ,
15
+ 'packages/serialization/form/tsconfig.json' ,
16
+ 'packages/serialization/json/tsconfig.json' ,
17
+ 'packages/serialization/multipart/tsconfig.json' ,
18
+ 'packages/authentication/azure/tsconfig.json' ,
19
+ 'packages/test/tsconfig.json'
20
+ ] ,
21
+ sourceType : 'module'
28
22
} ,
29
- "plugins" : [
30
- "@typescript-eslint"
31
- ] ,
32
- "rules" : {
33
- "@typescript-eslint/consistent-type-imports" : "error"
23
+ plugins : [ 'eslint-plugin-jsdoc' , 'eslint-plugin-prefer-arrow' , 'eslint-plugin-react' , '@typescript-eslint' , 'header' ] ,
24
+ root : true ,
25
+ ignorePatterns : [ '.eslintrc.js' , '*.mjs' ] ,
26
+ rules : {
27
+ '@typescript-eslint/no-explicit-any' : 'warn' ,
28
+ // prefer-nullish-coalescing requires strictNullChecking to be turned on
29
+ '@typescript-eslint/prefer-nullish-coalescing' : 'off' ,
30
+ 'header/header' : [
31
+ 2 ,
32
+ 'block' ,
33
+ [
34
+ '*' ,
35
+ ' * -------------------------------------------------------------------------------------------' ,
36
+ ' * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.' ,
37
+ ' * See License in the project root for license information.' ,
38
+ ' * -------------------------------------------------------------------------------------------' ,
39
+ ' '
40
+ ] ,
41
+ 1
42
+ ]
34
43
}
35
- }
44
+ } ;
0 commit comments