# fx-style

> Felix Tellmann TypeScript Style

Latest version **3.0.3** (published 2023-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install fx-style
pnpm add fx-style
yarn add fx-style
bun add fx-style
```

Provides the command `gts`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2023-08-30 |
| First published | 2021-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 23 |
| Unpacked size | 82.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Felix Tellmann |
| Maintainers | felixtellmann |
| Keywords | typescript, linter, formatter, eslint, prettier |

## Links

- npm: https://www.npmjs.com/package/fx-style
- Repository: https://github.com/FelixTellmann/fx-style
- Homepage: https://github.com/FelixTellmann/fx-style#readme
- Issues: https://github.com/FelixTellmann/fx-style/issues
- npm.io page: https://npm.io/package/fx-style

## Dependencies (23)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [meow](https://npm.io/package/meow.md) ^9.0.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [execa](https://npm.io/package/execa.md) ^5.0.0
- [json5](https://npm.io/package/json5.md) ^2.2.3
- [eslint](https://npm.io/package/eslint.md) ^8.47.0
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [inquirer](https://npm.io/package/inquirer.md) ^7.3.3
- [prettier](https://npm.io/package/prettier.md) ^3.0.2
- [copyfiles](https://npm.io/package/copyfiles.md) ^2.4.1
- [prettier-fx](https://npm.io/package/prettier-fx.md) ^3.1.1
- [write-file-atomic](https://npm.io/package/write-file-atomic.md) ^4.0.0
- [eslint-config-next](https://npm.io/package/eslint-config-next.md) ^13.4.19
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.33.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.0.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.0.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.62.0
- [eslint-plugin-prettier-fx](https://npm.io/package/eslint-plugin-prettier-fx.md) ^5.0.2
- [eslint-plugin-sort-keys-fix](https://npm.io/package/eslint-plugin-sort-keys-fix.md) ^1.1.2
- [prettier-plugin-tailwindcss](https://npm.io/package/prettier-plugin-tailwindcss.md) ^0.5.3
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.62.0
- [eslint-plugin-typescript-sort-keys](https://npm.io/package/eslint-plugin-typescript-sort-keys.md) ^2.3.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 3.0.3 (latest) — 2023-08-30
- 3.0.4-beta.21 (beta) — 2025-03-07
- 3.0.4 (bugfix) — 2024-08-07
- 3.0.4-beta.20 — 2025-03-07
- 3.0.4-beta.19 — 2025-03-07
- 3.0.4-beta.18 — 2025-03-07
- 3.0.4-beta.17 — 2025-03-07
- 3.0.4-beta.16 — 2025-03-07
- 3.0.4-beta.15 — 2025-03-07
- 3.0.4-beta.14 — 2025-03-07
- 3.0.4-beta.13 — 2025-03-07
- 3.0.4-beta.12 — 2025-03-07
- 3.0.4-beta.11 — 2025-03-07
- 3.0.4-beta.10 — 2025-03-07
- 3.0.4-beta.9 — 2025-03-05
- … 69 more at https://npm.io/package/fx-style/versions

## README

# gts
> Google TypeScript Style

[![NPM Version][npm-image]][npm-url]
[![GitHub Actions][github-image]][github-url]
[![Dependency Status][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![codecov][codecov-image]][codecov-url]
[![TypeScript Style Guide][gts-image]][gts-url]

[gts][npm-url] is Google's TypeScript style guide, and the configuration for our formatter, linter, and automatic code fixer. No lint rules to edit, no configuration to update, no more bike shedding over syntax.

To borrow from [standardjs][standardjs-url]:
- **No configuration**. The easiest way to enforce consistent style in your project. Just drop it in.
- **Automatically format code**. Just run `gts fix` and say goodbye to messy or inconsistent code.
- **Catch style issues & programmer errors early**. Save precious code review time by eliminating back-and-forth between reviewer & contributor.
- **Opinionated, but not to a fault**. We recommend you use the default configuration, but if you *need* to customize compiler or linter config, you can.

Under the covers, we use [eslint][eslint-url] to enforce the style guide and provide automated fixes, and [prettier][prettier-url] to re-format code.

## Getting Started

The easiest way to get started is to run:
```sh
npx gts init
```

## How it works
When you run the `npx gts init` command, it's going to do a few things for you:
- Adds an opinionated `tsconfig.json` file to your project that uses the Google TypeScript Style.
- Adds the necessary devDependencies to your `package.json`.
- Adds scripts to your `package.json`:
  - `lint`: Lints and checks for formatting problems.
  - `fix`: Automatically fixes formatting and linting problems (if possible).
  - `clean`: Removes output files.
  - `compile`: Compiles the source code using TypeScript compiler.
  - `pretest`, `posttest` and `prepare`: convenience integrations.
- If a source folder is not already present it will add a default template project.

### Individual files
The commands above will all run in the scope of the current folder.  Some commands can be run on individual files:

```sh
gts lint index.ts
gts lint one.ts two.ts three.ts
gts lint *.ts
```

### Working with eslint
Under the covers, we use [eslint][eslint-url] to enforce the style guide and provide automated fixes, and [prettier][prettier-url] to re-format code. To use the shared `eslint` configuration, create an `.eslintrc` in your project directory, and extend the shared config:

```yml
---
extends:
  - './node_modules/gts'
```

If you don't want to use the `gts` CLI, you can drop down to using the module as a basic `eslint` config, and just use the `eslint` cli:

```
$ eslint --fix
```

This opens the ability to use the vast `eslint` ecosystem including custom rules, and tools like the VSCode plugin for eslint:
- https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint


## Badge
Show your love for `gts` and include a badge!

[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)

```md
[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)
```

## Supported Node.js Versions
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). Libraries are compatible with all current _active_ and _maintenance_ versions of Node.js.

## License
[Apache-2.0](LICENSE)

---
Made with ❤️ by the Google Node.js team.

> ***NOTE: This is not an official Google product.***

[github-image]: https://github.com/google/gts/workflows/ci/badge.svg
[github-url]: https://github.com/google/gts/actions
[prettier-url]: https://prettier.io/
[codecov-image]: https://codecov.io/gh/google/gts/branch/main/graph/badge.svg
[codecov-url]: https://codecov.io/gh/google/gts
[david-image]: https://david-dm.org/google/gts.svg
[david-url]: https://david-dm.org/google/gts
[gts-image]: https://img.shields.io/badge/code%20style-google-blueviolet.svg
[gts-url]: https://github.com/google/gts
[npm-image]: https://img.shields.io/npm/v/gts.svg
[npm-url]: https://npmjs.org/package/gts
[snyk-image]: https://snyk.io/test/github/google/gts/badge.svg
[snyk-url]: https://snyk.io/test/github/google/gts
[standardjs-url]: https://www.npmjs.com/package/standard
[eslint-url]: https://eslint.org/

---
_Source: https://npm.io/package/fx-style · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
