scratch-www/src/.eslintrc.js

25 lines
601 B
JavaScript
Raw Normal View History

module.exports = {
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react'],
env: {
browser: true
},
globals: {
process: true
2018-01-30 10:36:08 -05:00
},
plugins: ['json', 'react-hooks'],
settings: {
react: {
2021-02-19 11:39:21 -05:00
version: 'detect'
}
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
}],
'react-hooks/rules-of-hooks': 'error',
'react/forbid-prop-types': 'warn'
}
};