Skip to content

Commit

Permalink
Apply new lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
joon9823 committed Jul 5, 2024
1 parent 89e45e1 commit 298b0bd
Show file tree
Hide file tree
Showing 499 changed files with 15,367 additions and 13,964 deletions.
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

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

npx --no-install lint-staged
npx lint-staged
310 changes: 109 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions LICENSE.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SPDX-License-Identifier: BUSL-1.1

Copyright (C) 2023, Initia Foundation. All rights reserved.
Use of this software is govered by the Business Source License included
in the LICENSE file of this repository and at www.mariadb.com/bsl11.

ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY
TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER
VERSIONS OF THE LICENSED WORK.

THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF
LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF
LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/require-await': 'off',
}
},
{
files: ['**/*.js'],
...tseslint.configs.disableTypeChecked,
},
eslintPluginPrettierRecommended,
{
ignores: ['dist/**/*', 'integration-tests/**/*', '**/*.config.js', '**/*.config.mjs', '**/*.spec.ts'],
},
)
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('jest').Config} */
const config = {
verbose: true,
}

export default config
Loading

0 comments on commit 298b0bd

Please sign in to comment.