0.5.5 • Published 7 months ago

@planet-matrix/eslint-config v0.5.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

ESLint Config

npm version

Install

ni -D eslint @planet-matrix/eslint-config

Usage

package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
  }
}

eslint.config.js

import { planetMatrix } from "@planet-matrix/eslint-config"

export default planetMatrix({
  strict: true,
  typeChecked: true,
  plugins: ["react", "web"],
  configs: [],
})

.vscode/settings.json

{
  "eslint.experimental.useFlatConfig": true,
  "eslint.validate": ["typescript", "typescriptreact"],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },

  // optional, if you are using monorepo
  "eslint.workingDirectories": [
    { "pattern": "apps/*/" },
    { "pattern": "packages/*/" }
  ]
}

Details

  1. Manually choose other plugins by setting includes option
  2. Set typeChecked and strict options to choose typescript-eslint preset
  3. From v0.4.0, ESLint plugin for Next.js and TailwindCSS are not included.
0.5.5

7 months ago

0.5.3

7 months ago

0.5.2

7 months ago

0.5.1

7 months ago

0.5.0

7 months ago

0.4.5

7 months ago

0.4.4

7 months ago

0.4.3

7 months ago

0.4.2

7 months ago

0.4.1

7 months ago

0.4.0

7 months ago

0.3.1

7 months ago

0.3.0

7 months ago

0.2.4

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago

0.1.19

7 months ago

0.1.18

7 months ago

0.1.17

7 months ago

0.1.16

7 months ago

0.1.15

7 months ago

0.1.14

7 months ago

0.1.13

7 months ago

0.1.12

7 months ago

0.1.11

7 months ago

0.1.10

7 months ago

0.1.8

7 months ago

0.1.7

8 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago