scratch-www/src/.eslintrc.js
Christopher Willis-Ford 5dcb198737 style: set react/forbid-prop-types to warn
We should really fix these, but it's a lot of work and I'm short on
time...
2024-02-26 13:20:18 -08:00

24 lines
601 B
JavaScript

module.exports = {
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react'],
env: {
browser: true
},
globals: {
process: true
},
plugins: ['json', 'react-hooks'],
settings: {
react: {
version: 'detect'
}
},
rules: {
'camelcase': [2, {
properties: 'never', // This is from the base `scratch` config
allow: ['^UNSAFE_'] // Allow until migrated to new lifecycle methods
}],
'react-hooks/rules-of-hooks': 'error',
'react/forbid-prop-types': 'warn'
}
};