Files
stats/tooling/eslint/react.js
2023-11-02 20:24:41 +01:00

27 lines
491 B
JavaScript

/** @type {import('eslint').Linter.Config} */
const config = {
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
],
rules: {
'react/prop-types': 'off',
'react/no-unknown-property': 'off',
'jsx-a11y/click-events-have-key-events': 'off'
},
globals: {
React: 'writable',
},
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
},
};
module.exports = config;