Skip to content

Commit f54db28

Browse files
committed
chore: Upgrade eslint
1 parent 010328c commit f54db28

File tree

117 files changed

+12706
-8523
lines changed

Some content is hidden

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

117 files changed

+12706
-8523
lines changed

.eslintrc.js

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

.github/workflows/bundle-size/build.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
import { build } from 'esbuild';
2-
import { gzip } from 'node:zlib';
3-
import { promisify } from 'node:util';
4-
import { unlinkSync, readFileSync, writeFileSync } from 'node:fs';
4+
import { readFileSync, unlinkSync, writeFileSync } from 'node:fs';
55
import path from 'node:path';
6+
import { promisify } from 'node:util';
7+
import { gzip } from 'node:zlib';
68

79
const compress = promisify(gzip);
810

911
function concatFiles(files) {
10-
return files.reduce((total, current) => total + current.text ?? '', '');
12+
return files.reduce((total, current) => total + (current.text ?? ''), '');
1113
}
1214

1315
function getInstalledVersions(projectRoot) {
@@ -21,7 +23,9 @@ function getInstalledVersions(projectRoot) {
2123
async function main() {
2224
try {
2325
unlinkSync('output.json');
24-
} catch (e) {}
26+
} catch {
27+
// no-op
28+
}
2529

2630
const result = await build({
2731
entryPoints: ['main.js'],

.github/workflows/bundle-size/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
export * from '../components/lib/components';

.github/workflows/bundle-size/status-report.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
import { readFileSync } from 'node:fs';
24

35
function readJson(filename) {

build-tools/integ/setup.integ.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3+
/* global jest */
34
const { configure } = require('@cloudscape-design/browser-test-tools/use-browser');
45

56
configure({

build-tools/integ/setup.motion.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3+
/* globals jest */
34
const { configure } = require('@cloudscape-design/browser-test-tools/use-browser');
45

56
configure({

build-tools/jest/setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3+
/* globals afterEach */
34

45
// we load this file in both SSR and DOM environment, but these utilities are only needed in DOM
56
if (typeof window !== 'undefined') {

0 commit comments

Comments
 (0)