@guanghechen/eslint-config-jsx

6.0.0-alpha.4 • Public • Published

Eslint config for jsx.

Install

  • npm

    npm install --save-dev @guanghechen/eslint-config-jsx
  • yarn

    yarn add --dev @guanghechen/eslint-config-jsx

Usage

  • Use in .eslintrc.js

    {
      extends: ['@guanghechen/jsx'],
    }

Example

See .eslintrc

{
  "root": true,
  "extends": [
    "@guanghechen",
    "@guanghechen/jsx",
    "plugin:jest/recommended",
    "prettier"
  ],
  "plugins": ["import", "jest", "prettier"],
  "env": {
    "browser": true,
    "commonjs": true,
    "es6": true,
    "jest": true,
    "node": true
  },
  "rules": {
    "import/no-internal-modules": [
      2,
      {
        "allow": ["util"]
      }
    ]
  },
  "overrides": [
    {
      "files": ["**/*.ts", "**/*tsx"],
      "extends": [
        "@guanghechen/jsx",
        "@guanghechen/ts",
        "plugin:jest/recommended"
      ]
    }
  ]
}

Related

Package Sidebar

Install

npm i @guanghechen/eslint-config-jsx

Weekly Downloads

127

Version

6.0.0-alpha.4

License

MIT

Unpacked Size

47.7 kB

Total Files

8

Last publish

Collaborators

  • lemonclown