Skip to content

Commit a790a10

Browse files
committed
chore: address linting workflow feedback
1 parent fd099fd commit a790a10

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"error",
9090
{
9191
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
92-
"templateFile": "config/license.js"
92+
"templateFile": "config/HEADER.js"
9393
}
9494
]
9595
}
@@ -102,7 +102,7 @@
102102
"error",
103103
{
104104
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
105-
"templateFile": "../../../config/license.js"
105+
"templateFile": "config/HEADER.js"
106106
}
107107
]
108108
}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ jobs:
122122
level: error
123123
reporter: github-pr-review
124124
filter_mode: diff_context
125-
eslint_flags: '--config .eslintrc.json ${{ needs.changed_files.outputs.eslint_added_files }} ${{ needs.changed_files.outputs.eslint_modified_files }}'
125+
eslint_flags: '${{ needs.changed_files.outputs.eslint_added_files }} ${{ needs.changed_files.outputs.eslint_modified_files }}'

1st-gen/packages/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"error",
195195
{
196196
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
197-
"templateFile": "config/license.js"
197+
"templateFile": "config/HEADER.js"
198198
}
199199
],
200200
"sort-imports": [

1st-gen/scripts/css-tools.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ const wrapCSSResult = (content) => {
5858
`;
5959
};
6060

61-
const licensePath = path.resolve(__dirname, '..', 'config', 'license.js');
61+
const headerPath = path.resolve(__dirname, '..', 'config', 'HEADER.js');
6262
let header = '';
63-
if (fs.existsSync(licensePath)) {
64-
header = fs.readFileSync(licensePath, 'utf8');
63+
if (fs.existsSync(headerPath)) {
64+
header = fs.readFileSync(headerPath, 'utf8');
6565
header = header.replace('<%= YEAR %>', new Date().getFullYear());
6666
}
6767

1st-gen/tools/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
"error",
188188
{
189189
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
190-
"templateFile": "config/license.js"
190+
"templateFile": "config/HEADER.js"
191191
}
192192
],
193193
"sort-imports": [
File renamed without changes.

0 commit comments

Comments
 (0)