style-guide

Vercel's engineering style guide

MPL-2.0 License

Downloads
1.1M
Stars
1.1K
Committers
10

Bot releases are visible (Hide)

style-guide - v4.0.2

Published by vercel-release-bot about 2 years ago

4.0.2 (2022-09-30)

Bug Fixes

  • prettier: update prettier-plugin-packagejson to improve peer deps (8100b30)
style-guide - v4.0.2-canary.1

Published by vercel-release-bot about 2 years ago

4.0.2-canary.1 (2022-09-30)

Bug Fixes

  • prettier: update prettier-plugin-packagejson to improve peer deps (8100b30)
style-guide - v4.0.1

Published by vercel-release-bot about 2 years ago

4.0.1 (2022-09-29)

Bug Fixes

  • eslint: scope jest/unbound-method to TypeScript files only (df8a5f5)
style-guide - v4.0.1-canary.1

Published by vercel-release-bot about 2 years ago

4.0.1-canary.1 (2022-09-29)

Bug Fixes

  • eslint: scope jest/unbound-method to TypeScript files only (df8a5f5)
style-guide - v4.0.0

Published by vercel-release-bot about 2 years ago

4.0.0 (2022-09-29)

Bug Fixes

  • eslint: move to optional peer dependencies (2f4ef76), closes #16

Features

  • eslint: disable @typescript-eslint/prefer-nullish-coalescing (0b2dcea)
  • eslint: add @typescript-eslint/strict (65f2cc9), closes #28
  • eslint: add playwright config (0180600), closes #22
  • eslint: base next on next/recommended (b1cf7b3)
  • eslint: disable react/no-unknown-property (41e2fad)
  • eslint: enable @typescript-eslint/explicit-function-return-type (19e8188)
  • eslint: enable @typescript-eslint/no-redundant-type-constituents (6109def), closes #2
  • eslint: enable import/no-extraneous-dependencies (fb5a84e), closes #37
  • eslint: enable no-constant-binary-expression (911ec00), closes #23
  • eslint: enable react/hook-use-state (b8ce4a0), closes #1
  • eslint: enable react/jsx-no-leaked-render (f2cfc32)
  • eslint: enable react/no-unstable-nested-components (4f8c60f), closes #20
  • eslint: enable unicorn/prefer-node-protocol (eb8deb2), closes #36
  • eslint: enable additional Jest style rules (db9e8ab), closes #29
  • eslint: enforce consistent enum casing (21cc24a), closes #34
  • eslint: prefer jest/unbound-method over @typescript-eslint/unbound-method (b7b3cbc)
  • eslint: remove pre-defined custom jsx-a11y components (82808ab), closes #30
  • eslint: update import/order configuration (e4d92d3), closes #13
  • eslint: update configuration for react/jsx-no-useless-fragment (d1f08d3), closes #24
  • prettier: add prettier-plugin-packagejson (1b41033), closes #4

BREAKING CHANGES

  • eslint: Custom components for jsx-a11y must now be defined in settings.
  • eslint: Explicit function return types are now required in TypeScript files.
  • eslint: The typescript config now extends strict from @typescript-eslint.
  • eslint: Multiple new rules have been enabled (please see above).
  • eslint: You must now define custom components for eslint-plugin-jsx-a11y. For instructions, see: https://github.com/vercel/style-guide#configuring-custom-components-for-jsx-a11y
style-guide - v4.0.0-canary.7

Published by vercel-release-bot about 2 years ago

4.0.0-canary.7 (2022-09-29)

Bug Fixes

  • deps: move pretty-quick to devDependencies (d6b8f68)
style-guide - v4.0.0-canary.6

Published by vercel-release-bot about 2 years ago

4.0.0-canary.6 (2022-09-28)

Features

  • eslint: disable react/no-unknown-property (41e2fad)
  • eslint: improve peer dependencies (a0f6b0e)
style-guide - v4.0.0-canary.5

Published by vercel-release-bot about 2 years ago

4.0.0-canary.5 (2022-09-22)

Bug Fixes

  • eslint: add global to ignored unknown react properties (aba268d)
style-guide - v4.0.0-canary.4

Published by vercel-release-bot about 2 years ago

4.0.0-canary.4 (2022-09-22)

Bug Fixes

  • eslint: disable typescript prefer-nullish-coalescing (0b2dcea)
style-guide - v4.0.0-canary.3

Published by vercel-release-bot about 2 years ago

4.0.0-canary.3 (2022-09-22)

Bug Fixes

  • eslint: add playwright namespace to rules (bb1ec8b)
style-guide - v4.0.0-canary.2

Published by vercel-release-bot about 2 years ago

4.0.0-canary.2 (2022-09-22)

Bug Fixes

  • deps: update pnpm-lock.yaml (a756648)
  • eslint: change playwright-plugin to be an optional dependency (1bb500f)

Features

  • eslint: react/no-unknown-property ignore jsx property (edb6658)
style-guide - v4.0.0-canary.1

Published by vercel-release-bot about 2 years ago

4.0.0-canary.1 (2022-09-21)

Bug Fixes

  • eslint: move to optional peer dependencies (2f4ef76), closes #16

Features

  • eslint: add @typescript-eslint/strict (65f2cc9), closes #28
  • eslint: add playwright config (0180600), closes #22
  • eslint: base next on next/recommended (b1cf7b3)
  • eslint: enable @typescript-eslint/explicit-function-return-type (19e8188)
  • eslint: enable @typescript-eslint/no-redundant-type-constituents (6109def), closes #2
  • eslint: enable import/no-extraneous-dependencies (fb5a84e), closes #37
  • eslint: enable no-constant-binary-expression (911ec00), closes #23
  • eslint: enable react/hook-use-state (b8ce4a0), closes #1
  • eslint: enable react/jsx-no-leaked-render (f2cfc32)
  • eslint: enable react/no-unstable-nested-components (4f8c60f), closes #20
  • eslint: enable unicorn/prefer-node-protocol (eb8deb2), closes #36
  • eslint: enable additional Jest style rules (db9e8ab), closes #29
  • eslint: enforce consistent enum casing (21cc24a), closes #34
  • eslint: prefer jest/unbound-method over @typescript-eslint/unbound-method (b7b3cbc)
  • eslint: remove pre-defined custom jsx-a11y components (82808ab), closes #30
  • eslint: update import/order configuration (e4d92d3), closes #13
  • eslint: update configuration for react/jsx-no-useless-fragment (d1f08d3), closes #24
  • prettier: add prettier-plugin-packagejson (1b41033), closes #4

BREAKING CHANGES

  • eslint: Custom components for jsx-a11y must now be defined in settings.
  • eslint: Explicit function return types are now required in TypeScript files.
  • eslint: Multiple new rules were added/enabled (see above feature changes).
style-guide - v3.0.0

Published by mrmckeb over 2 years ago

3.0.0 (2022-03-29)

Features

  • deps: upgrade all dependencies
  • eslint: add no-implicit-coercion
  • eslint: create separate browser and Node entry points
  • eslint: disable capIsNew for new-cap rule
  • eslint: enable reportUnusedDisableDirectives

BREAKING CHANGES

  • deps: eslint@^8.8.0 and prettier@^2.5.1 are now required.
  • eslint: Two new root configs have replaced the previous root config. ESLint configs that extended @vercel/style-guide/eslint should now extend @vercel/style-guide/eslint/browser or @vercel/style-guide/eslint/node.