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 1 month 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 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T12:11:44.000Z (about 1 year ago)
- Last Synced: 2024-10-18T08:17:48.523Z (7 months ago)
- Topics: eslint, eslint-config, eslint-react, eslint-typescript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@mskelton/eslint-config
- Size: 21.7 MB
- Stars: 3
- Watchers: 3
- 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}"],
},
]
```