-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAA-466 moved mocha plugin stuff to be optional peer dependencies and…
… created a new sparkpost/mocha config to be utilized in tests.
- Loading branch information
beardyman
committed
Jan 26, 2022
1 parent
4cad8cc
commit b13eb13
Showing
6 changed files
with
59 additions
and
1,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased][unreleased] | ||
- There are no unreleased features at this time | ||
|
||
## [3.0.0 - 2022-01-26][3.0.0] | ||
### Added | ||
- Mocha specific config for linting testing. This can be utilized by adding an `.eslintrc` file to your tests directory and extending `sparkpost/mocha` within it. | ||
|
||
### Updated | ||
- Updated the required version of ESLint to be 8.7 or above | ||
|
||
### Removed | ||
- Removed TypeScript(TS) specific rules since they add TS dependencies to non-TS projects. | ||
This will be followed by a TS specific linting config for TS projects that will potentially inherit base JS settings from this configuration. | ||
- Moved Mocha specific plugins to be optional peer dependencies. This allows non-Mocha based projects to not install the Mocha plugins if they're not | ||
needed. This has been replaced with a mocha specific config `sparkpost/mocha` which can be added to an `.eslintrc` file in the tests directory of | ||
Mocha based projects. | ||
|
||
[3.0.0]: https://github.com/sparkpost/eslint-config-sparkpost/compare/v2.1.2...v3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
module.exports = { | ||
env: { | ||
es6: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2021 | ||
}, | ||
plugins: ['mocha'], | ||
extends: ['sparkpost/index'], | ||
rules: { | ||
'max-params': 'off', | ||
'func-names': 'off', | ||
'prefer-arrow-callback': 'off', | ||
'require-jsdoc': 'off', | ||
'valid-jsdoc': 'off', | ||
'mocha/no-exclusive-tests': 'error', | ||
'mocha/no-mocha-arrows': 'error', | ||
'mocha/no-identical-title': 'error', | ||
'mocha/no-sibling-hooks': 'error' | ||
} | ||
} |
Oops, something went wrong.