mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-28 02:18:01 -04:00
* backport changes from #1913 * Make ESLint play nice * eslint fix --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
24 lines
500 B
JavaScript
24 lines
500 B
JavaScript
module.exports = {
|
|
plugins: ['react'],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.tsx'],
|
|
excludedFiles: '*.solid.tsx',
|
|
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
|
|
rules: {
|
|
'react/display-name': 'off',
|
|
'react/prop-types': 'off',
|
|
'react/no-unescaped-entities': 'off',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react-hooks/rules-of-hooks': 'warn',
|
|
'react-hooks/exhaustive-deps': 'warn'
|
|
}
|
|
}
|
|
],
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
}
|
|
};
|