An eslint configuration that will allow projects to have consistent code quality and standards. It exports configurations for node, react, react-native, and a common package that can be used more generally.
# from the project you're trying to add it to
yarn add @redhook/eslint-config -DTo install the common package:
module.exports = {
extends: [
'@redhook/eslint-config',
],
};To install the node package:
module.exports = {
extends: [
'@redhook/eslint-config/node',
],
};To install the react package:
module.exports = {
extends: [
'@redhook/eslint-config/react',
],
};To install the react-native package:
module.exports = {
extends: [
'@redhook/eslint-config/react-native',
],
};