2021-08-12 22:01:54 +00:00
const { ERROR , OFF , UNKNOWN , TYPESCRIPT _CONVERSION } = require ( 'eslint-config-helpers' ) ;
2021-05-12 06:35:00 +00:00
/** @type { import('eslint').Linter.Config } */
module . exports = {
extends : '../../.eslintrc.js' ,
2021-05-27 18:00:32 +00:00
settings : {
react : {
version : 'detect' ,
} ,
} ,
2021-05-12 06:35:00 +00:00
rules : {
2021-08-12 22:01:54 +00:00
'filenames/match-exported' : OFF ( UNKNOWN ) ,
camelcase : OFF ( UNKNOWN ) ,
'@typescript-eslint/no-use-before-define' : OFF ( TYPESCRIPT _CONVERSION ) ,
'@typescript-eslint/no-explicit-any' : OFF ( TYPESCRIPT _CONVERSION ) ,
'react/no-find-dom-node' : OFF ( UNKNOWN ) ,
'no-restricted-properties' : [ ERROR , {
2021-05-12 20:20:52 +00:00
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.' ,
} ] ,
2021-05-12 06:35:00 +00:00
} ,
} ;