Skip to content

Commit 6f57fd4

Browse files
committed
chore: hoist license eslint rule to top
1 parent fce826e commit 6f57fd4

File tree

5 files changed

+39
-34
lines changed

5 files changed

+39
-34
lines changed
File renamed without changes.

first-gen/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"error",
155155
{
156156
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
157-
"templateFile": "first-gen/config/license.js"
157+
"templateFile": "config/license.js"
158158
}
159159
],
160160
"sort-imports": [

first-gen/packages/.eslintrc.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -142,48 +142,30 @@
142142
"@spectrum-web-components",
143143
"import"
144144
],
145-
"root": true,
146145
"rules": {
147-
"import/no-extraneous-dependencies": [
148-
"error",
149-
{
150-
"devDependencies": false,
151-
"optionalDependencies": false,
152-
"peerDependencies": false
153-
}
154-
],
155-
"no-debugger": 2,
156-
"no-console": [
157-
"error",
158-
{
159-
"allow": ["warn", "error"]
160-
}
161-
],
146+
"@spectrum-web-components/document-active-element": ["error"],
162147
"@spectrum-web-components/prevent-argument-names": [
163148
"error",
164149
["e", "ev", "evt", "err"]
165150
],
166-
"@spectrum-web-components/document-active-element": ["error"],
167-
"notice/notice": [
168-
"error",
169-
{
170-
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
171-
"templateFile": "first-gen/config/license.js"
172-
}
173-
],
174151
"@typescript-eslint/explicit-function-return-type": [
175152
1,
176153
{
177154
"allowExpressions": true
178155
}
179156
],
180-
"sort-imports": [
157+
"@typescript-eslint/no-unused-vars": [
181158
"error",
182159
{
183-
"ignoreCase": true,
184-
"ignoreDeclarationSort": true,
185-
"ignoreMemberSort": false,
186-
"allowSeparatedGroups": false
160+
"argsIgnorePattern": "^_"
161+
}
162+
],
163+
"import/no-extraneous-dependencies": [
164+
"error",
165+
{
166+
"devDependencies": false,
167+
"optionalDependencies": false,
168+
"peerDependencies": false
187169
}
188170
],
189171
"lit-a11y/click-events-have-key-events": [
@@ -201,10 +183,27 @@
201183
]
202184
}
203185
],
204-
"@typescript-eslint/no-unused-vars": [
186+
"no-console": [
205187
"error",
206188
{
207-
"argsIgnorePattern": "^_"
189+
"allow": ["warn", "error"]
190+
}
191+
],
192+
"no-debugger": 2,
193+
"notice/notice": [
194+
"error",
195+
{
196+
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
197+
"templateFile": "config/license.js"
198+
}
199+
],
200+
"sort-imports": [
201+
"error",
202+
{
203+
"allowSeparatedGroups": false,
204+
"ignoreCase": true,
205+
"ignoreDeclarationSort": true,
206+
"ignoreMemberSort": false
208207
}
209208
]
210209
}

first-gen/tools/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"error",
3636
{
3737
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
38-
"templateFile": "first-gen/config/license.js"
38+
"templateFile": "config/license.js"
3939
}
4040
],
4141
"@typescript-eslint/explicit-function-return-type": [

second-gen/.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
"import",
114114
"simple-import-sort"
115115
],
116-
"root": true,
117116
"rules": {
118117
"@spectrum-web-components/prevent-argument-names": [
119118
"error",
@@ -143,6 +142,13 @@
143142
}
144143
],
145144
"no-debugger": 2,
145+
"notice/notice": [
146+
"error",
147+
{
148+
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
149+
"templateFile": "../../../config/license.js"
150+
}
151+
],
146152
"simple-import-sort/imports": [
147153
"error",
148154
{

0 commit comments

Comments
 (0)