Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kutsan/config
Sharable configurations files for tools that I use; such as eslint, prettier, stylelint.
https://github.com/kutsan/config
eslint eslint-config prettier prettier-config stylelint stylelint-config
Last synced: 22 days ago
JSON representation
Sharable configurations files for tools that I use; such as eslint, prettier, stylelint.
- Host: GitHub
- URL: https://github.com/kutsan/config
- Owner: kutsan
- License: gpl-3.0
- Created: 2018-07-03T19:54:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T03:02:11.000Z (over 1 year ago)
- Last Synced: 2024-10-13T18:30:59.072Z (about 1 month ago)
- Topics: eslint, eslint-config, prettier, prettier-config, stylelint, stylelint-config
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# config
[![npm](https://img.shields.io/npm/v/@kutsan/config)](https://www.npmjs.com/package/@kutsan/config)
Sharable configurations files for tools that I use.
## Usage
```sh
npm install @kutsan/config --save-dev
```### [eslint](https://github.com/eslint/eslint)
First, install `@rushstack/eslint-patch` to patch ESLint to support modern module resolver.
```
npm install @rushstack/eslint-patch --save-dev
```Then, use in your `.eslintrc.js`.
```javascript
require('@rushstack/eslint-patch/modern-module-resolution')module.exports = {
extends: [
require.resolve('@kutsan/config/eslint'),
require.resolve('@kutsan/config/eslint/ts'),
require.resolve('@kutsan/config/eslint/tsx')
]
}
```### [prettier](https://github.com/prettier/prettier)
Use as is in your `prettier.config.js`.
```javascript
module.exports = require('@kutsan/config/prettier')
```In order to override rules, use spread operator.
```javascript
module.exports = {
...require('@kutsan/config/prettier'),
semi: true
}
```### [stylelint](https://github.com/stylelint/stylelint)
Use with `extends` in your `stylelint.config.js`.
```javascript
module.exports = {
extends: '@kutsan/config/stylelint'
}
```## License
GPL-3.0