eslint-config-caixiejs-react-native

0.1.1 • Public • Published

eslint-config-caixiejs-react-native

CaixieJS's React Native eslint config presets

this config extends caixiejs-react

Usage

Install

pnpm add -D eslint eslint-config-caixiejs-react-native

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

{
  "extends": "caixiejs-react-native"
}

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

add import alias

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

Add scripts for package.json

For example:

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

Dependents (0)

Package Sidebar

Install

npm i eslint-config-caixiejs-react-native

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

1.85 kB

Total Files

3

Last publish

Collaborators

  • baisheng