File tree Expand file tree Collapse file tree
templates/Challenges/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const mapDispatchToProps = {
112112
113113const PaymentButtonsLoader = ( ) => {
114114 return (
115- < div className = ' donation-completion donation-completion-loading' >
115+ < div className = 'donation-completion donation-completion-loading' >
116116 < Spinner
117117 className = 'script-loading-spinner'
118118 fadeIn = 'none'
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export function IndependentLowerJaw({
203203 ref = { submitButtonRef }
204204 >
205205 { t ( 'buttons.submit-continue' ) }
206- < span className = 'tooltiptext left-tooltip ' >
206+ < span className = 'tooltiptext left-tooltip' >
207207 { checkButtonText }
208208 </ span >
209209 </ Button >
@@ -215,7 +215,7 @@ export function IndependentLowerJaw({
215215 onClick = { handleCheckButtonClick }
216216 >
217217 { t ( 'buttons.check-code' ) }
218- < span className = 'tooltiptext left-tooltip ' >
218+ < span className = 'tooltiptext left-tooltip' >
219219 { checkButtonText }
220220 </ span >
221221 </ button >
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import importPlugin from 'eslint-plugin-import';
1212import testingLibraryPlugin from 'eslint-plugin-testing-library' ;
1313import babelParser from '@babel/eslint-parser' ; // TODO: can we get away from using babel?
1414import turbo from 'eslint-plugin-turbo' ;
15+ import htmlReact from '@html-eslint/eslint-plugin-react' ;
1516
1617import { FlatCompat } from '@eslint/eslintrc' ;
1718
@@ -131,7 +132,17 @@ export const configReact = [
131132 compat . extends (
132133 'plugin:react-hooks/recommended' // Note: at time of testing, upgrading to v5 creates false positives
133134 )
134- )
135+ ) ,
136+ {
137+ plugins : {
138+ '@html-eslint/react' : htmlReact
139+ } ,
140+ rules : {
141+ '@html-eslint/react/no-duplicate-classname' : 'error' ,
142+ '@html-eslint/react/classname-spacing' : 'error' ,
143+ '@html-eslint/react/no-ineffective-attrs' : 'error'
144+ }
145+ }
135146] ;
136147
137148export const configTestingLibrary = defineConfig ( {
Original file line number Diff line number Diff line change 1515 "@eslint/compat" : " ^1.2.6" ,
1616 "@eslint/eslintrc" : " ^3.2.0" ,
1717 "@eslint/js" : " ^9.19.0" ,
18+ "@html-eslint/eslint-plugin-react" : " ^0.57.0" ,
1819 "@vitest/eslint-plugin" : " ^1.4.3" ,
1920 "eslint" : " ^9.39.1" ,
2021 "eslint-config-prettier" : " 10.0.1" ,
You can’t perform that action at this time.
0 commit comments