@aptpod/data-viz-create-visual-parts-react
Version:
template of npm project with typescript
29 lines (28 loc) • 721 B
JavaScript
module.exports = {
plugins: ['compat'],
extends: ['plugin:compat/recommended'],
rules: {
'class-methods-use-this': [
'error',
{
exceptMethods: [
// react life cycle methods
'componentDidCatch',
'componentDidMount',
'componentDidUpdate',
'componentWillMount',
'componentWillReceiveProps',
'componentWillUnmount',
'componentWillUpdate',
'constructor',
'getSnapshotBeforeUpdate',
'render',
'shouldComponentUpdate',
'UNSAFE_componentWillMount',
'UNSAFE_componentWillReceiveProps',
'UNSAFE_componentWillUpdate',
],
},
],
},
}