We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b492d3 commit 750d673Copy full SHA for 750d673
.eslintrc.cjs
@@ -66,6 +66,15 @@ module.exports = {
66
"@typescript-eslint/ban-ts-comment": "off",
67
"@typescript-eslint/no-var-requires": "off",
68
"@typescript-eslint/ban-types": "off",
69
+ "no-restricted-syntax": [
70
+ "error",
71
+ {
72
+ selector:
73
+ "JSXElement[openingElement.name.name=/^(Image|NextImage)$/]:not(:has(JSXAttribute[name.name='placeholder']))",
74
+ message:
75
+ "Pass `placeholder: 'empty' | 'blur'` when calling <Image> or <NextImage>.",
76
+ },
77
+ ],
78
},
79
settings: {
80
tailwindcss: {
0 commit comments