@@ -8,29 +8,36 @@ module.exports = {
8
8
} ,
9
9
rules : {
10
10
'arrow-body-style' : 'off' ,
11
- 'no-param-reassign' : [ 'error' , { props : false } ] ,
12
- 'no-underscore-dangle' : 'off' ,
13
- 'no-magic-numbers' : 'off' ,
14
- 'n/prefer-global/process' : 'off' ,
15
- 'unicorn/numeric-separators-style' : 'off' ,
16
- 'unicorn/filename-case' : [ 'error' , { case : 'kebabCase' } ] ,
17
- 'import/no-extraneous-dependencies' : 'off' ,
18
- 'import/no-namespace' : 'off' ,
11
+ 'class-methods-use-this' : 'off' ,
12
+ complexity : 'off' ,
13
+ 'func-style' : 'off' ,
19
14
'import/extensions' : 'off' ,
15
+ 'line-comment-position' : 'off' ,
20
16
'max-depth' : 'off' ,
21
- 'func-style' : 'off' ,
22
- 'class-methods-use-this' : 'off' ,
23
- 'promise/prefer-await-to-then' : 'off' ,
24
- 'promise/prefer-await-to-callbacks' : 'off' ,
25
- 'promise/catch-or-return' : 'off' ,
26
- 'promise/always-return' : 'off' ,
17
+ 'max-lines' : 'off' ,
18
+ 'max-lines-per-function' : 'off' ,
27
19
'max-nested-callbacks' : 'off' ,
28
20
'max-statements' : 'off' ,
29
- 'require-await ' : 'off' ,
21
+ 'n/prefer-global/process ' : 'off' ,
30
22
'no-inline-comments' : 'off' ,
31
- 'line-comment-position' : 'off' ,
32
- complexity : 'off' ,
33
- 'max-lines' : 'off' ,
23
+ 'no-magic-numbers' : 'off' ,
24
+ 'no-param-reassign' : [ 'error' , { props : false } ] ,
25
+ 'no-underscore-dangle' : 'off' ,
26
+ 'promise/always-return' : 'off' ,
27
+ 'promise/catch-or-return' : 'off' ,
28
+ 'promise/prefer-await-to-callbacks' : 'off' ,
29
+ 'promise/prefer-await-to-then' : 'off' ,
30
+ 'require-await' : 'off' ,
31
+ 'sort-imports' : [
32
+ 'error' ,
33
+ {
34
+ allowSeparatedGroups : true ,
35
+ ignoreCase : true ,
36
+ ignoreDeclarationSort : true ,
37
+ } ,
38
+ ] ,
39
+ 'unicorn/filename-case' : [ 'error' , { case : 'kebabCase' } ] ,
40
+ 'unicorn/numeric-separators-style' : 'off' ,
34
41
} ,
35
42
overrides : [
36
43
...overrides ,
@@ -46,55 +53,23 @@ module.exports = {
46
53
'@typescript-eslint/no-floating-promises' : 'error' ,
47
54
} ,
48
55
} ,
49
- {
50
- files : [ 'src/run/**' ] ,
51
- rules : {
52
- 'no-restricted-imports' : [
53
- 'error' ,
54
- {
55
- paths : [
56
- {
57
- name : '@opentelemetry/api' ,
58
- importNames : [ 'trace' ] ,
59
- message : 'Please use `getTracer()` from `./handlers/tracer.cjs` instead' ,
60
- } ,
61
- ] ,
62
- } ,
63
- ] ,
64
- } ,
65
- } ,
66
56
{
67
57
files : [ 'src/run/handlers/**' ] ,
68
58
rules : {
69
- 'max-statements' : [ 'error' , 30 ] ,
70
59
'import/no-anonymous-default-export' : 'off' ,
71
60
} ,
72
61
} ,
73
62
{
74
- files : [ 'src/**/*.test.*' ] ,
75
- rules : {
76
- 'max-statements' : 'off' ,
77
- 'max-lines-per-function' : 'off' ,
78
- } ,
79
- } ,
80
- {
81
- files : [ 'src/build/**/*.ts' ] ,
63
+ files : [ 'src/run/**' ] ,
82
64
rules : {
83
65
'no-restricted-imports' : [
84
66
'error' ,
85
67
{
86
68
paths : [
87
69
{
88
- name : 'path' ,
89
- importNames : [ 'resolve' ] ,
90
- message :
91
- 'Please use `PluginContext.resolve` instead to comply with our monorepo support' ,
92
- } ,
93
- {
94
- name : 'node:path' ,
95
- importNames : [ 'resolve' ] ,
96
- message :
97
- 'Please use `PluginContext.resolve` instead to comply with our monorepo support' ,
70
+ name : '@opentelemetry/api' ,
71
+ importNames : [ 'trace' ] ,
72
+ message : 'Please use `getTracer()` from `./handlers/tracer.cjs` instead' ,
98
73
} ,
99
74
] ,
100
75
} ,
@@ -104,10 +79,10 @@ module.exports = {
104
79
{
105
80
files : [ 'src/build/templates/**/*' ] ,
106
81
rules : {
107
- 'n/no-missing-import' : 'off' ,
108
- 'import/no-unresolved' : 'off' ,
109
- 'import/no-anonymous-default-export' : 'off' ,
110
82
'func-names' : 'off' ,
83
+ 'import/no-anonymous-default-export' : 'off' ,
84
+ 'import/no-unresolved' : 'off' ,
85
+ 'n/no-missing-import' : 'off' ,
111
86
} ,
112
87
} ,
113
88
] ,
0 commit comments