🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@super-protocol/eslint-config-typescript

Package Overview
Dependencies
Maintainers
14
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@super-protocol/eslint-config-typescript

Shared ESLint and Typescript configs

Source
npmnpm
Version
2.0.0-beta.2
Version published
Weekly downloads
43
-51.14%
Maintainers
14
Weekly downloads
 
Created
Source

Shared ESLint and Typescript configuration

Integrate into new project

  • Turn off VS code extention "Prettier" for the project if you use it
  • Create file .vscode/settings.json
  • add "prettier.enable": false to the json
  • Install this package as devDependency
# with npm
$ npm i -D @super-protocol/eslint-config-typescript

  • Install peer dependencies of this package in your project as devDependencies

Therefore, you can make use of the tool install-peerdeps:

# with npm
$ npx install-peerdeps --dev @super-protocol/eslint-config-typescript
  • Use ESLint config in your project

Create a .eslintrc.js file in project root with the following data:

module.exports = {
  extends: '@super-protocol/eslint-config-typescript/eslint-config.js',
};
  • Use Typescript config in your project

Create tsconfig.json file in project root with the following data:

{
  "extends": "./node_modules/@super-protocol/eslint-config-typescript/tsconfig.json",
  "compilerOptions": {
    "outDir": "dist"
  },
  "include": ["src", "test"],
  "exclude": [],
}

include and exclude properties should correspond to your project's folders structure

Keywords

eslint

FAQs

Package last updated on 29 Feb 2024

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