
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@dasa-health/eslint-config-dasa-health-js
Advanced tools
ESLint configurations used by Dasa for JavaScript projects
ESLint configurations used by Dasa for JavaScript projects
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');
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"
}
}
]
}
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
At project root:
Set your npm token
yarn workspace @dasa-health/commitlint-config publish --access=public --non-interactive
FAQs
ESLint configurations used by Dasa for JavaScript projects
We found that @dasa-health/eslint-config-dasa-health-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.