mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
d7b630f17b
* add rules * run lint:fix * quick manual fix for lint errors * indent fix * add jsx prop multiline Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
21 lines
721 B
JavaScript
21 lines
721 B
JavaScript
/** @type { import('eslint').Linter.Config } */
|
|
module.exports = {
|
|
extends: '../../.eslintrc.js',
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
rules: {
|
|
'filenames/match-exported': 'off',
|
|
camelcase: 'off',
|
|
'@typescript-eslint/no-use-before-define': 'off', // TSCONVERSION
|
|
'@typescript-eslint/no-explicit-any': 'off', // TSCONVERSION
|
|
'react/no-find-dom-node': 'off',
|
|
'no-restricted-properties': ['error', {
|
|
property: 'openExternal',
|
|
message: 'use the `clickLink` function in `electron-helpers.ts` instead. see https://security.stackexchange.com/questions/225799/dangers-of-electrons-shell-openexternal-on-untrusted-content for more information.',
|
|
}],
|
|
},
|
|
};
|