v27.0.0
Breaking Changes
-
shopify/jquery-dollar-sign-referencehas been removed. -
The
eslint-commentsruleset has been removed and is now enabled by default as part of core - if you're usinges5,esnext,reactortypescriptthen you can remove the reference toeslint-comments. -
The
ava,mocha,jqueryandlodashrulesets have been removed as these tools are are not commonly used at Shopify. -
The
typescript-reactandtypescript-prettierrulesets have been removed. Replace["plugin:shopify/typescript-react"]with["plugin:shopify/typescript", "plugin:shopify/react"]and replace["plugin:shopify/typescript-prettier"]with["plugin:shopify/prettier"] -
Updated from
eslint-plugin-typescriptto@typescript-eslint/eslint-plugin. If you have any rules defined under thetypescriptnamespace, you will need to change those to use the new@typescript-eslintnamespace.For example:
"rules": { "typescript/restrict-plus-operands": "error" }
Will become:
"rules": { "@typescript-eslint/restrict-plus-operands": "error" }
More information on this change can be found in this eslint blog post.
New rules
shopify/jest/no-if(#232)
Refer to the Rules of Hooks documentation to learn more about the following rules.
'react-hooks/rules-of-hooks': 'error''react-hooks/exhaustive-deps': 'error'
Changed rules
jest/no-vague-titlesaddedeveryanddescriptiveas vague words. (#221)