Skip to content

Commit 2f35465

Browse files
comatorydimaMachina
andcommitted
fix lint error with custom CSS class (graphql-hive#2300)
* fix lint error with custom CSS class Relates to graphql-hive#2261 - this makes the linter pass all the checks. The issue is that "nextra" is some kind of indirect dependency for the website but two components are using `nextra-scrollbar` CSS class. I fixed this by adding this class to whitelist of the `tailwindcss/no-custom-classname` eslint rule. * add todo comment --------- Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent d91597f commit 2f35465

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.eslintrc.cjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ module.exports = {
9595
'tailwindcss/enforces-negative-arbitrary-values': 'error',
9696
'tailwindcss/enforces-shorthand': 'error',
9797
'tailwindcss/migration-from-tailwind-2': 'error',
98-
'tailwindcss/no-custom-classname': 'error',
98+
'tailwindcss/no-custom-classname': [
99+
'error',
100+
{
101+
// TODO: figure out why there is an error only on CI
102+
whitelist: ['nextra-scrollbar'],
103+
},
104+
],
99105
'react/no-unknown-property': ['error', { ignore: ['jsx', 'global'] }],
100106
},
101107
settings: {

0 commit comments

Comments
 (0)