mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
5dcb198737
We should really fix these, but it's a lot of work and I'm short on time...
24 lines
601 B
JavaScript
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'
|
|
}
|
|
};
|