eslint-config-uphold 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +8 -7
- package/src/index.js +4 -1
- package/CHANGELOG.md +0 -47
package/README.md
CHANGED
|
@@ -42,3 +42,11 @@ To automatically fix all lint issues, use the `--fix` option:
|
|
|
42
42
|
```sh
|
|
43
43
|
$ npm run lint --fix
|
|
44
44
|
```
|
|
45
|
+
|
|
46
|
+
## Upgrading eslint
|
|
47
|
+
|
|
48
|
+
See the [eslint repo](https://github.com/eslint/eslint#semantic-versioning-policy) for eslint's guidelines on semantic versioning.
|
|
49
|
+
|
|
50
|
+
A [tilde range](https://docs.npmjs.com/cli/v6/using-npm/semver#tilde-ranges-123-12-1) is set for the eslint dependency to pick up any patch changes by default.
|
|
51
|
+
|
|
52
|
+
For any minor/major upgrades to `eslint` it is recommended to update both eslint and `eslint-config-uphold` and keep them in parallel. This is down to the fact that no guarantee is made that minor upgrades do not cause conflicts or issues with existing or new rules. The downside here is a package update is required for any security or other bug fixes. The benefit however is the included rules are always guaranteed to be stable.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-uphold",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Uphold-flavored ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"src"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"changelog": "github-changelog-generator --future-release
|
|
26
|
+
"changelog": "echo \"$(github-changelog-generator --owner uphold --repo eslint-config-uphold --future-release=$npm_package_version)\n$(tail -n +2 CHANGELOG.md)\" > CHANGELOG.md",
|
|
27
27
|
"lint": "eslint src test/index.js",
|
|
28
28
|
"test": "mocha $npm_package_options_mocha",
|
|
29
29
|
"version": "npm run changelog --future-release=$npm_package_version && git add -A CHANGELOG.md"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"babel
|
|
32
|
+
"@babel/core": "^7.16.12",
|
|
33
|
+
"@babel/eslint-parser": "^7.16.5",
|
|
33
34
|
"eslint-config-prettier": "^7.2.0",
|
|
34
35
|
"eslint-plugin-mocha": "^5.3.0",
|
|
35
36
|
"eslint-plugin-prettier": "^3.3.1",
|
|
@@ -38,15 +39,15 @@
|
|
|
38
39
|
"eslint-plugin-sql-template": "^2.0.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@uphold/github-changelog-generator": "^
|
|
42
|
-
"eslint": "
|
|
43
|
-
"mocha": "^
|
|
42
|
+
"@uphold/github-changelog-generator": "^3.0.0",
|
|
43
|
+
"eslint": "~8.7.0",
|
|
44
|
+
"mocha": "^9.2.0",
|
|
44
45
|
"pre-commit": "^1.2.2",
|
|
45
46
|
"prettier": "^2.2.1",
|
|
46
47
|
"should": "^9.0.2"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"eslint": "
|
|
50
|
+
"eslint": "~8.7.0",
|
|
50
51
|
"prettier": "^2.2.1"
|
|
51
52
|
},
|
|
52
53
|
"pre-commit": [
|
package/src/index.js
CHANGED
|
@@ -23,7 +23,10 @@ module.exports = {
|
|
|
23
23
|
node: true
|
|
24
24
|
},
|
|
25
25
|
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
|
26
|
-
parser: 'babel-
|
|
26
|
+
parser: '@babel/eslint-parser',
|
|
27
|
+
parserOptions: {
|
|
28
|
+
requireConfigFile: false
|
|
29
|
+
},
|
|
27
30
|
plugins: ['mocha', 'rulesdir', 'sort-imports-es6', 'sql-template'],
|
|
28
31
|
root: true,
|
|
29
32
|
rules: {
|
package/CHANGELOG.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [v2.0.0](https://github.com/uphold/eslint-config-uphold/releases/tag/v2.0.0) (2021-01-29)
|
|
4
|
-
- Add `files` property to package.json [\#37](https://github.com/uphold/eslint-config-uphold/pull/37) ([Americas](https://github.com/Americas))
|
|
5
|
-
- Bump prettier@2.2.1 [\#36](https://github.com/uphold/eslint-config-uphold/pull/36) ([Americas](https://github.com/Americas))
|
|
6
|
-
- Bump eslint@7.18.0 [\#35](https://github.com/uphold/eslint-config-uphold/pull/35) ([Americas](https://github.com/Americas))
|
|
7
|
-
- Bump ini from 1.3.5 to 1.3.7 [\#32](https://github.com/uphold/eslint-config-uphold/pull/32) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
8
|
-
- Bump node-fetch from 2.6.0 to 2.6.1 [\#31](https://github.com/uphold/eslint-config-uphold/pull/31) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
9
|
-
- Bump lodash from 4.17.15 to 4.17.20 [\#34](https://github.com/uphold/eslint-config-uphold/pull/34) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
10
|
-
- Add `explicit-sinon-use-fake-timers` rule [\#30](https://github.com/uphold/eslint-config-uphold/pull/30) ([nunofgs](https://github.com/nunofgs))
|
|
11
|
-
- Bump dependencies to fix security vulnerabilities [\#28](https://github.com/uphold/eslint-config-uphold/pull/28) ([waldyrious](https://github.com/waldyrious))
|
|
12
|
-
- Bump eslint-utils from 1.3.1 to 1.4.3 [\#25](https://github.com/uphold/eslint-config-uphold/pull/25) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
13
|
-
- Bump acorn from 6.2.0 to 6.4.1 [\#26](https://github.com/uphold/eslint-config-uphold/pull/26) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
14
|
-
- Bump https-proxy-agent from 2.2.2 to 2.2.4 [\#27](https://github.com/uphold/eslint-config-uphold/pull/27) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
15
|
-
|
|
16
|
-
## [v1.0.1](https://github.com/uphold/eslint-config-uphold/releases/tag/v1.0.1) (2019-10-11)
|
|
17
|
-
- Update @uphold/github-changelog-generator@1.0.1 [\#24](https://github.com/uphold/eslint-config-uphold/pull/24) ([rplopes](https://github.com/rplopes))
|
|
18
|
-
- Update @uphold/github-changelog-generator@1.0.0 [\#23](https://github.com/uphold/eslint-config-uphold/pull/23) ([rplopes](https://github.com/rplopes))
|
|
19
|
-
- Update eslint peer dependency [\#22](https://github.com/uphold/eslint-config-uphold/pull/22) ([rplopes](https://github.com/rplopes))
|
|
20
|
-
- Expand README to add more context and links [\#21](https://github.com/uphold/eslint-config-uphold/pull/21) ([waldyrious](https://github.com/waldyrious))
|
|
21
|
-
|
|
22
|
-
## [v1.0.0](https://github.com/uphold/eslint-config-uphold/releases/tag/v1.0.0) (2019-07-25)
|
|
23
|
-
- Remove redundant rules [\#19](https://github.com/uphold/eslint-config-uphold/pull/19) ([rplopes](https://github.com/rplopes))
|
|
24
|
-
- Add peer dependencies [\#20](https://github.com/uphold/eslint-config-uphold/pull/20) ([rplopes](https://github.com/rplopes))
|
|
25
|
-
- Add prettier and replace redundant rules [\#18](https://github.com/uphold/eslint-config-uphold/pull/18) ([rplopes](https://github.com/rplopes))
|
|
26
|
-
- Update eslint@6.0.1 [\#16](https://github.com/uphold/eslint-config-uphold/pull/16) ([rplopes](https://github.com/rplopes))
|
|
27
|
-
- Improve `id-match` [\#14](https://github.com/uphold/eslint-config-uphold/pull/14) ([rplopes](https://github.com/rplopes))
|
|
28
|
-
|
|
29
|
-
## [v0.2.0](https://github.com/uphold/eslint-config-uphold/releases/tag/v0.2.0) (2018-07-16)
|
|
30
|
-
- Add @uphold/github-changelog-generator [\#13](https://github.com/uphold/eslint-config-uphold/pull/13) ([Americas](https://github.com/Americas))
|
|
31
|
-
- Replace drone with travis [\#10](https://github.com/uphold/eslint-config-uphold/pull/10) ([Americas](https://github.com/Americas))
|
|
32
|
-
- Add pre-commit lint hook [\#12](https://github.com/uphold/eslint-config-uphold/pull/12) ([Americas](https://github.com/Americas))
|
|
33
|
-
- Raise minimum node engine requirement to 6 [\#11](https://github.com/uphold/eslint-config-uphold/pull/11) ([Americas](https://github.com/Americas))
|
|
34
|
-
- Fix linting errors [\#9](https://github.com/uphold/eslint-config-uphold/pull/9) ([Americas](https://github.com/Americas))
|
|
35
|
-
- Add new mocha rules [\#8](https://github.com/uphold/eslint-config-uphold/pull/8) ([rplopes](https://github.com/rplopes))
|
|
36
|
-
- Update eslint-plugin-mocha@^5.1.0 [\#7](https://github.com/uphold/eslint-config-uphold/pull/7) ([Americas](https://github.com/Americas))
|
|
37
|
-
|
|
38
|
-
## [v0.1.1](https://github.com/uphold/eslint-config-uphold/releases/tag/v0.1.1) (2018-03-20)
|
|
39
|
-
- Allow computed properties in prefer destructuring [\#5](https://github.com/uphold/eslint-config-uphold/pull/5) ([nunofgs](https://github.com/nunofgs))
|
|
40
|
-
|
|
41
|
-
## [v0.1.0](https://github.com/uphold/eslint-config-uphold/releases/tag/v0.1.0) (2017-12-26)
|
|
42
|
-
- Add `jasmine` and `jest` to eslint environments [\#4](https://github.com/uphold/eslint-config-uphold/pull/4) ([nunofgs](https://github.com/nunofgs))
|
|
43
|
-
|
|
44
|
-
## [v0.0.1](https://github.com/uphold/eslint-config-uphold/releases/tag/v0.0.1) (2017-09-07)
|
|
45
|
-
- Add prefer-destructuring rule [\#2](https://github.com/uphold/eslint-config-uphold/pull/2) ([nunofgs](https://github.com/nunofgs))
|
|
46
|
-
- Replace travis with drone [\#3](https://github.com/uphold/eslint-config-uphold/pull/3) ([franciscocardoso](https://github.com/franciscocardoso))
|
|
47
|
-
- Update eslint@4.4.1 [\#1](https://github.com/uphold/eslint-config-uphold/pull/1) ([nunofgs](https://github.com/nunofgs))
|