repos:
  -   repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v4.0.1
      hooks:
        -   id: check-yaml
            exclude: |
              (?x)^(
                spec/fixtures/files/.*
              )$
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
  -   repo: https://github.com/pre-commit/mirrors-prettier
      rev: v2.5.1
      hooks:
        - id: prettier
          types_or: [javascript, jsx, css, scss, html]
  -   repo: https://github.com/awebdeveloper/pre-commit-stylelint
      rev: 0.0.2
      hooks:
        - id: stylelint
          additional_dependencies: [
              "stylelint@13.13.1",
              "stylelint-config-sass-guidelines@8.0.0",
              "stylelint-config-prettier@8.0.1",
            ]
          args: ["--fix"]
          types_or: ["css", "scss"]
          exclude: |
            (?x)^(
              app/assets/stylesheets/application.css|
              app/assets/stylesheets/common/_reset.scss
            )$

exclude: vendor

repos:
  -   repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v4.0.1
      hooks:
        -   id: check-yaml
            exclude: |
              (?x)^(
                spec/fixtures/files/.*
              )$
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
  -   repo: https://github.com/pre-commit/mirrors-prettier
      rev: v2.5.1
      hooks:
        - id: prettier
          types_or: [javascript, jsx, css, scss, html]
  -   repo: https://github.com/awebdeveloper/pre-commit-stylelint
      rev: 0.0.2
      hooks:
        - id: stylelint
          additional_dependencies: [
              "stylelint@13.13.1",
              "stylelint-config-sass-guidelines@8.0.0",
              "stylelint-config-prettier@8.0.1",
            ]
          args: ["--fix"]
          types_or: ["css", "scss"]
          exclude: |
            (?x)^(
              app/assets/stylesheets/application.css|
              app/assets/stylesheets/common/_reset.scss
            )$

exclude: vendor

ci:
  autoupdate_schedule: monthly

Set autoupdate schedule to monthly
pre-commit: Set autoupdate schedule to monthly
