Skip to content

Typeform/eslint-config-typeform

Repository files navigation

eslint-config-typeform

ESLint configuration for Typeform front-end projects

Install

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:

import typeformConfig from '@typeform/eslint-config'

export default typeformConfig

Or extend it with your own rules:

import typeformConfig from '@typeform/eslint-config'

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

And run with:

yarn eslint . --fix

Development

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

# 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.

About

ESLint configuration for Typeform front-end projects

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors 21