2016-10-05 14:36:59 +00:00
|
|
|
module.exports = {
|
2018-06-13 09:06:22 +00:00
|
|
|
'extends': [
|
|
|
|
'../.eslintrc.js',
|
2021-11-10 10:37:43 +00:00
|
|
|
'@jitsi/eslint-config/flow',
|
|
|
|
'@jitsi/eslint-config/jsdoc',
|
|
|
|
'@jitsi/eslint-config/react',
|
2018-06-13 09:06:22 +00:00
|
|
|
'.eslintrc-react-native.js'
|
2021-11-04 21:10:43 +00:00
|
|
|
],
|
2022-07-11 12:30:37 +00:00
|
|
|
'overrides': [
|
|
|
|
{
|
|
|
|
'files': [ '*.ts', '*.tsx' ],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
rules: {
|
|
|
|
'no-undef': 'off',
|
|
|
|
'no-use-before-define': 'off',
|
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/ban-types': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2022-07-20 06:19:59 +00:00
|
|
|
'no-prototype-builtins': 'off',
|
|
|
|
'no-shadow': 'off',
|
2022-07-20 08:47:01 +00:00
|
|
|
'@typescript-eslint/no-shadow': [ 'error' ],
|
|
|
|
'typescript-sort-keys/interface': 'error',
|
|
|
|
'typescript-sort-keys/string-enum': 'error'
|
2022-07-11 12:30:37 +00:00
|
|
|
},
|
2022-07-20 08:47:01 +00:00
|
|
|
'plugins': [ '@typescript-eslint', 'typescript-sort-keys' ],
|
2022-07-11 12:30:37 +00:00
|
|
|
'extends': [
|
|
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2021-11-04 21:10:43 +00:00
|
|
|
'rules': {
|
2022-03-02 12:39:50 +00:00
|
|
|
'flowtype/no-types-missing-file-annotation': 0,
|
|
|
|
|
2021-11-04 21:10:43 +00:00
|
|
|
// XXX remove this eventually.
|
|
|
|
'react/jsx-indent-props': 0
|
2021-11-09 14:07:20 +00:00
|
|
|
},
|
|
|
|
'settings': {
|
2022-02-25 09:52:07 +00:00
|
|
|
'flowtype': {
|
|
|
|
'onlyFilesWithFlowAnnotation': true
|
|
|
|
},
|
2021-11-09 14:07:20 +00:00
|
|
|
'react': {
|
|
|
|
'version': 'detect'
|
|
|
|
}
|
2021-11-04 21:10:43 +00:00
|
|
|
}
|
2016-10-05 14:36:59 +00:00
|
|
|
};
|