Skip to content

Commit

Permalink
Allow _ as a variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Apr 3, 2024
1 parent 29407ba commit 2763138
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log

## v0.31.0

### Non-breaking changes

- Allow `_` as a variable name.

## v0.30.0

### Breaking changes
Expand Down
6 changes: 6 additions & 0 deletions base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = {
},
],
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-imports': ['error', { fixStyle: 'separate-type-imports' }],
'@typescript-eslint/explicit-function-return-type': [
'error',
{
Expand Down Expand Up @@ -113,6 +114,10 @@ module.exports = {
{
selector: 'variable',
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
filter: {
regex: '^_$',
match: false,
},
},
],
'@typescript-eslint/no-confusing-void-expression': 'error',
Expand Down Expand Up @@ -141,6 +146,7 @@ module.exports = {
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],

// import
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'import/first': 'error',
'import/no-absolute-path': 'error',
'import/no-default-export': 'error',
Expand Down

0 comments on commit 2763138

Please sign in to comment.