Skip to content

Commit 5133db0

Browse files
committed
feat(eslint-config-base,eslint-config-typescript): update naming-convention & no-return-await
1 parent c66f186 commit 5133db0

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.changeset/breezy-beers-rescue.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@smartlook/eslint-config-base': minor
3+
'@smartlook/eslint-config-typescript': minor
4+
---
5+
6+
update rules

packages/eslint/eslint-config-base/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ module.exports = {
7373
'vars-on-top': 'warn',
7474
'no-duplicate-imports': 'off',
7575
'sort-imports': 'off',
76+
'no-return-await': 'error',
77+
7678
/////////////////////////////////
7779
// @eslint-plugin-import rules //
7880
/////////////////////////////////

packages/eslint/eslint-config-typescript/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,13 @@ module.exports = {
193193
{
194194
selector: 'objectLiteralProperty',
195195
modifiers: ['public'],
196-
format: ['camelCase', 'UPPER_CASE'],
196+
format: ['PascalCase', 'snake_case', 'camelCase', 'UPPER_CASE'],
197+
leadingUnderscore: 'allow',
198+
filter: {
199+
regex:
200+
'^(0|[1-9]d*).(0|[1-9]d*).(0|[1-9]d*)|^([0-9]{3})|^([a-zA-Z0-9]*-[a-zA-Z0-9]*)+$',
201+
match: false,
202+
},
197203
},
198204
],
199205
'default-param-last': 'off',

0 commit comments

Comments
 (0)