Open4

eslint

kzk4043kzk4043

Getting Started with ESLint

ESLint is completely pluggable. Every single rule is a plugin and you can add more at runtime.

インストール方法(package.jsonある前提)
npm init @eslint/config@latest

// 実行
npx eslint ファイルパス
kzk4043kzk4043

package.json>scriptsへの登録内容

    "lint:eslint": "eslint --ext js,jsx,ts,tsx,astro --ignore-path .eslintignore .",
    "lint-fix:eslint": "run-s \"lint:eslint --fix\" \"lint:prettier --write\"",