/eslint-config

Primary LanguageJavaScript

Zhap ESLint & Prettier Config

This package provides Zhap's ESLint and Pretter extensible shared config

There are 3 configs:

  • @chinaza/eslint-config/express - This enables linting for NodeJS/ Express based applications
  • @chinaza/eslint-config/react - This enables linting rules for React and JSX based code
  • @chinaza/eslint-config/solid - This enables linting rules for Solid and JSX based code

Installation

npm install -D @chinaza/eslint-config

Usage In ESLint

package.json

{
    "eslintConfig": {
        "extends": [
            "@chinaza/eslint-config/express|react|solid"
        ]
    }
}

.eslintrc.json or .eslintrc.js

{
    "extends": "@chinaza/eslint-config/express|react|solid"
}

Usage in Prettier

package.json

{
    "prettier": "@chinaza/eslint-config/prettier"
}