Licence
LGPL-3.0-only
Version
7.1.0
Deps
14
Size
37 kB
Vulns
0
Weekly
0
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.