Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ updates:
- patch
ignore:
- dependency-name: 'eslint'
- dependency-name: '@typescript-eslint/eslint-plugin'
- dependency-name: '@typescript-eslint/parser'
34 changes: 28 additions & 6 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ extends:
- plugin:github/recommended
- plugin:jest/recommended

rules:
{
rules: {
'camelcase': 'off',
'eslint-comments/no-use': 'off',
'eslint-comments/no-unused-disable': 'off',
Expand All @@ -45,7 +44,7 @@ rules:
'no-console': 'off',
'no-unused-vars': 'off',
'prettier/prettier': 'error',
'semi': 'off',
'semi': ['error', 'never'],
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/ban-ts-comment': 'error',
Expand All @@ -54,7 +53,8 @@ rules:
['error', { 'accessibility': 'no-public' }],
'@typescript-eslint/explicit-function-return-type':
['error', { 'allowExpressions': true }],
'@typescript-eslint/func-call-spacing': ['error', 'never'],
# Use ESLint's built-in rules for formatting instead of deprecated TS-ESLint rules
'func-call-spacing': ['error', 'never'],
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
Expand All @@ -77,8 +77,30 @@ rules:
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': 'error'
}

overrides:
- files: ['**/*.js']
parser: 'espree'
parserOptions:
ecmaVersion: 2023
sourceType: 'module'
# Clear TypeScript project references for JavaScript files
project: null
rules:
# Disable TypeScript-specific rules for JavaScript files
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/explicit-member-accessibility': 'off'
'@typescript-eslint/await-thenable': 'off'
'@typescript-eslint/no-for-in-array': 'off'
'@typescript-eslint/no-unnecessary-qualifier': 'off'
'@typescript-eslint/no-unnecessary-type-assertion': 'off'
'@typescript-eslint/prefer-includes': 'off'
'@typescript-eslint/prefer-string-starts-ends-with': 'off'
'@typescript-eslint/promise-function-async': 'off'
'@typescript-eslint/require-array-sort-compare': 'off'
'@typescript-eslint/restrict-plus-operands': 'off'
'@typescript-eslint/unbound-method': 'off'
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

Loading