Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seokminhong/configs
JavaScript / TypeScript configs (WIP)
https://github.com/seokminhong/configs
Last synced: 10 days ago
JSON representation
JavaScript / TypeScript configs (WIP)
- Host: GitHub
- URL: https://github.com/seokminhong/configs
- Owner: SeokminHong
- License: mit
- Created: 2024-05-12T16:51:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T09:44:34.000Z (17 days ago)
- Last Synced: 2024-11-02T09:45:27.607Z (17 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@seokminhong/configs
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Configs
## How to use
### 1. Install the package
```sh
pnpm add -D @seokminhong/configs eslint prettier typescript
```### 2. Set the configs
#### ESLint
```js
// eslint.config.js
import config from '@seokminhong/configs/eslint';export default config();
```#### ESLint (React)
```js
// eslint.config.js
import config from '@seokminhong/configs/eslint';
import react from '@seokminhong/configs/eslint/react';export default config({
envs: ['browser', 'node'],
extensions: [react()],
});
```#### Prettier
```jsonc
// .prettierrc
"@seokminhong/configs/prettier"
```#### TSConfig
```jsonc
{
"extends": "@seokminhong/config/tsconfig/node",
}
```## TODO
- [ ] Provides Node.js ESLint rules
- [ ] Provides testing ESLint rules
- [ ] Supports Deno## References
- [TSConfig Bases](https://github.com/tsconfig/bases?)
- [ESLint Flat Config](https://eslint.org/docs/v8.x/use/configure/configuration-files-new)
- [TypeScript ESLint Config](https://typescript-eslint.io/getting-started/typed-linting)
- [eslint-plugin-hardcore](https://github.com/EvgenyOrekhov/eslint-config-hardcore/)
- [Prettier Configuration](https://prettier.io/docs/en/configuration.html)