@@ -8,29 +8,36 @@ module.exports = {
88 } ,
99 rules : {
1010 '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' ,
1914 'import/extensions' : 'off' ,
15+ 'line-comment-position' : 'off' ,
2016 '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' ,
2719 'max-nested-callbacks' : 'off' ,
2820 'max-statements' : 'off' ,
29- 'require-await ' : 'off' ,
21+ 'n/prefer-global/process ' : 'off' ,
3022 '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' ,
3441 } ,
3542 overrides : [
3643 ...overrides ,
@@ -46,55 +53,23 @@ module.exports = {
4653 '@typescript-eslint/no-floating-promises' : 'error' ,
4754 } ,
4855 } ,
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- } ,
6656 {
6757 files : [ 'src/run/handlers/**' ] ,
6858 rules : {
69- 'max-statements' : [ 'error' , 30 ] ,
7059 'import/no-anonymous-default-export' : 'off' ,
7160 } ,
7261 } ,
7362 {
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/**' ] ,
8264 rules : {
8365 'no-restricted-imports' : [
8466 'error' ,
8567 {
8668 paths : [
8769 {
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' ,
9873 } ,
9974 ] ,
10075 } ,
@@ -104,10 +79,10 @@ module.exports = {
10479 {
10580 files : [ 'src/build/templates/**/*' ] ,
10681 rules : {
107- 'n/no-missing-import' : 'off' ,
108- 'import/no-unresolved' : 'off' ,
109- 'import/no-anonymous-default-export' : 'off' ,
11082 'func-names' : 'off' ,
83+ 'import/no-anonymous-default-export' : 'off' ,
84+ 'import/no-unresolved' : 'off' ,
85+ 'n/no-missing-import' : 'off' ,
11186 } ,
11287 } ,
11388 ] ,
0 commit comments