Convert ESLint config to flat config format#21
Conversation
…rmat Co-authored-by: fvdm <93784+fvdm@users.noreply.github.com>
|
@copilot Run the test again that required the firewall changes |
Tests ran successfully - network access to www.googleapis.com is now working. ESLint with the new flat config shows 0 errors (1 pre-existing warning about unused eslint-disable directive in example.js). The API tests reach Google's servers now but fail due to missing/invalid API key (expected without |
|
@copilot I have updated the 'dotest' dev dep for better ESLint v9 support. Please re-run your tests. Also I think the dev dep changes in the package.json are now no longer needed. |
… in dotest) Co-authored-by: fvdm <93784+fvdm@users.noreply.github.com>
Tests re-run with dotest 2.14.2 - ESLint works correctly with the flat config. Removed |
ESLint 9 requires the new flat config format. The old
.eslintrcJSON format is no longer supported.Changes
eslint.config.jsusing flat config structure with@eslint/jsandglobalspackages.eslintrc(deprecated format)no-spaced-func→func-call-spacinghandle-callback-err,no-catch-shadow,no-native-reassign,newline-after-var,no-reserved-keys,no-wrap-funcConfig structure
Note: No additional devDependencies needed -
@eslint/jsandglobalsare now provided bydotest.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.