https://github.com/ozum/eslint-config-ozum
https://github.com/ozum/eslint-config-ozum
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ozum/eslint-config-ozum
- Owner: ozum
- Created: 2023-05-17T07:22:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-10T11:10:09.000Z (about 1 year ago)
- Last Synced: 2025-02-13T11:53:15.161Z (3 months ago)
- Language: JavaScript
- Size: 344 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-ozum
Highly opinionated ESLint plugin for various TypeScript projects.
# Usage
```sh
npm install -D eslint eslint-config-ozum
```**.eslintrc.cjs**
```js
module.exports = {
root: true,
extends: ["ozum"], // or ["ozum/minimum"] or ["ozum/maximum"]
};
```# Suggestions
- For `push` and `CI`, prefer to use `ozum/maximum`
- For development use any configuration.**.eslintrc.cjs**
```
module.exports = {
root: true,
extends: ["ozum"],
};
```**.eslintrc-maximum.cjs**
```
module.exports = {
root: true,
extends: ["ozum/maximum"],
};
```| When | Config | Where | Example |
| ---- | ------ | ----|---|
|Development|`ozum`|`package.json`|`lint: "eslint --ignore-path .gitignore --cache --max-warnings 0 --ext js,jsx,ts,tsx,vue --fix ."`|
|Push|`ozum/maximum`|`.lint-staged.config.js`|`"*.{jsx,tsx,vue,js,ts}": ["eslint --no-ignore --cache --max-warnings 0 --fix --no-eslintrc -c ./.eslintrc-maximum.cjs"],`|
|CI|`ozum/maximum`|`.github/workflows/build.yml`|`pnpm lint --no-fix --no-eslintrc -c ./.eslintrc-maximum.cjs`|# Configurations
| Name | Parser Service | Description |
| -------------- | -------------- | ----------------------------------------------- |
| `ozum/minimum` | ✗ | Non-type-checked rules and basic import rules. |
| `ozum` | ✔ | Type checked rules. |
| `ozum/maximum` | ✔ | Type checked rules and additional import rules. |# Plugins & Configs
- TypeScript
- Airbnb Base Typescript
- Jest
- Promise
- Unicorn