Encountered an error while building module (from ./node_modules/eslint-loader/index.js): Error: .eslintrc.js: Unknown key "es2021" in the environment
at /Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/shared/config-validator.js:169:19
at Array.forEach (<anonymous>)
at validateEnvironment (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/shared/config-validator.js:163:30)
at validateConfigArray (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/shared/config-validator.js:334:9)
at CascadingConfigArrayFactory._finalizeConfigArray (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:417:13)
at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:271:21)
at CLIEngine.isPathIgnored (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/cli-engine/cli-engine.js:951:18)
at CLIEngine.executeOnText (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint/lib/cli-engine/cli-engine.js:868:38)
at lint (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint-loader/index.js:278:17)
at transform (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/eslint-loader/index.js:252:18)
at /Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/loader-fs-cache/index.js:127:18
at ReadFileContext.callback (/Users/artic/Documents/RestroWorld/HRConsultancy/node_modules/loader-fs-cache/index.js:31:14)
at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:314:13)
To suppress warnings, you can use special comments. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.