https://github.com/mskelton/eslint-config
Simple and sensible ESLint config.
https://github.com/mskelton/eslint-config
eslint eslint-config eslint-react eslint-typescript
Last synced: about 2 months ago
JSON representation
Simple and sensible ESLint config.
- Host: GitHub
- URL: https://github.com/mskelton/eslint-config
- Owner: mskelton
- License: isc
- Created: 2019-11-15T01:50:36.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T16:34:21.000Z (over 1 year ago)
- Last Synced: 2025-08-10T20:37:27.056Z (10 months ago)
- Topics: eslint, eslint-config, eslint-react, eslint-typescript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@mskelton/eslint-config
- Size: 22 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @mskelton/eslint-config
[](https://github.com/mskelton/eslint-config/actions)
[](https://www.npmjs.com/package/@mskelton/eslint-config)
[](https://github.com/semantic-release/semantic-release)
Simple and sensible ESLint config.
## Description
This package contains a simple and sensible ESLint config that you can use to
get up and running. It uses the
[TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint) and
[Prettier](https://prettier.io).
## Installation
```sh
npm install -D @mskelton/eslint-config eslint
```
## Usage
In your `eslint.config.mjs` file, add the following content including the
configs you want for your project.
```js
import mskelton from '@mskelton/eslint-config'
/** @type {import('eslint').Linter.Config[]} */
export default [
...mskelton.recommended,
mskelton.react,
{
...mskelton.playwright,
files: ['test/**/*.spec.ts'],
},
{
...mskelton.vitest,
files: ['**/__tests__/**/*.{spec,test}.{js,jsx,cjs,mjs,ts,tsx,cts,mts}'],
},
{
...mskelton.jest,
files: ['**/__tests__/**/*.{spec,test}.{js,jsx,cjs,mjs,ts,tsx,cts,mts}'],
},
]
```