Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

v33.0.0

Latest
Compare
Choose a tag to compare
@cartogram cartogram released this 20 Nov 14:51
· 52 commits to master since this release

Breaking Change

  • The graphql configs have been pushed to an override for files matching a .graphql extension. This will allow this config to chain together with other parser-setting configs without changing the parser value. Consider the following config:
// .eslintrc
{
  extends: [
    "plugin:shopify/typescript",
    "plugin:shopify/graphql"
  ]
}

Before this change the final parser becomes babel-eslint for all files. This will cause errors when parsing TypeScript files even though we are extending the typescript config :( You could workaround this by moving the plugin:shopify/graphql first in the extends array or lint GraphQL files in a seperate script.

After this change Final parser is babel-eslint for only .graphql files while @typescript-eslint/parser is set for all .ts and .tsx files. This should not cause any parser-related errors :)

New Rules

  • shopify/no-all-mocks-methods (#204)
  • shopify/no-namespace-imports Prevent namespace import declarations. (262)