Files
stats/tooling/eslint/react.js
Carl-Gerhard Lindesvärd 444e553b74 🧹 clean up duty 🧹
2024-03-28 10:40:49 +01:00

28 lines
544 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',
'jsx-a11y/label-has-associated-control': 'off',
},
globals: {
React: 'writable',
},
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
},
};
module.exports = config;