mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
/* eslint-env node */
|
|
|
|
module.exports = {
|
|
reportUnusedDisableDirectives: true,
|
|
ignorePatterns: [
|
|
'scripts',
|
|
'out',
|
|
'public',
|
|
'packages/web/app/src/graphql/index.ts',
|
|
'packages/libraries/cli/src/sdk.ts',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
|
|
],
|
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
|
|
'import/no-absolute-path': 'error',
|
|
'import/no-self-import': 'error',
|
|
'import/no-extraneous-dependencies': [
|
|
'error',
|
|
{
|
|
devDependencies: ['packages/services/storage/tools/*.js'],
|
|
optionalDependencies: false,
|
|
},
|
|
],
|
|
'no-restricted-imports': ['error', { patterns: ['packages/*'] }],
|
|
|
|
// 🚨 The following rules needs to be fixed and was temporarily disabled to avoid printing warning
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/ban-types': 'off',
|
|
'@typescript-eslint/triple-slash-reference': 'off',
|
|
},
|
|
};
|