@@ -15,6 +15,11 @@ import react from 'eslint-plugin-react'
1515import reactHooks from 'eslint-plugin-react-hooks'
1616import nextPlugin from '@next/eslint-plugin-next'
1717import globals from 'globals'
18+ import noGlobalIsFiniteRule from './eslint-rules/no-global-isfinite.mjs'
19+ import noGlobalIsNaNRule from './eslint-rules/no-global-isnan.mjs'
20+ import noGlobalNaNRule from './eslint-rules/no-global-nan.mjs'
21+ import noGlobalParseFloatRule from './eslint-rules/no-global-parsefloat.mjs'
22+ import noGlobalParseIntRule from './eslint-rules/no-global-parseint.mjs'
1823
1924const __filename = fileURLToPath ( import . meta. url )
2025const __dirname = dirname ( __filename )
@@ -61,6 +66,15 @@ const eslintConfig = [
6166 react,
6267 'jsx-a11y' : jsxA11y ,
6368 '@next/next' : nextPlugin ,
69+ nest : {
70+ rules : {
71+ 'no-global-isfinite' : noGlobalIsFiniteRule ,
72+ 'no-global-isnan' : noGlobalIsNaNRule ,
73+ 'no-global-nan' : noGlobalNaNRule ,
74+ 'no-global-parsefloat' : noGlobalParseFloatRule ,
75+ 'no-global-parseint' : noGlobalParseIntRule ,
76+ } ,
77+ } ,
6478 } ,
6579 settings : {
6680 'import/resolver' : {
@@ -149,6 +163,11 @@ const eslintConfig = [
149163 'jsx-a11y/no-distracting-elements' : 'warn' ,
150164 'jsx-a11y/label-has-associated-control' : 'error' ,
151165 'jsx-a11y/click-events-have-key-events' : 'warn' ,
166+ 'nest/no-global-isfinite' : 'error' ,
167+ 'nest/no-global-isnan' : 'error' ,
168+ 'nest/no-global-nan' : 'error' ,
169+ 'nest/no-global-parsefloat' : 'error' ,
170+ 'nest/no-global-parseint' : 'error' ,
152171 } ,
153172 } ,
154173 {
0 commit comments