tailwind-ppx icon indicating copy to clipboard operation
tailwind-ppx copied to clipboard

Add Prettier and/or .editorconfig for formatting

Open dylanirlbeck opened this issue 4 years ago • 2 comments

We have a few JS files in the project with no associated formater/linter, so let's add one.

dylanirlbeck avatar Aug 19 '20 19:08 dylanirlbeck

Would just simple

{
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": false,
    "singleQuote": true
}

with ignoring

*.json
*.css
*.bs.js
*.yml
*.md

and workflow

      - name: format js files
        run: |
          npx prettier --write .
          git add "*.js"

Be fine for you? I'm not sure about the workflow, never used it before

JakubMarkiewicz avatar Sep 24 '20 13:09 JakubMarkiewicz

That should work! My intention is just to format the JS files in workflow/ and js/. If you open a PR and/or test locally that'd be awesome.

dylanirlbeck avatar Sep 25 '20 20:09 dylanirlbeck