eslint-config-logistics-solid

0.0.1 • Public • Published

eslint-config-logistics-solid

logistics's Solid eslint config presets

this config extends logistics-ts

Usage

Install

pnpm add -D eslint eslint-config-logistics-solid

Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)

{
  "extends": "logistics-solid"
}

You don't need .eslintignore normally as it has been provided by the preset.

add import alias

{
  "settings": {
    "import/resolver": {
      "alias": {
        "map": [
          ["~", "."],
          ["@", "./src"]
        ],
        "extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
      }
    }
  }
}

Add scripts for package.json

For example:

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-logistics-solid

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • shenghao0.0