Skip to content

Commit

Permalink
ignore eslint config file
Browse files Browse the repository at this point in the history
tweak eslint config
  • Loading branch information
karannakra committed Jun 25, 2023
1 parent a0681dc commit 54a56e4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
dist
.vscode
.vercel
.eslintrc.cjs
src/db/migrations
src/env.d.ts
44 changes: 36 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,48 @@ module.exports = {
],
overrides: [
{
extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
rules: {
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'deprecation/deprecation': 'off',
},
},
{
files: ['*.ts', '*.tsx'],
extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
rules: {
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/require-await': 'off',
},
},
{
files: ['*.json', '*.jsonc'],
excludedFiles: ['package.json'],
parser: 'jsonc-eslint-parser',
extends: ['plugin:jsonc/recommended-with-json'],
},
{
extends: ['plugin:markdown/recommended'],
files: ['**/*.md', '**/*.md/*.{js,jsx,ts,tsx}'],
Expand Down Expand Up @@ -45,13 +76,8 @@ module.exports = {
'simple-import-sort/exports': 'error',
'deprecation/deprecation': 'error',

'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/padding-line-between-statements': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
Expand All @@ -61,7 +87,9 @@ module.exports = {

// Stylistic concerns that don't interfere with Prettier
'no-mixed-spaces-and-tabs': 'off',
'jsx-a11y/no-autofocus': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'padding-line-between-statements': 'off',
'@typescript-eslint/padding-line-between-statements': 'off',
'typescript-sort-keys/interface': 'off',
},
};

0 comments on commit 54a56e4

Please sign in to comment.