Skip to content

Commit 3825adb

Browse files
committed
fix: add eslintrc files for check naming convention
1 parent 037b6ce commit 3825adb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"rules": {
3+
"id-match": [
4+
"error",
5+
"^\\$\\$$|^[_$]?[_$]?[a-z][a-z0-9]*(?:_[a-z]+)*(?:_\\d+)?$|^[A-Z][A-Z0-9]*(?:_[A-Z][A-Z0-9]*)*(?:_\\d+)?$|^(?:[A-Z][a-z0-9]*)+(?:_\\d+)?$",
6+
{
7+
"onlyDeclarations": true
8+
}
9+
]
10+
}
11+
}

packages/svelte/src/.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"rules": {
3+
"id-match": [
4+
"error",
5+
"^\\$\\$$|^[_$]?[_$]?[a-z][a-z0-9]*(?:_[a-z]+)*(?:_\\d+)?$|^[A-Z][A-Z0-9]*(?:_[A-Z][A-Z0-9]*)*(?:_\\d+)?$|^(?:[A-Z][a-z0-9]*)+(?:_\\d+)?$",
6+
{
7+
"onlyDeclarations": true
8+
}
9+
]
10+
}
11+
}

0 commit comments

Comments
 (0)