https://github.com/Rebilly/ReDoc
Raw File
Tip revision: 3f3f9551ee36f8743a65d774f5212a34dea1affc authored by Lorna Jane Mitchell on 02 April 2024, 15:16:44 UTC
docs: Update API examples list to include Museum API (#2506)
Tip revision: 3f3f955
.eslintrc.js
module.exports = {
  env: {
    browser: true,
  },
  parser: '@typescript-eslint/parser',
  extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
    createDefaultProgram: true,
    ecmaFeatures: {
      jsx: true,
    },
  },
  settings: {
    react: {
      version: 'detect',
    },
  },
  plugins: ['react', 'react-hooks', '@typescript-eslint', 'import'],
  rules: {
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-module-boundary-types': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
    '@typescript-eslint/no-use-before-define': 'off',
    '@typescript-eslint/interface-name-prefix': 'off',
    '@typescript-eslint/no-inferrable-types': 'off',
    '@typescript-eslint/no-non-null-assertion': 'off',
    '@typescript-eslint/ban-ts-ignore': 'off',
    '@typescript-eslint/ban-types': ['error', { types: { object: false }, extendDefaults: true }],
    '@typescript-eslint/no-var-requires': 'off',

    'react/prop-types': 'off',
    'react-hooks/rules-of-hooks': 'error',
    'react-hooks/exhaustive-deps': 'warn',

    'import/no-extraneous-dependencies': 'error',
    'import/no-internal-modules': [
      'error',
      {
        allow: [
          'prismjs/**',
          'perfect-scrollbar/**',
          'react-dom/*',
          'core-js/**',
          'memoize-one/**',
          'unfetch/**',
          'raf/polyfill',
          '**/fixtures/**', // for tests
        ],
      },
    ],
  },
};
back to top