How to configure Laravel Pint to use two spaces instead of the tabs

84 Views Asked by At

How to configure Laravel Pint to use two spaces instead of the tabs?

I tried multiple stuff in my pint.json file here is the example containing some of them:

{
  "preset": "laravel",
  "exclude": [
    "bootstrap/cache",
    "frontend",
    "node_modules",
    "vendor",
    "storage"
  ],
  "rules": {
    "array_indentation": true,
    "phpdoc_indent": true,
    "statement_indentation": true,
    "method_chaining_indentation": true,
    "whitespace_after_comma_in_array": {
      "ensure_single_space": true
    },
    "indentation_type": "space"
  },
  "indent_style": "space",
  "indent_size": 2,
  "indent_with_tabs": false,
  "indent": "  "
}
0

There are 0 best solutions below