Skip to content

Commit

Permalink
Merge pull request #65 from initia-labs/feat/apply-lint
Browse files Browse the repository at this point in the history
Apply new lint rule
  • Loading branch information
Vritra4 authored Jul 30, 2024
2 parents d07fca6 + 082899f commit 2bd9c17
Show file tree
Hide file tree
Showing 496 changed files with 15,201 additions and 13,725 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
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 2bd9c17

Please sign in to comment.