mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-14 04:46:34 +03:00
6c7685e5fa
* fix: No maxLength label is displayed for arrays of items #1701
* Revert "fix: No maxLength label is displayed for arrays of items #1701"
This reverts commit 543ecc4d39
.
* fix: No maxLength label is displayed for arrays of items #1701
* change array items display
* fix alignment
* remove theme font from labels
* update snapshot
Co-authored-by: Oprysk <vyacheslav@redocly.com>
55 lines
1.5 KiB
JavaScript
55 lines
1.5 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: ['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
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|