This repository contains a variety of configuration files that can be used in development projects. Currently, there are configuration files/packages for Renovate, Prettier, and Eslint. Each configuration file is designed to be easily integrated into your project.
- Renovate
- Prettier
- Eslint
- Javascript
- Typescript
- React
- Javascript
- Typescript
Install the Prettier configuration package by running:
npm i -D @chewbaccacookie/prettier-config
Then, create a .prettierrc
file in your project root with the following entry:
"@chewbaccacookie/prettier-config"
For non-React projects, install the Eslint configuration package by running:
npm i -D @chewbaccacookie/eslint-config-base
Now create a .eslintrc.cjs
file in your project root with the following entry:
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
"extends": "@chewbaccacookie/base"
// or
"extends": "@chewbaccacookie/base/typescript"
}
For React projects, use:
npm i -D @chewbaccacookie/eslint-config-react
Now create a .eslintrc.cjs
file in your project root with the following entry:
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
"extends": "@chewbaccacookie/react"
// or
"extends": "@chewbaccacookie/react/typescript"
}
You can reuse the Renovate configuration file by adding the following to your renovate.json
file:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>ChewbaccaCookie/chewbaccacookie-configs:renovate-config"]
}
In the examples
directory, you can find Javascript and Typescript examples for Eslint and React.
Contributions are welcome! If you have a configuration file you'd like to add, please feel free to make a pull request.
This project is licensed under the MIT License.
If you have any questions or run into any issues, please open an issue in this repository.
Happy coding! 🚀