redoc/.eslintrc.js

53 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-03-17 12:52:33 +03:00
module.exports = {
env: {
browser: true,
},
parser: '@typescript-eslint/parser',
extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
2020-03-17 14:18:23 +03:00
createDefaultProgram: true,
2020-03-17 12:52:33 +03:00
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
plugins: ['@typescript-eslint', 'import'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
2020-07-25 20:14:11 +03:00
'@typescript-eslint/explicit-module-boundary-types': 'off',
2020-03-17 12:52:33 +03:00
'@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',
2020-03-17 13:01:32 +03:00
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
2020-07-25 20:14:11 +03:00
'@typescript-eslint/ban-types': ['error', { types: { object: false }, extendDefaults: true }],
'@typescript-eslint/no-var-requires': 'off',
2020-03-17 13:01:32 +03:00
2020-03-17 12:52:33 +03:00
'react/prop-types': 'off',
'import/no-extraneous-dependencies': 'error',
'import/no-internal-modules': [
'error',
{
allow: [
'prismjs/**',
'perfect-scrollbar/**',
'react-dom/*',
'core-js/**',
'memoize-one/**',
2020-03-17 14:18:23 +03:00
'unfetch/**',
'raf/polyfill',
'**/fixtures/**', // for tests
2020-03-17 12:52:33 +03:00
],
},
],
},
};