Skip to content

Commit 8f3acef

Browse files
committed
Merge branch 'main' into use-semantic-release
2 parents 429c806 + e21422e commit 8f3acef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6464
-9800
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

eslint.config.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Copyright 2025 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
import globals from 'globals';
13+
import { defineConfig, globalIgnores } from '@eslint/config-helpers'
14+
import { recommended, source, test } from '@adobe/eslint-config-helix';
15+
16+
export default defineConfig([
17+
globalIgnores([
18+
'coverage',
19+
'dist/*',
20+
]),
21+
{
22+
languageOptions: {
23+
...recommended.languageOptions,
24+
globals: {
25+
...globals.serviceworker,
26+
...globals.browser,
27+
...globals.es6,
28+
__rootdir: true,
29+
},
30+
},
31+
rules: {
32+
// 'import/extensions': [2, 'ignorePackages'],
33+
'import/prefer-default-export': 0,
34+
35+
// console.log is the only means of logging in a cloudflare worker
36+
'no-console': 'off',
37+
38+
// We have quite a lot of use cases where assignment to function
39+
// parameters is definitely desirable
40+
'no-param-reassign': 'off',
41+
42+
// Allow while (true) infinite loops
43+
// 'no-constant-condition': ['error', { checkLoops: false }],
44+
45+
// Quite useful to mark values as unused
46+
// 'no-underscore-dangle': 'off', },
47+
},
48+
plugins: {
49+
import: recommended.plugins.import,
50+
},
51+
extends: [recommended],
52+
},
53+
source,
54+
test,
55+
]);

0 commit comments

Comments
 (0)