@4mbl/lint 0.0.0-alpha.f2a34bd → 0.0.0-alpha.f7400dd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/bin/cli.js +31 -3
- package/dist/base.d.ts +274 -208
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +147 -106
- package/dist/base.js.map +1 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +29 -34
- package/dist/next.js.map +1 -1
- package/dist/node.d.ts +274 -208
- package/dist/node.d.ts.map +1 -1
- package/dist/react.d.ts +288 -214
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +7 -4
- package/dist/react.js.map +1 -1
- package/package.json +4 -4
package/dist/base.js
CHANGED
|
@@ -21,113 +21,154 @@ function baseConfig(_options) {
|
|
|
21
21
|
typeAware: true,
|
|
22
22
|
},
|
|
23
23
|
rules: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'no-
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'no-
|
|
32
|
-
'no-
|
|
33
|
-
'no-
|
|
34
|
-
'no-
|
|
35
|
-
'no-
|
|
36
|
-
'no-
|
|
37
|
-
'no-
|
|
38
|
-
'no-
|
|
39
|
-
'no-
|
|
40
|
-
'no-
|
|
41
|
-
'no-
|
|
42
|
-
'no-
|
|
43
|
-
'no-
|
|
44
|
-
'no-empty
|
|
45
|
-
'no-empty-
|
|
46
|
-
'no-
|
|
47
|
-
'no-
|
|
48
|
-
'no-
|
|
49
|
-
'no-
|
|
50
|
-
'no-
|
|
51
|
-
'no-
|
|
52
|
-
'no-
|
|
53
|
-
'no-
|
|
54
|
-
'no-
|
|
55
|
-
'no-
|
|
56
|
-
'no-
|
|
57
|
-
'no-
|
|
58
|
-
'no-
|
|
59
|
-
'no-
|
|
60
|
-
'no-
|
|
61
|
-
'no-
|
|
62
|
-
'no-
|
|
63
|
-
'no-
|
|
64
|
-
'no-shadow-restricted-names': 'error',
|
|
65
|
-
'no-sparse-arrays': 'error',
|
|
66
|
-
'no-
|
|
67
|
-
'no-
|
|
68
|
-
'no-
|
|
69
|
-
'no-
|
|
70
|
-
'no-
|
|
71
|
-
'no-
|
|
72
|
-
'no-
|
|
73
|
-
'no-
|
|
74
|
-
'no-
|
|
75
|
-
'no-
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'no-
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'no-
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
'
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
24
|
+
//* ERRORS - base rules that are always mistakes
|
|
25
|
+
// most are enabled by default in oxlint
|
|
26
|
+
// but turned on here explicitly to guarantee future compatibility
|
|
27
|
+
'eslint/no-var': 'warn',
|
|
28
|
+
'eslint/prefer-const': 'error',
|
|
29
|
+
'eslint/prefer-rest-params': 'error',
|
|
30
|
+
'eslint/prefer-spread': 'error',
|
|
31
|
+
'eslint/no-async-promise-executor': 'error',
|
|
32
|
+
'eslint/no-case-declarations': 'error',
|
|
33
|
+
'eslint/no-class-assign': 'error',
|
|
34
|
+
'eslint/no-compare-neg-zero': 'error',
|
|
35
|
+
'eslint/no-cond-assign': 'error',
|
|
36
|
+
'eslint/no-const-assign': 'error',
|
|
37
|
+
'eslint/no-constant-binary-expression': 'error',
|
|
38
|
+
'eslint/no-constant-condition': 'error',
|
|
39
|
+
'eslint/no-control-regex': 'error',
|
|
40
|
+
'eslint/no-debugger': 'error',
|
|
41
|
+
'eslint/no-delete-var': 'error',
|
|
42
|
+
'eslint/no-dupe-else-if': 'error',
|
|
43
|
+
'eslint/no-duplicate-case': 'error',
|
|
44
|
+
'eslint/no-empty': 'error',
|
|
45
|
+
'eslint/no-empty-character-class': 'error',
|
|
46
|
+
'eslint/no-empty-pattern': 'error',
|
|
47
|
+
'eslint/no-empty-static-block': 'error',
|
|
48
|
+
'eslint/no-ex-assign': 'error',
|
|
49
|
+
'eslint/no-extra-boolean-cast': 'error',
|
|
50
|
+
'eslint/no-fallthrough': ['error', { allowEmptyCase: true }],
|
|
51
|
+
'eslint/no-func-assign': 'error',
|
|
52
|
+
'eslint/no-global-assign': 'error',
|
|
53
|
+
'eslint/no-import-assign': 'error',
|
|
54
|
+
'eslint/no-invalid-regexp': 'error',
|
|
55
|
+
'eslint/no-irregular-whitespace': 'error',
|
|
56
|
+
'eslint/no-loss-of-precision': 'error',
|
|
57
|
+
'eslint/no-misleading-character-class': 'error',
|
|
58
|
+
'eslint/no-nonoctal-decimal-escape': 'error',
|
|
59
|
+
'eslint/no-obj-calls': 'error',
|
|
60
|
+
'eslint/no-prototype-builtins': 'error',
|
|
61
|
+
'eslint/no-redeclare': 'error',
|
|
62
|
+
'eslint/no-regex-spaces': 'error',
|
|
63
|
+
'eslint/no-self-assign': 'error',
|
|
64
|
+
'eslint/no-shadow-restricted-names': 'error',
|
|
65
|
+
'eslint/no-sparse-arrays': 'error',
|
|
66
|
+
'eslint/no-unexpected-multiline': 'error',
|
|
67
|
+
'eslint/no-unsafe-finally': 'error',
|
|
68
|
+
'eslint/no-unsafe-negation': 'error',
|
|
69
|
+
'eslint/no-unsafe-optional-chaining': 'error',
|
|
70
|
+
'eslint/no-unused-labels': 'error',
|
|
71
|
+
'eslint/no-unused-private-class-members': 'error',
|
|
72
|
+
'eslint/no-unused-vars': 'warn',
|
|
73
|
+
'eslint/no-useless-backreference': 'error',
|
|
74
|
+
'eslint/no-useless-catch': 'error',
|
|
75
|
+
'eslint/no-useless-escape': 'error',
|
|
76
|
+
'eslint/require-yield': 'error',
|
|
77
|
+
'eslint/use-isnan': 'error',
|
|
78
|
+
'eslint/valid-typeof': 'error',
|
|
79
|
+
'eslint/no-unused-expressions': 'warn',
|
|
80
|
+
'typescript/ban-ts-comment': 'error',
|
|
81
|
+
'typescript/no-duplicate-enum-values': 'off', // enums are not recommended
|
|
82
|
+
'typescript/no-empty-object-type': 'error',
|
|
83
|
+
'typescript/no-explicit-any': 'error',
|
|
84
|
+
'typescript/no-extra-non-null-assertion': 'error',
|
|
85
|
+
'typescript/no-misused-new': 'error',
|
|
86
|
+
'typescript/no-namespace': 'error',
|
|
87
|
+
'typescript/no-non-null-asserted-optional-chain': 'error',
|
|
88
|
+
'typescript/no-require-imports': 'error',
|
|
89
|
+
'typescript/no-this-alias': 'error',
|
|
90
|
+
'typescript/no-unnecessary-type-constraint': 'error',
|
|
91
|
+
'typescript/no-unsafe-declaration-merging': 'error',
|
|
92
|
+
'typescript/no-unsafe-function-type': 'error',
|
|
93
|
+
'typescript/no-wrapper-object-types': 'error',
|
|
94
|
+
'typescript/prefer-as-const': 'error',
|
|
95
|
+
'typescript/triple-slash-reference': 'error',
|
|
96
|
+
//* OTHER RULES
|
|
97
|
+
// members are public by default so no need to be explicit
|
|
98
|
+
'typescript/explicit-member-accessibility': [
|
|
99
|
+
'warn',
|
|
100
|
+
{ accessibility: 'no-public' },
|
|
101
|
+
],
|
|
102
|
+
// too pedantic
|
|
103
|
+
'eslint/id-length': 'off',
|
|
104
|
+
'eslint/sort-keys': 'off',
|
|
105
|
+
'eslint/capitalized-comments': 'off',
|
|
106
|
+
'eslint/func-style': 'off',
|
|
107
|
+
'eslint/complexity': 'off',
|
|
108
|
+
'eslint/max-params': 'off',
|
|
109
|
+
'eslint/no-ternary': 'off',
|
|
110
|
+
'eslint/curly': 'warn',
|
|
111
|
+
'typescript/consistent-type-definitions': ['warn', 'type'],
|
|
112
|
+
'eslint/max-statements': 'off',
|
|
113
|
+
'typescript/consistent-return': 'off', // allow implicit return
|
|
114
|
+
'unicorn/switch-case-braces': 'warn',
|
|
115
|
+
'typescript/prefer-regexp-exec': 'warn',
|
|
116
|
+
'eslint/init-declarations': 'off',
|
|
117
|
+
'unicorn/no-null': 'off', // too strict, for example JSON.stringify requires null parameter, null is also required in react
|
|
118
|
+
'eslint/no-undefined': 'off', // undefined is necessary
|
|
119
|
+
'eslint/no-console': 'off', // browser is no longer the only environment js is run on
|
|
120
|
+
'eslint/no-continue': 'off', // early-continue is useful
|
|
121
|
+
'eslint/no-implicit-coercion': ['warn', { allow: ['!!'] }],
|
|
122
|
+
'eslint/no-plusplus': 'off', // makes for-loops too noisy, ASI is rarely a problem
|
|
123
|
+
'eslint/no-void': 'off', // void is useful for explicitly indicating floating promises
|
|
124
|
+
'eslint/no-nested-ternary': 'off', // ternaries are cleaner and necessary due to lack of match expressions
|
|
125
|
+
'eslint/no-empty-function': ['warn', { allow: ['constructors'] }], // empty constructors are allowed for explicit singleton pattern
|
|
126
|
+
'unicorn/no-instanceof-builtins': 'off', // better typesafety than using `typeof`
|
|
127
|
+
'unicorn/prefer-spread': 'off', // conflicts with other rules
|
|
128
|
+
'eslint/new-cap': 'off', // false positives
|
|
129
|
+
'unicorn/no-await-expression-member': 'off', // accessing await result directly is more desired than slight readability improvement
|
|
130
|
+
'eslint/no-duplicate-imports': [
|
|
131
|
+
'warn',
|
|
132
|
+
{ allowSeparateTypeImports: true },
|
|
133
|
+
],
|
|
134
|
+
'import/no-named-export': 'off',
|
|
135
|
+
'import/no-default-export': 'off',
|
|
136
|
+
'import/prefer-default-export': 'off',
|
|
137
|
+
'import/no-namespace': 'off', // star imports are still pretty necessary
|
|
138
|
+
'import/exports-last': 'off', // star imports are still pretty necessary
|
|
139
|
+
'import/no-unassigned-import': 'off', // required for css imports
|
|
140
|
+
// Array.from() is slower than new Array()
|
|
141
|
+
// https://jsperf.app/tatuse
|
|
142
|
+
'unicorn/no-new-array': 'off',
|
|
143
|
+
'eslint/no-array-constructor': 'warn',
|
|
144
|
+
// consider enabling in library-focused template
|
|
145
|
+
'typescript/explicit-function-return-type': 'off',
|
|
146
|
+
'typescript/explicit-module-boundary-types': 'off',
|
|
147
|
+
// may revisit
|
|
148
|
+
'unicorn/no-anonymous-default-export': 'off',
|
|
149
|
+
'eslint/sort-imports': 'off', // consider when oxfmt is setup
|
|
150
|
+
// currently produces too many false positives
|
|
151
|
+
'eslint/no-magic-numbers': 'off',
|
|
152
|
+
'unicorn/prefer-modern-math-apis': 'off',
|
|
153
|
+
'eslint/no-use-before-define': 'off',
|
|
154
|
+
// handled by typescript compiler
|
|
155
|
+
'eslint/constructor-super': 'off',
|
|
156
|
+
'eslint/getter-return': 'off',
|
|
157
|
+
'eslint/no-dupe-class-members': 'off',
|
|
158
|
+
'eslint/no-dupe-keys': 'off',
|
|
159
|
+
'eslint/no-new-native-nonconstructor': 'off',
|
|
160
|
+
'eslint/no-setter-return': 'off',
|
|
161
|
+
'eslint/no-this-before-super': 'off',
|
|
162
|
+
'eslint/no-undef': 'off',
|
|
163
|
+
'eslint/no-unreachable': 'off', // typescript handles this if `allowUnreachableCode: false` is configured
|
|
164
|
+
'eslint/no-with': 'off',
|
|
165
|
+
// conflicts with prettier
|
|
166
|
+
'unicorn/no-nested-ternary': 'off',
|
|
167
|
+
// disabled rules that exist for legacy environments
|
|
168
|
+
'oxc/no-optional-chaining': 'off',
|
|
169
|
+
'oxc/no-rest-spread-properties': 'off',
|
|
170
|
+
'oxc/no-async-await': 'off',
|
|
102
171
|
},
|
|
103
|
-
overrides: [
|
|
104
|
-
{
|
|
105
|
-
files: ['**/*.{ts,tsx,mts,cts}'],
|
|
106
|
-
rules: {
|
|
107
|
-
'constructor-super': 'off',
|
|
108
|
-
'getter-return': 'off',
|
|
109
|
-
'no-class-assign': 'off',
|
|
110
|
-
'no-const-assign': 'off',
|
|
111
|
-
'no-dupe-class-members': 'off',
|
|
112
|
-
'no-dupe-keys': 'off',
|
|
113
|
-
'no-func-assign': 'off',
|
|
114
|
-
'no-import-assign': 'off',
|
|
115
|
-
'no-new-native-nonconstructor': 'off',
|
|
116
|
-
'no-obj-calls': 'off',
|
|
117
|
-
'no-redeclare': 'off',
|
|
118
|
-
'no-setter-return': 'off',
|
|
119
|
-
'no-this-before-super': 'off',
|
|
120
|
-
'no-undef': 'off',
|
|
121
|
-
'no-unreachable': 'off',
|
|
122
|
-
'no-unsafe-negation': 'off',
|
|
123
|
-
'no-var': 'error',
|
|
124
|
-
'no-with': 'off',
|
|
125
|
-
'prefer-const': 'error',
|
|
126
|
-
'prefer-rest-params': 'error',
|
|
127
|
-
'prefer-spread': 'error',
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
172
|
});
|
|
132
173
|
}
|
|
133
174
|
export { defineConfig, baseConfig };
|
package/dist/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAIzD,2CAA2C;AAE3C,SAAS,UAAU,CAAC,QAA+B;IACjD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;QAClC,SAAS,EAAE,EAAE;QACb,UAAU,EAAE;YACV,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,MAAM;YACnB,OAAO,EAAE,KAAK;SACf;QACD,GAAG,EAAE;YACH,OAAO,EAAE,IAAI;SACd;QACD,OAAO,EAAE;YACP,SAAS,EAAE,IAAI;SAChB;QACD,KAAK,EAAE;YACL,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAIzD,2CAA2C;AAE3C,SAAS,UAAU,CAAC,QA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e,MAAM,YAAY,CAAC;AAG5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAG5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,gBAwDjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;AAEvD,wBAA4B"}
|
package/dist/next.js
CHANGED
|
@@ -10,42 +10,37 @@ function nextConfig(options) {
|
|
|
10
10
|
extends: [reactConfig(options)],
|
|
11
11
|
plugins: ['nextjs'],
|
|
12
12
|
rules: {
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
},
|
|
34
|
-
ignorePatterns: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
|
|
35
|
-
overrides: [
|
|
13
|
+
'nextjs/google-font-display': 'warn',
|
|
14
|
+
'nextjs/google-font-preconnect': 'warn',
|
|
15
|
+
'nextjs/next-script-for-ga': 'warn',
|
|
16
|
+
'nextjs/no-async-client-component': 'warn',
|
|
17
|
+
'nextjs/no-before-interactive-script-outside-document': 'warn',
|
|
18
|
+
'nextjs/no-css-tags': 'warn',
|
|
19
|
+
'nextjs/no-head-element': 'warn',
|
|
20
|
+
'nextjs/no-html-link-for-pages': 'error',
|
|
21
|
+
'nextjs/no-page-custom-font': 'warn',
|
|
22
|
+
'nextjs/no-styled-jsx-in-document': 'warn',
|
|
23
|
+
'nextjs/no-sync-scripts': 'error',
|
|
24
|
+
'nextjs/no-title-in-document-head': 'warn',
|
|
25
|
+
'nextjs/no-typos': 'warn',
|
|
26
|
+
'nextjs/no-unwanted-polyfillio': 'warn',
|
|
27
|
+
'nextjs/inline-script-id': 'error',
|
|
28
|
+
'nextjs/no-assign-module-variable': 'error',
|
|
29
|
+
'nextjs/no-document-import-in-page': 'error',
|
|
30
|
+
'nextjs/no-duplicate-head': 'error',
|
|
31
|
+
'nextjs/no-head-import-in-document': 'error',
|
|
32
|
+
'nextjs/no-script-component-in-head': 'error',
|
|
36
33
|
// ignores warnings for special exports in page and layout files
|
|
37
34
|
// https://github.com/ArnaudBarre/eslint-plugin-react-refresh?tab=readme-ov-file#next-config
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
'react-refresh
|
|
42
|
-
'error',
|
|
43
|
-
{
|
|
44
|
-
allowExportNames: reactRefresh.configs.next.rules['react-refresh/only-export-components'][1]['allowExportNames'],
|
|
45
|
-
},
|
|
46
|
-
],
|
|
35
|
+
'react/only-export-components': [
|
|
36
|
+
'warn',
|
|
37
|
+
{
|
|
38
|
+
allowExportNames: reactRefresh.configs.next.rules['react-refresh/only-export-components'][1]['allowExportNames'],
|
|
47
39
|
},
|
|
48
|
-
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
ignorePatterns: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
|
|
43
|
+
overrides: [
|
|
49
44
|
opts.uiPath === null
|
|
50
45
|
? { files: [], rules: {} }
|
|
51
46
|
: {
|
|
@@ -53,7 +48,7 @@ function nextConfig(options) {
|
|
|
53
48
|
`${path.resolve(process.cwd(), opts.uiPath)}/**/*.{js,jsx,mjs,ts,tsx,mts,cts}`.replaceAll('//', '/'),
|
|
54
49
|
],
|
|
55
50
|
rules: {
|
|
56
|
-
'react
|
|
51
|
+
'react/only-export-components': 'off',
|
|
57
52
|
},
|
|
58
53
|
},
|
|
59
54
|
],
|
package/dist/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAcvD,MAAM,eAAe,GAAgB,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC;AAEtE,SAAS,UAAU,CAAC,OAA8B;IAChD,MAAM,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IAEhD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,KAAK,EAAE;YACL,
|
|
1
|
+
{"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,YAAY,MAAM,6BAA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