Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
0.2.1 (#27)
Browse files Browse the repository at this point in the history
- Upgrade eslint-plugin-mocha to 7.0.0
- Ignore import/unambiguous errors in @types/**/*.d.ts files.
  • Loading branch information
0xCLARITY authored May 18, 2020
1 parent 884ea1e commit d981406
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
22 changes: 22 additions & 0 deletions packages/eslint-config-base/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

## [Unreleased]

## 0.2.1 - May 18, 2020

- Allow `@types/**/*.d.ts` files to exist without warning.
- Upgrade `eslint-plugin-mocha` to 7.0.0

## 0.2.0 - May 11, 2020

- Bump required version of ESLint to 7.0.0
- Add new rules and options from ESLint 7.0.0
- `default-case-last`
- `no-void`
- `no-useless-backreference`
- `no-restricted-exports`

## 0.1.2 - May 8, 2020

- Disable `@ts-*` comment errors for `*.test.ts` files, where it's reasonable to pass null on purpose
- Allow src/index.ts to export things that are not used
- needed for libraries we build that exports functionality.
- Report on unused ESLint disable directives
- Fix bug in boolean variable naming-convention

## 0.1.1 - May 5, 2020

Literally no changes, just redeployed to NPM.
Expand Down
17 changes: 3 additions & 14 deletions packages/eslint-config-base/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/eslint-config-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript-eslint/parser": "^2.31.0",
"eslint": ">= 7",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-mocha": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-tsdoc": "^0.2.4",
"prettier": "^2.0.5",
Expand All @@ -43,7 +43,7 @@
"eslint": "^7.0.0",
"eslint-find-rules": "^3.4.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-mocha": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-tsdoc": "^0.2.4",
"prettier": "^2.0.5"
Expand Down
8 changes: 7 additions & 1 deletion packages/eslint-config-base/rules/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ module.exports = {
'import/max-dependencies': ['warn', { max: 8 }],
}
},
{
files: ['@types/**/*.d.ts'],
rules: {
// Declaration files could allegedly be parsed as a valid script according to eslint-plugin-import.
'import/unambiguous': 'off',
},
},
{
files: ['test/**/*.test.ts'],
rules: {
Expand All @@ -250,7 +257,6 @@ module.exports = {

// Importing mocha is a side-effecting import
'import/no-unassigned-import': ['error', { allow: ['mocha'] }],

},
},
],
Expand Down

0 comments on commit d981406

Please sign in to comment.