2018-01-30 11:53:12 -05:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
extends: ['scratch', 'scratch/es6', 'scratch/react'],
|
|
|
|
env: {
|
|
|
|
browser: true
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
process: true
|
2018-01-30 10:36:08 -05:00
|
|
|
},
|
2021-06-18 11:09:37 -04:00
|
|
|
plugins: ['json', 'react-hooks'],
|
2019-07-21 21:37:30 -04:00
|
|
|
settings: {
|
|
|
|
react: {
|
2021-02-19 11:39:21 -05:00
|
|
|
version: 'detect'
|
2019-07-21 21:37:30 -04:00
|
|
|
}
|
2021-02-19 11:39:21 -05:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'camelcase': [2, {
|
|
|
|
properties: 'never', // This is from the base `scratch` config
|
|
|
|
allow: ['^UNSAFE_'] // Allow until migrated to new lifecycle methods
|
2021-06-18 11:09:37 -04:00
|
|
|
}],
|
2024-02-26 16:20:15 -05:00
|
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
|
|
'react/forbid-prop-types': 'warn'
|
2019-07-21 21:37:30 -04:00
|
|
|
}
|
2018-01-30 11:53:12 -05:00
|
|
|
};
|