Skip to content

Commit 932181f

Browse files
committed
chore: remove examples directory (aws#36)
* chore: remove examples directory Remove all example files and update package.json scripts to exclude examples from linting and formatting. * chore: enable linting for test directories and fix all lint errors - Remove __tests__ from ESLint ignores to enable linting on test files - Add tests_integ to lint and format scripts in package.json - Exclude test files from main src ESLint config to avoid tsconfig errors - Add missing globals for test files (setTimeout, Buffer, URL) - Fix all unused parameter errors by prefixing with underscore - Fix empty catch blocks with ignore comments - Remove unused imports
1 parent 8311163 commit 932181f

Some content is hidden

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

43 files changed

+564
-7366
lines changed

eslint.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import tsdoc from 'eslint-plugin-tsdoc'
55

66
export default [
77
{
8-
ignores: ['**/.next/**', '**/node_modules/**', '**/dist/**', '**/__tests__/**', '**/next-env.d.ts'],
8+
ignores: ['**/.next/**', '**/node_modules/**', '**/dist/**', '**/next-env.d.ts'],
99
},
1010
eslint.configs.recommended,
1111
{
1212
files: ['src/**/*.ts'],
13+
ignores: ['src/**/__tests__/**'],
1314
languageOptions: {
1415
parser: tsparser,
1516
parserOptions: {
@@ -38,7 +39,7 @@ export default [
3839
},
3940
},
4041
{
41-
files: ['src/**/__tests__/**/*.ts', 'examples/**/*.ts'],
42+
files: ['src/**/__tests__/**/*.ts', 'tests_integ/**/*.ts'],
4243
languageOptions: {
4344
parser: tsparser,
4445
parserOptions: {
@@ -49,6 +50,9 @@ export default [
4950
process: 'readonly',
5051
console: 'readonly',
5152
fetch: 'readonly',
53+
setTimeout: 'readonly',
54+
Buffer: 'readonly',
55+
URL: 'readonly',
5256
},
5357
},
5458
plugins: {

examples/README.md

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

0 commit comments

Comments
 (0)