eslint-config-wizardry

0.1.1 • Public • Published

eslint-config-wizardry

[!Important] This package contains a set of rules for the new eslint flat config (v9+).

Packages inside

  • base - eslint
  • imports - eslint-plugin-import and eslint-plugin-simple-import-sort
  • typescript - typescript-eslint (checks '**/*.{ts,tsx,mts,cts}')
  • react - eslint-plugin-react and eslint-plugin-react-hooks (checks '**/*.{js,jsx,mjs,cjs,ts,tsx}')

Usage

  1. Install the correct versions of each package, which are listed by the command:
npm i --save-dev eslint typescript eslint-config-wizardry
  1. Add import to your eslint.config.js / any of available config formats
// eslint.config.js
import wizardryConfig from 'eslint-config-wizardry';

const config = [
  ...wizardryConfig,
  {
    // your config
  }
];

export default config;
  1. Add scripts to your package.json (optional)
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-wizardry

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

33.4 kB

Total Files

7

Last publish

Collaborators

  • sadlize