-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#62] Refer to GitHub issue... This update makes the following changes to the style guide implementations package.json - added babel plugin to fix dependency issues. - added eslint-import-sort and simple-import-sort to sort React imports. - added postcss and postcss-sorting to sort css attributes. - added prettier-jinja-template to read jinja HTML files. - added prettier-organize-attributes to sort HTML attributes. - added stylelint-config-recess-order to lint css attribute orders according to Recess rule. .eslinrc - modified general settings such as root, and env for more accurate implementation. - added simple-import-sort and sort-exports to sort react import and exports. - modified react indent setting to 2 spaces. - modified several eslint rules to "warning" to avoid causing bugs in previously written codes. These warnings are to be fixed in the future if needed. - added import sorting rules based on grouping and then alphabetically sorting. - added exception rules for underscore-dangle to avoid conflicts with Rewire package. prettierrc - added plugin organize-attributes to sort HTML attributes on common convention. - added plugin jinja-template to allow prettier to modify Jinja files properly. - added exception rules for html files and yml files. stylelintrc - added file to modify rules for Stylelint. - added rule selector-class-pattern to avoid causing bugs in previously written codes. These warnings are to be fixed in the future if needed. - added rule font-family-name-quotes to ignore unnecessary font import rules. .vscode/extensions.json - added batisteo.vscode-django to allow formatting Jinja files by changing Jinja HTML to Django HTML. - added monosans.djlint to lint Jinja files. - added samuelcolvin.jinjahtml to read HTML files as Jinja HTML files. - added jota0222.multi-formatter to use multi-formatter, especially to apply prettier first and then django formatter to Jinja HTML files. - added redhat.vscode-yaml to format YAML files. .vscode/settings.json - modified to format html files with Django formatter and css files with postcss. - added css ordering rule to match with Stylelint Recess ordering format. web/package.json - style: edited indents. setup.py - added isort package to sort package imports.
- Loading branch information
1 parent
8cf9f63
commit 673dd75
Showing
10 changed files
with
20,105 additions
and
19,549 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-recess-order"], | ||
"rules": { | ||
"selector-class-pattern": "^([_a-zA-Z][a-zA-Z0-9]*)(-[a-zA-Z0-9]+)*$", | ||
"font-family-name-quotes": null | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
|
||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.autopep8", | ||
"ms-python.flake8", | ||
"ms-python.isort", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"njpwerner.autodocstring" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.autopep8", | ||
"ms-python.flake8", | ||
"ms-python.isort", | ||
|
||
"njpwerner.autodocstring", | ||
|
||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
|
||
"batisteo.vscode-django", | ||
"monosans.djlint", | ||
"samuelcolvin.jinjahtml", | ||
"jota0222.multi-formatter", | ||
|
||
"redhat.vscode-yaml" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
Oops, something went wrong.