mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-05 14:53:43 +03:00
53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
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: ['@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',
|
|
|
|
'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
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|