@secretflow/eslint-config
Version:
Shared eslint config for SecretFlow
29 lines (28 loc) • 551 B
JavaScript
module.exports = {
extends: [
'plugin:jsx-a11y/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
plugins: ['react', 'react-hooks', 'jsx-a11y'],
env: {
browser: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/sort-comp': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/destructuring-assignment': 0,
'react/no-access-state-in-setstate': 0,
},
}