Vercel's engineering style guide
MPL-2.0 License
Bot releases are visible (Hide)
@typescript-eslint/*
dependencies (#102) (dd7004d)>=18.18
(#97) (4efc908)@next/eslint-plugin-next@canary
as peer dep (#89) (55508ac)vitest
config (#96) (325b65a)jest/require-top-level-describe
(#93) (e09a147)no-await-in-loop
(#95) (2b0ce9d)react/jsx-sort-props
(#87) (0088457)no-return-await
(#94) (1ea97f4)eslint-plugin-playwright
(#98) (4b89216)@typescript-eslint/*
enabled rules and configuration.eslint-plugin-playwright
have changed.no-await-in-loop
has been removed.no-return-await
is deprecated and has been removed.jest/require-top-level-describe
has been removed.Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 8 months ago
Published by vercel-release-bot 9 months ago
Published by vercel-release-bot 11 months ago
Published by vercel-release-bot 12 months ago
Published by vercel-release-bot about 1 year ago
Published by vercel-release-bot about 1 year ago
Published by vercel-release-bot about 1 year ago
import/no-extraneous-dependencies
(b81ebaa), closes #42
@typescript-eslint/require-array-sort-compare
(c55c6fc), closes #61
allowExpressions
in @typescript-eslint/explicit-function-return-type
(6b4214f), closes #51
eslint-comments/require-description
(ec761d9), closes #26
react/no-unknown-property
(2a4bd0e), closes #52
jest-react
config (8f612e0)playwright/recommended
(85f8b18)@typescript-eslint/*
and recommended configs (8c4c673), closes #66
sort
on non-string arrays. This change applies to TypeScript only.import/no-extraneous-dependencies
now checks internal modules and type-only imports.react/no-unknown-property
has been enabled as it provides a useful auto-fix for SVG properties.@typescript-eslint/*@6.x
may have have enabled additional rules.@testing-library/react
have been moved to a new jest-react
config, which extends the jest
config.eslint-plugin-playwright
.For eslint-comments/require-description
, we've created this example script - which you can modify. It appends a placeholder comment to eslint-disable
directives without comments.
#!/bin/bash
# find all .js files in the current directory and all subdirectories
find . -type f \( -name '*.js' -o -name '*.ts' \) ! -path "*/node_modules/*" | while read file
do
### Use sed to modify strings
sed -i '' -E '/--/!s|^( *// eslint-disable.*)$|\1 -- [@vercel/style-guide@5 migration]|' "$file"
done
Co-authored-by: Vu Van Dung [email protected]
Published by vercel-release-bot about 1 year ago
import/no-extraneous-dependencies
(b81ebaa), closes #42
@typescript-eslint/require-array-sort-compare
(c55c6fc), closes #61
allowExpressions
in @typescript-eslint/explicit-function-return-type
(6b4214f), closes #51
eslint-comments/require-description
(ec761d9), closes #26
react/no-unknown-property
(2a4bd0e), closes #52
jest-react
config (8f612e0)playwright/recommended
(85f8b18)@typescript-eslint/*
and recommended configs (8c4c673), closes #66
sort
on non-string arrays. This change applies to TypeScript only.import/no-extraneous-dependencies
now checks internal modules and type-only imports.react/no-unknown-property
has been enabled as it provides a useful auto-fix for SVG properties.@typescript-eslint/*@6.x
may have have enabled additional rules.@testing-library/react
have been moved to a new jest-react
config, which extends the jest
config.eslint-plugin-playwright
.Co-authored-by: Vu Van Dung [email protected]