insomnia/packages/insomnia-components/.eslintrc.js

16 lines
530 B
JavaScript
Raw Normal View History

2021-08-12 22:01:54 +00:00
const { OFF, TYPESCRIPT_CONVERSION } = require('eslint-config-helpers');
/** @type { import('eslint').Linter.Config } */
module.exports = {
extends: '../../.eslintrc.js',
settings: {
react: {
version: 'detect',
},
},
rules: {
2021-08-12 22:01:54 +00:00
'@typescript-eslint/no-explicit-any': OFF(TYPESCRIPT_CONVERSION),
'@typescript-eslint/no-unnecessary-type-constraint': OFF('by an unfortunate quirk of how TypeScript differentiates between casts and JSX, this it is necessary for generic JSX to do extend unknown'),
},
};