Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@galvanize/typescript-conventions

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galvanize/typescript-conventions

TypeScript conventions used by Galvanize projects.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

TypeScript conventions used by Galvanize projects.

Install Dependency

npm install @galvanize/typescript-conventions --save-dev

Usage

Inside your project create the associated files and artifacts to pick up the convention.

TypeScript Compilation Options

Inside tsconfig.json

{
  "extends": "@galvanize/typescript-conventions/tsconfig",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src"]
}

Install TypeScript:

npm install --save-dev typescript @types/node

Prettier

Inside package.json

{
    ...
    "prettier": "@galvanize/typescript-conventions/.prettierrc.json",
    ...
}

Install prettier

npm install --save-dev prettier

ESLint (base)

Inside .eslintrc.js

module.exports = {
  "extends": [
    require.resolve("@galvanize/typescript-conventions/.eslintrc.js"),
  ]
}

Additionally, you'll want to install peer dependencies:

npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint \
                        eslint-config-prettier eslint-plugin-prettier 

ESLint (React)

If using React, inside .eslintrc.js

module.exports = {
  "extends": [
    require.resolve("@galvanize/typescript-conventions/.eslintrc.js"),
    require.resolve("@galvanize/typescript-conventions/.eslintrc.react.js"),
  ]
}

Additionally, you'll want to install peer dependencies:

npm install --save-dev eslint-plugin-react  

FAQs

Package last updated on 10 Jun 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc