https://github.com/cycraft/eslint
re-usable eslint config
https://github.com/cycraft/eslint
Last synced: 4 months ago
JSON representation
re-usable eslint config
- Host: GitHub
- URL: https://github.com/cycraft/eslint
- Owner: CyCraft
- Created: 2024-05-24T00:17:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-23T01:06:39.000Z (about 1 year ago)
- Last Synced: 2025-05-23T02:24:03.531Z (about 1 year ago)
- Language: JavaScript
- Size: 450 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint
> Shared [TypeScript Eslint config](https://typescript-eslint.io) for my projects
## Install
```sh
npm i -D @cycraft/eslint
```
It will install these packages for you, so you don't have to include them in your package dependencies:
- `@eslint/js`
- `@types/node`
- `eslint`
- `eslint-config-prettier`
- `prettier`
- `prettier-plugin-jsdoc`
- `prettier-plugin-organize-imports`
- `typescript`
- `typescript-eslint`
## Usage
`eslint.config.js`
```js
import config from '@cycraft/eslint/config'
export default config
```
`.prettierrc.js`
```js
import prettier from '@cycraft/eslint/prettier'
export default prettier
```
### Update Eslint Config
```js
import config from '@cycraft/eslint/config'
export default [
{
ignores: ['**/dist/*'],
},
...config,
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
]
```