forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prettier formatting for www (apache#29768)
* Add prettier formatter for www * Ignore markdown as formatted by eslint * Fix CI * Update CONTRIBUTING.rst
- Loading branch information
1 parent
df4abcb
commit 0db38ad
Showing
169 changed files
with
6,634 additions
and
4,964 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -641,7 +641,7 @@ repos: | |
language: node | ||
files: ^airflow/www/.*\.(css|sass|scss)$ | ||
# Keep dependency versions in sync w/ airflow/www/package.json | ||
additional_dependencies: ['[email protected]', '[email protected]'] | ||
additional_dependencies: ['[email protected]', '[email protected]', '[email protected]'] | ||
- id: compile-www-assets | ||
name: Compile www assets | ||
language: node | ||
|
@@ -877,10 +877,10 @@ repos: | |
additional_dependencies: ['rich>=12.4.4'] | ||
pass_filenames: false | ||
files: ^tests/.*\.py$ | ||
- id: ts-compile-and-lint-javascript | ||
name: TS types generation and ESLint against current UI files | ||
- id: ts-compile-format-lint-www | ||
name: TS types generation and ESLint/Prettier against current UI files | ||
language: node | ||
'types_or': [javascript, ts, tsx, yaml] | ||
'types_or': [javascript, ts, tsx, yaml, css, json] | ||
files: ^airflow/www/static/js/|^airflow/api_connexion/openapi/v1\.yaml$ | ||
entry: ./scripts/ci/pre_commit/pre_commit_www_lint.py | ||
additional_dependencies: ['[email protected]'] | ||
|
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
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,5 @@ | ||
.mypy_cache/ | ||
templates/**/*.html | ||
dist/ | ||
*.md | ||
*.yaml |
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,10 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"tabWidth": 2 | ||
} | ||
} | ||
] | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"] | ||
} |
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
Oops, something went wrong.