Skip to content

Commit 9e5e4b6

Browse files
authored
Demos: fix eslint warnings (#31329)
1 parent 7d6a9e0 commit 9e5e4b6

149 files changed

Lines changed: 121 additions & 283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,13 @@ jobs:
314314
315315
if [ -f "changed-files.json" ]; then
316316
echo "Running lint-demos on changed files"
317-
CHANGED_DEMOS=$(jq -r '.[].filename' changed-files.json | grep '^apps/demos/Demos/' | sed 's|^apps/demos/||' | tr '\n' ' ')
317+
CHANGED_DEMOS=$(jq -r '.[].filename' changed-files.json \
318+
| grep '^apps/demos/Demos/' \
319+
| sed 's|^apps/demos/||' \
320+
| while read f; do
321+
[ -f "$f" ] && echo "$f"
322+
done \
323+
| tr '\n' ' ')
318324
if [ ! -z "$CHANGED_DEMOS" ]; then
319325
echo "Changed demo files: $CHANGED_DEMOS"
320326
pnpx eslint $CHANGED_DEMOS
@@ -326,46 +332,6 @@ jobs:
326332
pnpm run lint-demos
327333
fi
328334
329-
- name: Run lint on changed demos
330-
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'force all tests')
331-
working-directory: apps/demos
332-
env:
333-
DEBUG: 'eslint:cli-engine,stylelint:standalone'
334-
run: |
335-
pnpx nx lint-non-demos
336-
337-
if [ -f "changed-files.json" ]; then
338-
echo "Running lint-demos on changed files"
339-
CHANGED_DEMOS=$(jq -r '.[].filename' changed-files.json | grep '^apps/demos/Demos/' | sed 's|^apps/demos/||' | tr '\n' ' ')
340-
if [ ! -z "$CHANGED_DEMOS" ]; then
341-
echo "Changed demo files: $CHANGED_DEMOS"
342-
pnpx eslint $CHANGED_DEMOS
343-
else
344-
echo "No demo files changed, skipping lint-demos"
345-
fi
346-
else
347-
echo "changed-files.json not found"
348-
pnpm run lint-demos
349-
fi
350-
351-
- name: Run lint on changed demos
352-
if: github.event_name != 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'force all tests')
353-
working-directory: apps/demos
354-
env:
355-
DEBUG: 'eslint:cli-engine,stylelint:standalone'
356-
run: |
357-
pnpx nx lint-non-demos
358-
359-
if [ -f "changed-files.json" ]; then
360-
echo "Running lint-demos on changed files"
361-
CHANGED_DEMOS=$(jq -r '.[].filename' changed-files.json | grep '^apps/demos/Demos/' | sed 's|^apps/demos/||' | tr '\n' ' ')
362-
if [ ! -z "$CHANGED_DEMOS" ]; then
363-
echo "Changed demo files: $CHANGED_DEMOS"
364-
pnpx eslint $CHANGED_DEMOS
365-
else
366-
echo "No demo files changed, skipping lint-demos"
367-
fi
368-
369335
check_generated_demos:
370336
name: ${{ matrix.name }}
371337
runs-on: ubuntu-22.04

apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
::ng-deep .demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
::ng-deep .demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/AreaSparklines/React/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
.demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/AreaSparklines/ReactJs/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
.demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/AreaSparklines/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const years = ['2010', '2011', '2012'];
4242
.demo-table th {
4343
font-weight: 400;
4444
width: 200px;
45-
padding: 25px 15px 20px 15px;
45+
padding: 25px 15px 20px;
4646
border: 1px solid #c2c2c2;
4747
}
4848

apps/demos/Demos/Charts/AreaSparklines/Vue/RowTemplate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ withDefaults(defineProps<{
7070
.rows-content td {
7171
font-weight: 400;
7272
width: 200px;
73-
padding: 25px 10px 5px 10px;
73+
padding: 25px 10px 5px;
7474
border: 1px solid #c2c2c2;
7575
}
7676

apps/demos/Demos/Charts/AreaSparklines/jQuery/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
.demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
::ng-deep .demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
::ng-deep .demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/BarSparklines/React/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
.demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

apps/demos/Demos/Charts/BarSparklines/ReactJs/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.demo-table td {
1313
font-weight: 400;
1414
width: 200px;
15-
padding: 25px 10px 5px 10px;
15+
padding: 25px 10px 5px;
1616
border: 1px solid #c2c2c2;
1717
}
1818

1919
.demo-table th {
20-
padding: 25px 15px 20px 15px;
20+
padding: 25px 15px 20px;
2121
border: 1px solid #c2c2c2;
2222
}
2323

0 commit comments

Comments
 (0)