Files
spacedrive/packages/config/eslint/react.js
Oscar Beaumont 49bdbc4b60 SolidJS Build Infrastructure (#1919)
* backport changes from #1913

* Make ESLint play nice

* eslint fix

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-01-08 06:20:20 +00:00

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'
}
}
};