Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 727 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 727 Bytes

@jsimck/eslint-config

Very opinionated eslint config I use on my projects, includes: prettier, react, TS. It uses new eslint flat config format.

Install

npm i -D eslint @jsimck/eslint-config

Usage

Create eslint.config.js in the root of your directory with following contents:

import baseConfig from '@jsimck/eslint-config';

export default [...baseConfig];

Running eslint

Below is simple code snippet you can add to your package.json to run eslint:

{
  "scripts": {
    "lint": "eslint './**/*.{js,ts,jsx,tsx,cjs,mjs}'"
  }
}

FAQ

Q: Does this work with VSCode eslint plugin?

A: Yes, just make sure to enable eslint.experimental.useFlatConfig: true settings.