Redback-Operations / redback-frontend-web-template

Template repository to centrally manage dependencies and shared code for all front-end web projects.
MIT License
0 stars 32 forks source link

eslint-plugin-project-structure v2.3.1 #13

Open Igorkowalski94 opened 2 months ago

Igorkowalski94 commented 2 months ago

Hey, a new version has been released. Here is the complete migration guide. Many new features and improvements have been added that you might find interesting.

Thank you for supporting the project.

Here is your configuration after the recent changes:

{
  "structure": [
    { "name": "public", "children": [] },
    {
      "name": "src",
      "children": [
        { "name": "main.tsx" },
        { "name": "assets", "children": [] },
        { "name": "vite-env.d.ts" },
        {
          "name": "components",
          "children": [
            {
              "name": "{PascalCase}",
              "children": [
                { "name": "{FolderName}.tsx" },
                { "name": "{FolderName}(.(test|style|stories))?.(tsx|ts)" }
              ]
            }
          ]
        },
        {
          "name": "routes",
          "children": [
            {
              "name": "{PascalCase}",
              "children": [
                { "name": "{FolderName}.tsx" },
                { "name": "{FolderName}(.(test|style|stories))?.(tsx|ts)" }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "templates",
      "children": [
        { "name": "TemplateName.tsx" },
        { "name": "TemplateName.style.(ts|tsx)" },
        { "name": "TemplateName.test.tsx" },
        { "name": "TemplateName.stories.(ts|tsx)" }
      ]
    },
    { "name": "test-mocks", "children": [] },
    { "name": ".eslintrc.json" },
    { "name": ".babelrc" },
    { "name": ".gitignore" },
    { "name": "generate-react-cli.json" },
    { "name": "index.html" },
    { "name": "jest.config.(js|ts)" },
    { "name": "jest.setup.(js|ts)" },
    { "name": "jest.utils.(ts|tsx)" },
    { "name": "LICENSE" },
    { "name": "package.json" },
    { "name": "package-lock.json" },
    { "name": "project-structure.json" },
    { "name": "README.md" },
    { "name": "tsconfig.json" },
    { "name": "tsconfig.node.json" },
    { "name": "vite.config.ts" },
    { "name": "pull_request_template.md" }
  ]
}
doubleedesign commented 2 months ago

Thank you so much for sharing @Igorkowalski94!