npm install -D @ducky/eslint-config-react
- use in eslint as an entry in extends
// .eslintrc.js
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2016,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'@ducky/eslint-config-react'
]
};
- install peer dependencies