Socket
Book a DemoInstallSign in
Socket

@dasa-health/eslint-config-dasa-health-js

Package Overview
Dependencies
Maintainers
5
Versions
347
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dasa-health/eslint-config-dasa-health-js

ESLint configurations used by Dasa for JavaScript projects

2.1.0
latest
npmnpm
Version published
Maintainers
5
Created
Source

ESLint configurations used by Dasa for JavaScript projects

Install

Run

yarn add --dev prettier eslint eslint-plugin-import eslint-plugin-chai-expect eslint-plugin-mocha  @dasa-health/eslint-config-dasa-js

To use prettier you need to add this line to prettier.config.js file:

module.exports = require('@dasa-health/eslint-config-dasa-js/prettier.config');

How use:

if your config are at package.json

  "eslintConfig": {
    "extends": [
      "@dasa-health/dasa-health-js"
    ]
  }

if your config are at .eslintrc

{
    "extends": [
        "@dasa-health/dasa-health-js",
        "@dasa-health/dasa-health-js/config/react",
        "@dasa-health/dasa-health-js/config/typescript"
    ],
    "overrides": [
        {
            "files": ["src/packages/app/__mocks__/*.js"],
            "rules": {
                "react/no-multi-comp": "off"
            }
        }
    ]
}

How use some specific configuration:

To use specific type of configuration for React, Typescript and Node.js, you only need to extend these configuration above @dasa-health/dasa-health-js/ declaration, i, e:

{
    "extends": [
        "@dasa-health/dasa-health-js",
        "@dasa-health/dasa-health-js/config/node",
        "@dasa-health/dasa-health-js/config/react",
        "@dasa-health/dasa-health-js/config/typescript"
    ]
}

If you want

After this you need to install all peer dependencies:

React

yarn add --dev eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-config-react-app eslint-plugin-flowtype

Typescript

yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser

Node

yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser

How publish

At project root:

Set your npm token

yarn workspace @dasa-health/commitlint-config publish --access=public --non-interactive

FAQs

Package last updated on 27 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.