Last active
September 7, 2025 11:25
-
-
Save navix/b2559d93b391f211e08af8be13330fe5 to your computer and use it in GitHub Desktop.
Revisions
-
navix revised this gist
Sep 7, 2025 . 1 changed file with 11 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,16 +6,16 @@ Create `.prettierrc` file: ``` { "printWidth": 100, "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "trailingComma": "all", "bracketSpacing": false, "arrowParens": "avoid", "singleAttributePerLine": true, "htmlWhitespaceSensitivity": "ignore", "attributeGroups": [ "$ANGULAR_STRUCTURAL_DIRECTIVE", "$ANGULAR_INPUT", @@ -24,7 +24,15 @@ Create `.prettierrc` file: ], "attributeSort": "ACS", "cssDeclarationSorterOrder": "alphabetical", "plugins": ["prettier-plugin-organize-attributes", "prettier-plugin-css-order"], "overrides": [ { "files": "*.html", "options": { "parser": "angular" } } ] } ``` -
navix revised this gist
Sep 12, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ ``` $ npm i prettier prettier-plugin-css-order prettier-plugin-organize-attributes css-declaration-sorter -D ``` Create `.prettierrc` file: @@ -23,7 +23,7 @@ Create `.prettierrc` file: "$ANGULAR_OUTPUT" ], "attributeSort": "ACS", "cssDeclarationSorterOrder": "alphabetical", "plugins": ["prettier-plugin-organize-attributes", "prettier-plugin-css-order"] } ``` -
navix revised this gist
Aug 23, 2023 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,8 @@ Create `.prettierrc` file: "$ANGULAR_OUTPUT" ], "attributeSort": "ACS", "order": "alphabetical", "plugins": ["prettier-plugin-organize-attributes", "prettier-plugin-css-order"] } ``` -
navix revised this gist
Jul 6, 2023 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,6 +27,20 @@ Create `.prettierrc` file: } ``` Create `.prettierignore`: ``` .angular .vscode dist node_modules .* *.yaml *.sh *.json *.md ``` Add scripts to `package.json`: ``` -
navix revised this gist
Dec 29, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Create `.prettierrc` file: "trailingComma": "all", "bracketSpacing": false, "arrowParens": "avoid", "htmlWhitespaceSensitivity": "ignore", "singleAttributePerLine": true, "attributeGroups": [ "$ANGULAR_STRUCTURAL_DIRECTIVE", -
navix revised this gist
Nov 24, 2022 . 2 changed files with 15 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ ``` $ npm i prettier prettier-plugin-css-order prettier-plugin-organize-attributes -D ``` Create `.prettierrc` file: ``` { "printWidth": 120, "tabWidth": 2, @@ -17,3 +24,11 @@ "attributeSort": "ACS", "order": "alphabetical" } ``` Add scripts to `package.json`: ``` "prettier:check": "npx prettier --check .", "prettier:write": "npx prettier --write ." ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +0,0 @@ -
navix renamed this gist
Nov 24, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
navix created this gist
Nov 24, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ { "printWidth": 120, "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "trailingComma": "all", "bracketSpacing": false, "arrowParens": "avoid", "singleAttributePerLine": true, "attributeGroups": [ "$ANGULAR_STRUCTURAL_DIRECTIVE", "$ANGULAR_INPUT", "$ANGULAR_TWO_WAY_BINDING", "$ANGULAR_OUTPUT" ], "attributeSort": "ACS", "order": "alphabetical" } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ ``` $ npm i prettier prettier-plugin-css-order prettier-plugin-organize-attributes -D ```