Skip to content

Commit

Permalink
chore: Upgrade dependencies (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Feb 20, 2025
1 parent 4e3536e commit d76dee5
Show file tree
Hide file tree
Showing 8 changed files with 1,732 additions and 1,915 deletions.
38 changes: 0 additions & 38 deletions .eslintrc

This file was deleted.

6 changes: 1 addition & 5 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"



# Section for git-secrets

if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
Expand All @@ -16,4 +12,4 @@ git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Scans the commit message.
git-secrets --commit_msg_hook -- "$@"
git-secrets --commit_msg_hook -- "$@"
6 changes: 1 addition & 5 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged



# Section for git-secrets

if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
Expand All @@ -18,4 +14,4 @@ git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Scans all files that are about to be committed.
git-secrets --pre_commit_hook -- "$@"
git-secrets --pre_commit_hook -- "$@"
6 changes: 1 addition & 5 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"



# Section for git-secrets

if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
Expand All @@ -16,4 +12,4 @@ git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Determines if merging in a commit will introduce tainted history.
git-secrets --prepare_commit_msg_hook -- "$@"
git-secrets --prepare_commit_msg_hook -- "$@"
47 changes: 47 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import path from 'node:path';
import eslint from '@eslint/js';
import { includeIgnoreFile } from '@eslint/compat';
import tseslint from 'typescript-eslint';
import eslintPrettier from 'eslint-plugin-prettier/recommended';
import unicornPlugin from 'eslint-plugin-unicorn';
import headerPlugin from 'eslint-plugin-header';

// https://github.com/Stuk/eslint-plugin-header/issues/57
headerPlugin.rules.header.meta.schema = false;

export default tseslint.config(
includeIgnoreFile(path.resolve('.gitignore')),
eslint.configs.recommended,
tseslint.configs.recommended,
eslintPrettier,
{
files: ['**/*.{js,mjs,ts}'],
languageOptions: {
globals: {
console: true,
},
},
plugins: {
unicorn: unicornPlugin,
header: headerPlugin,
},
rules: {
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'unicorn/filename-case': 'error',
curly: 'error',
eqeqeq: 'error',
'no-return-await': 'error',
'require-await': 'error',
'header/header': [
'error',
'line',
[' Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.', ' SPDX-License-Identifier: Apache-2.0'],
],
},
},
);
Loading

0 comments on commit d76dee5

Please sign in to comment.