codestilo
v0.0.6
Published
Codestilo - A unified toolkit for managing code style and linting rules
Downloads
3
Maintainers
Readme
Codestilo (esm only)
Codestilo is designed to streamline your development workflow by enabling direct configuration of ESLint and Prettier settings in your project. Simplify your project setup and ensure consistent coding standards across your teams with Codestilo.
Features
Direct Configuration: Integrate ESLint and Prettier settings directly into your project.
Easy to Use: Setup in seconds, and start coding with style!
Installation
Install Codestilo into your project:
npm install codestilo --save-dev
ESLint Configuration
After installation, you can configure your project's linting by adding the following lines to your eslint.config.js
.
import { ESLINT } from "codestilo";
export default [...ESLINT.ts]; // or other ESLint configurations in the ESLINT object
Prettier Configuration
Formatting by adding the following lines to your prettier.config.js
.
import { PRETTIER } from "codestilo";
const config = {
...PRETTIER.base, // or other Prettier configurations in the PRETTIER object
};
export default config;
## Usage
With Codestilo configured, you can run your usual linting and formatting commands, or you can add them to your package.json scripts:
```json
"type": "module",
"scripts": {
"lint": "eslint .",
"format": "prettier --write ."
}
Run linting and formatting with:
npm run lint
npm run format
Contributing
We welcome contributions to Codestilo! Whether it's feature suggestions, bug reports, or code contributions, your help is highly appreciated.
License
Codestilo is open-sourced software licensed under the MIT license.
Contact
Kenji - [email protected]
Project Link: https://github.com/kenjiginjo/codestilo