ESLint configuration for Typeform front-end projects
yarn add eslint @typeform/eslint-config --devThis 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 typeformConfigOr extend it with your own rules:
import typeformConfig from '@typeform/eslint-config'
export default [
...typeformConfig,
{
rules: {
// Your custom rules
}
}
]And run with:
yarn eslint . --fixThis package is written in TypeScript and requires building before use:
# Install dependencies
yarn install
# Build TypeScript
yarn build
# Run tests
yarn test
# Lint
yarn lintThe prepare script automatically builds the package after yarn install.