Skip to content

Commit ea133bb

Browse files
authored
Enable eslint naming-convention rule (#93)
1 parent 52fc856 commit ea133bb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.changeset/small-beds-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Enable eslint naming-convention rule with camelCase, UPPER_CASE and PascalCase

.eslintrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
"rules": {
77
"simple-import-sort/imports": "error",
88
"simple-import-sort/exports": "error",
9-
"@typescript-eslint/array-type": ["error", { "default": "array" }]
9+
"@typescript-eslint/array-type": ["error", { "default": "array" }],
10+
"@typescript-eslint/naming-convention": [
11+
"error",
12+
{
13+
"selector": "default",
14+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
15+
"leadingUnderscore": "allow"
16+
}
17+
]
1018
},
1119
"ignorePatterns": ["__fixtures__"]
1220
}

0 commit comments

Comments
 (0)