feat: 01 - First React app setup with Vite

This commit is contained in:
2026-05-04 10:51:51 +05:30
commit 9a9f830194
4266 changed files with 997642 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
"use strict";
module.exports = function ({ plugins }) {
const isArrayOfStrings = typeof plugins[0] === "string";
return `
A config object has a "plugins" key defined as an array${isArrayOfStrings ? " of strings" : ""}. It looks something like this:
{
"plugins": ${JSON.stringify(plugins)}
}
Flat config requires "plugins" to be an object, like this:
{
plugins: {
${isArrayOfStrings && plugins[0] ? plugins[0] : "namespace"}: pluginObject
}
}
Please see the following page for information on how to convert your config object into the correct format:
https://eslint.org/docs/latest/use/configure/migration-guide#import-plugins-and-custom-parsers
If you're using a shareable config that you cannot rewrite in flat config format, then use the compatibility utility:
https://eslint.org/docs/latest/use/configure/migration-guide#use-eslintrc-configs-in-flat-config
`;
};