An open API service indexing awesome lists of open source software.

https://github.com/typeform/eslint-config-typeform

ESLint configuration for Typeform front-end projects
https://github.com/typeform/eslint-config-typeform

product-devex type-library use-nonproduction

Last synced: about 2 months ago
JSON representation

ESLint configuration for Typeform front-end projects

Awesome Lists containing this project

README

          

# eslint-config-typeform

ESLint configuration for [Typeform](https://github.com/Typeform/) front-end projects

## Install

```sh
yarn add eslint @typeform/eslint-config --dev
```

## Usage

This package uses ESLint's flat config format. Create an `eslint.config.js` file with the following content:

```js
import typeformConfig from '@typeform/eslint-config'

export default typeformConfig
```

Or extend it with your own rules:

```js
import typeformConfig from '@typeform/eslint-config'

export default [
...typeformConfig,
{
rules: {
// Your custom rules
},
},
]
```

And run with:

```sh
yarn eslint . --fix
```

## Development

This package is written in TypeScript and requires building before use:

```sh
# Install dependencies
yarn install

# Build TypeScript
yarn build

# Run tests
yarn test

# Lint
yarn lint
```

The `prepare` script automatically builds the package after `yarn install`.