Skip to content

Instantly share code, notes, and snippets.

@micalevisk
Last active October 16, 2024 23:41

Revisions

  1. micalevisk revised this gist Aug 11, 2023. 2 changed files with 4 additions and 0 deletions.
    1 change: 1 addition & 0 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,7 @@ You just need to copy the content of `exclude.jsonc` to your `settings.json` fil
    .git*
    .npmrc
    .nvmrc
    .dockerignore
    .eslint*
    .prettier*
    .lintstagedrc*
    3 changes: 3 additions & 0 deletions exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,9 @@
    // NVM
    ".nvmrc": true,

    // Docker
    ".dockerignore": true,

    // ESLint
    ".eslint*": true,
    // Prettier
  2. micalevisk revised this gist Jan 13, 2022. 2 changed files with 2 additions and 0 deletions.
    1 change: 1 addition & 0 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,7 @@ lint-staged.*
    commitlint.config*
    .czrc*
    .nycrc*
    nyc.config*
    ```

    </details>
    1 change: 1 addition & 0 deletions exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,7 @@
    ".czrc*": true,
    // istanbuljs/nyc
    ".nycrc*": true,
    "nyc.config*": true,
    },

    // ...
  3. micalevisk revised this gist Jan 13, 2022. 2 changed files with 3 additions and 0 deletions.
    1 change: 1 addition & 0 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,7 @@ lint-staged.*
    .commit*
    commitlint.config*
    .czrc*
    .nycrc*
    ```

    </details>
    2 changes: 2 additions & 0 deletions exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,8 @@
    "commitlint.config*": true,
    // Commitizen
    ".czrc*": true,
    // istanbuljs/nyc
    ".nycrc*": true,
    },

    // ...
  4. micalevisk revised this gist Jan 12, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    // Configure glob patterns for excluding files and folders.
    // For example, the file Explorer decides which files and folders to show or hide based on this setting.
    // Refer to the `search.exclude` setting to define search specific excludes.
    {
    // ...

    // Configure glob patterns for excluding files and folders.
    // For example, the file Explorer decides which files and folders to show or hide based on this setting.
    // Refer to the `search.exclude` setting to define search specific excludes.
    "files.exclude": {
    // (git)
    ".git*": true,
    @@ -31,4 +31,4 @@
    },

    // ...
    }
    }
  5. micalevisk revised this gist Jan 12, 2022. 2 changed files with 6 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion _README_.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    > This uses the [`files.exclude`](https://code.visualstudio.com/docs/getstarted/settings) setting of [Visual Studio Code](https://code.visualstudio.com)
    You just need to add the content of `exclude.jsonc` to your `settings.json` file.
    You just need to copy the content of `exclude.jsonc` to your `settings.json` file.

    <table>
    <tr>
    6 changes: 5 additions & 1 deletion exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@
    // For example, the file Explorer decides which files and folders to show or hide based on this setting.
    // Refer to the `search.exclude` setting to define search specific excludes.
    {
    // ...

    "files.exclude": {
    // (git)
    ".git*": true,
    @@ -26,5 +28,7 @@
    "commitlint.config*": true,
    // Commitizen
    ".czrc*": true,
    }
    },

    // ...
    }
  6. micalevisk revised this gist Jan 12, 2022. 1 changed file with 22 additions and 2 deletions.
    24 changes: 22 additions & 2 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    You just need to add the content of `exclude.jsonc` to your `settings.json` file.


    <table>
    <tr>
    <th>before</th>
    @@ -13,4 +12,25 @@ You just need to add the content of `exclude.jsonc` to your `settings.json` file
    </td>
    <td valign="top"><img src="https://user-images.githubusercontent.com/13461315/149061323-99a1d91c-4829-4ef8-964f-4d6c9cf3dc05.png" alt="after" /></td>
    </tr>
    </table>
    </table>

    <details>
    <summary>patterns list</summary>

    `grep -Po '(?<=").+(?=": true,)' exclude.jsonc`:

    ```
    .git*
    .npmrc
    .nvmrc
    .eslint*
    .prettier*
    .lintstagedrc*
    lint-staged.*
    .husky*
    .commit*
    commitlint.config*
    .czrc*
    ```

    </details>
  7. micalevisk revised this gist Jan 12, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion exclude.jsonc
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,6 @@
    ".commit*": true,
    "commitlint.config*": true,
    // Commitizen
    ".czrc*": true
    ".czrc*": true,
    }
    }
  8. micalevisk revised this gist Jan 12, 2022. No changes.
  9. micalevisk revised this gist Jan 12, 2022. 1 changed file with 11 additions and 3 deletions.
    14 changes: 11 additions & 3 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,14 @@
    You just need to add the content of `exclude.jsonc` to your `settings.json` file.


    | before | after |
    |-----------|-------|
    ![before](https://user-images.githubusercontent.com/13461315/149061397-68d6f59c-c326-46ec-b3a9-584b0d5b8154.png) | ![after](https://user-images.githubusercontent.com/13461315/149061323-99a1d91c-4829-4ef8-964f-4d6c9cf3dc05.png)
    <table>
    <tr>
    <th>before</th>
    <th>after</th>
    </tr>
    <tr>
    <td valign="top"><img src="https://user-images.githubusercontent.com/13461315/149061397-68d6f59c-c326-46ec-b3a9-584b0d5b8154.png" alt="before" />
    </td>
    <td valign="top"><img src="https://user-images.githubusercontent.com/13461315/149061323-99a1d91c-4829-4ef8-964f-4d6c9cf3dc05.png" alt="after" /></td>
    </tr>
    </table>
  10. micalevisk revised this gist Jan 12, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _README_.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    > This uses the [`files.exclude`](https://code.visualstudio.com/docs/getstarted/settings) setting of [Visual Studio Code](https://code.visualstudio.com)
    You just need to add the content of `exclude.json` to your `settings.json` file.
    You just need to add the content of `exclude.jsonc` to your `settings.json` file.


    | before | after |
  11. micalevisk renamed this gist Jan 12, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  12. micalevisk revised this gist Jan 12, 2022. No changes.
  13. micalevisk created this gist Jan 12, 2022.
    8 changes: 8 additions & 0 deletions _README_.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    > This uses the [`files.exclude`](https://code.visualstudio.com/docs/getstarted/settings) setting of [Visual Studio Code](https://code.visualstudio.com)
    You just need to add the content of `exclude.json` to your `settings.json` file.


    | before | after |
    |-----------|-------|
    ![before](https://user-images.githubusercontent.com/13461315/149061397-68d6f59c-c326-46ec-b3a9-584b0d5b8154.png) | ![after](https://user-images.githubusercontent.com/13461315/149061323-99a1d91c-4829-4ef8-964f-4d6c9cf3dc05.png)
    30 changes: 30 additions & 0 deletions exclude.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    // Configure glob patterns for excluding files and folders.
    // For example, the file Explorer decides which files and folders to show or hide based on this setting.
    // Refer to the `search.exclude` setting to define search specific excludes.
    {
    "files.exclude": {
    // (git)
    ".git*": true,

    // NPM
    ".npmrc": true,

    // NVM
    ".nvmrc": true,

    // ESLint
    ".eslint*": true,
    // Prettier
    ".prettier*": true,
    // Lint Staged
    ".lintstagedrc*": true,
    "lint-staged.*": true,
    // Huky
    ".husky*": true,
    // Commitlint
    ".commit*": true,
    "commitlint.config*": true,
    // Commitizen
    ".czrc*": true
    }
    }