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 : {
'filenames/match-exported' : 'off' ,
camelcase : 'off' ,
'@typescript-eslint/no-use-before-define' : 'off' , // TSCONVERSION
'@typescript-eslint/no-explicit-any' : 'off' , // TSCONVERSION
2021-05-27 18:00:32 +00:00
'react/no-find-dom-node' : 'off' ,
2021-05-12 20:20:52 +00:00
'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.' ,
} ] ,
2021-07-01 20:47:10 +00:00
'default-case' : 'error' ,
'default-case-last' : 'error' ,
2021-05-12 06:35:00 +00:00
} ,
} ;