Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-350

Apply the same code format and linter for all

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.4
    • None
    • None
    • None
    • DevX 31, DevX 32
    • 3

    Description

      Currently:

      • prettier are applied for vue projects
      • tslint are applied for angular projects
      • eslint are applied for vue, react, template-annotations projects
      • stylelint are not applied

       

      Therefore, our code are not consistent. Therefore, we should make them consistent by applying prettier, eslint, stylelint for all projects.

       

      Reference:
      https://prettier.io/docs/en/integrating-with-linters.html
      https://www.aiimi.com/insights/using-eslint-prettier-and-stylelint-for-insightmakers-front-end
      https://github.com/angular-eslint/angular-eslint#notes-for-eslint-plugin-prettier-users (For Angular)

      Note:
      We should apply all default configs if possible.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                plequoc Phong Le Quoc
                plequoc Phong Le Quoc
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 9d 3.75h
                      9d 3.75h