diff --git a/base/CHANGELOG.md b/base/CHANGELOG.md index ed13565..81d1559 100644 --- a/base/CHANGELOG.md +++ b/base/CHANGELOG.md @@ -1,5 +1,11 @@ # Change log +## v0.31.0 + +### Non-breaking changes + +- Allow `_` as a variable name. + ## v0.30.0 ### Breaking changes diff --git a/base/index.js b/base/index.js index dda6204..7059f19 100644 --- a/base/index.js +++ b/base/index.js @@ -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', { @@ -113,6 +114,10 @@ module.exports = { { selector: 'variable', format: ['camelCase', 'PascalCase', 'UPPER_CASE'], + filter: { + regex: '^_$', + match: false, + }, }, ], '@typescript-eslint/no-confusing-void-expression': 'error', @@ -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',