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

@fauna/typescript

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fauna/typescript - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

2

package.json
{
"name": "@fauna/typescript",
"version": "0.0.12",
"version": "0.0.13",
"description": "A collection of lint, format, and build configs used at Fauna for TypeScript projects.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,5 +14,52 @@ # TypeScript

## Workflows
## Usage
### Development
Develop on this package by running `npm install && npm link`. Then, navigate to a package that depends on this project and run `npm link @fauna/typescript`. [npm link](https://docs.npmjs.com/cli/v10/commands/npm-link) builds a symlink from the node_modules directory of the dependent package to `@fauna/typescript`, allowing you to develop locally in real time. When done, run `npm unlink @fauna/typescript` from any directory.
### Install
#### I use npm
```
npm install --save-dev @fauna/typescript
```
#### I use yarn
```
yarn add -D @fauna/typescript
```
## Configure
### ES Lint Config
In `eslint.config.js` put:
```(javascript)
import { config as defaultConfig } from "@fauna/typescript/config/js/eslint.config.js";
export default [
...defaultConfig,
// ...any customizations you'd like
];
```
### Prettier Config
In `prettier.config.js`
```(javascript)
import basePrettierConfig from "@fauna/typescript/config/prettierrc.js";
/**
* @type {import("prettier").Config}
*/
const config = {
...basePrettierConfig,
// ...any customizations you'd like
};
export default config;
```
## Script
You can then write scripts in your `package.json` such as:
```(json)
"scripts": {
"lint": "eslint . --fix",
"format": "prettier -w --log-level silent .",
"format:check": "prettier -c ."
}
```
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