Skip to content

Commit ac537b2

Browse files
Dependency Update. (#89)
Dependency Update.
2 parents c699208 + 07cc78a commit ac537b2

File tree

9 files changed

+1395
-2075
lines changed

9 files changed

+1395
-2075
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ cache:
66
notifications:
77
email: false
88
node_js:
9-
- "12"
9+
- "node"
10+
- "lts/*"
1011
- "10"
11-
- "8"
1212
env:
1313
- TSVERSION=next
1414
- TSVERSION=latest

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/jonaskello/eslint-plugin-functional/compare/v2.0.0...HEAD)
99

10+
### Commits
11+
12+
- **Breaking change:** build(dep): update all dependencies [`cae4c49`](https://github.com/jonaskello/eslint-plugin-functional/commit/cae4c49bdf3cd0845e399819046941fa4d2ee13f)
13+
1014
## [v2.0.0](https://github.com/jonaskello/eslint-plugin-functional/compare/v1.0.3...v2.0.0) - 2019-12-29
1115

1216
### Merged

package.json

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@
3434
"LICENSE",
3535
"README.md"
3636
],
37+
"exports": {
38+
"import": "./lib/index.mjs",
39+
"require": "./lib/index.js",
40+
"default": "./lib/index.js"
41+
},
3742
"main": "lib/index.js",
38-
"module": "lib/index.mjs",
3943
"scripts": {
4044
"build": "yarn rimraf lib && yarn compile",
4145
"build-tests": "yarn rimraf build && yarn compile-tests",
@@ -64,45 +68,45 @@
6468
"./{src,tests}/**/*.{ts}": "eslint"
6569
},
6670
"dependencies": {
67-
"@typescript-eslint/experimental-utils": "^1.11.0",
68-
"array.prototype.flatmap": "^1.2.1",
69-
"deepmerge": "^3.3.0",
71+
"@typescript-eslint/experimental-utils": "^2.15.0",
72+
"array.prototype.flatmap": "^1.2.3",
73+
"deepmerge": "^4.2.2",
7074
"escape-string-regexp": "^2.0.0"
7175
},
7276
"devDependencies": {
7377
"@types/dedent": "^0.7.0",
74-
"@types/eslint": "^4.16.6",
75-
"@types/estree": "^0.0.39",
78+
"@types/eslint": "^6.1.3",
79+
"@types/estree": "^0.0.42",
7680
"@types/glob": "^7.1.1",
77-
"@types/jest": "^24.0.15",
78-
"@types/node": "^8.10.49",
79-
"@typescript-eslint/eslint-plugin": "^2.3.1",
80-
"@typescript-eslint/parser": "^2.3.1",
81-
"babel-eslint": "^10.0.2",
82-
"codecov": "^3.5.0",
81+
"@types/jest": "^24.0.25",
82+
"@types/node": "^13.1.6",
83+
"@typescript-eslint/eslint-plugin": "^2.15.0",
84+
"@typescript-eslint/parser": "^2.15.0",
85+
"babel-eslint": "^10.0.3",
86+
"codecov": "^3.6.1",
8387
"dedent": "^0.7.0",
84-
"eslint": "^6.5.0",
85-
"eslint-config-prettier": "^6.0.0",
86-
"eslint-plugin-eslint-plugin": "^2.1.0",
87-
"eslint-plugin-import": "^2.18.2",
88-
"eslint-plugin-jest": "^22.7.1",
89-
"eslint-plugin-jsdoc": "^15.5.3",
90-
"eslint-plugin-prettier": "^3.1.0",
91-
"glob": "^7.1.4",
92-
"husky": "^2.4.1",
93-
"jest": "^24.8.0",
94-
"json-schema": "^0.2.3",
95-
"lint-staged": "^8.2.1",
96-
"prettier": "^1.18.2",
97-
"rimraf": "^2.6.3",
98-
"rollup": "^1.16.2",
99-
"rollup-plugin-commonjs": "^10.0.1",
88+
"eslint": "^6.8.0",
89+
"eslint-config-prettier": "^6.9.0",
90+
"eslint-plugin-eslint-plugin": "^2.2.0",
91+
"eslint-plugin-import": "^2.20.0",
92+
"eslint-plugin-jest": "^23.4.0",
93+
"eslint-plugin-jsdoc": "^20.0.5",
94+
"eslint-plugin-prettier": "^3.1.2",
95+
"glob": "^7.1.6",
96+
"husky": "^4.0.6",
97+
"jest": "^24.9.0",
98+
"json-schema": "^0.2.5",
99+
"lint-staged": "^9.5.0",
100+
"prettier": "^1.19.1",
101+
"rimraf": "^3.0.0",
102+
"rollup": "^1.29.0",
103+
"rollup-plugin-commonjs": "^10.1.0",
100104
"rollup-plugin-json": "^4.0.0",
101-
"rollup-plugin-node-resolve": "^5.1.0",
102-
"rollup-plugin-typescript2": "^0.21.2",
105+
"rollup-plugin-node-resolve": "^5.2.0",
106+
"rollup-plugin-typescript2": "^0.25.3",
103107
"shelljs": "^0.8.3",
104-
"ts-jest": "^24.0.2",
105-
"typescript": "^3.5.2"
108+
"ts-jest": "^24.3.0",
109+
"typescript": "^3.7.4"
106110
},
107111
"peerDependencies": {
108112
"eslint": "^5.0.0 || ^6.0.0",
@@ -112,5 +116,8 @@
112116
"typescript": {
113117
"optional": true
114118
}
119+
},
120+
"engines": {
121+
"node": ">=10.18.0"
115122
}
116123
}

rollup.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ const cjs = {
5454
plugins: [
5555
rollupPluginNodeResolve(),
5656
rollupPluginCommonjs(),
57-
rollupPluginTypescript({
58-
tsconfigOverride: { compilerOptions: { target: "es5" } }
59-
}),
57+
rollupPluginTypescript(),
6058
rollupPluginJSON({
6159
preferConst: true
6260
})
@@ -77,9 +75,7 @@ const esm = {
7775
plugins: [
7876
rollupPluginNodeResolve(),
7977
rollupPluginCommonjs(),
80-
rollupPluginTypescript({
81-
tsconfigOverride: { compilerOptions: { target: "es2017" } }
82-
}),
78+
rollupPluginTypescript(),
8379
rollupPluginJSON({
8480
preferConst: true
8581
})

src/rules/immutable-data.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -224,28 +224,28 @@ function isInChainCallAndFollowsNew(
224224
// Check for: [0, 1, 2]
225225
isArrayExpression(node.object) ||
226226
// Check for: new Array()
227-
((isNewExpression(node.object) &&
227+
(isNewExpression(node.object) &&
228228
isArrayConstructorType(
229229
getTypeOfNode(node.object.callee, context),
230230
assumeArrayTypes,
231231
node.object.callee
232232
)) ||
233-
(isCallExpression(node.object) &&
234-
isMemberExpression(node.object.callee) &&
235-
isIdentifier(node.object.callee.property) &&
236-
// Check for: Array.from(iterable)
237-
((arrayConstructorFunctions.some(
233+
(isCallExpression(node.object) &&
234+
isMemberExpression(node.object.callee) &&
235+
isIdentifier(node.object.callee.property) &&
236+
// Check for: Array.from(iterable)
237+
((arrayConstructorFunctions.some(
238+
isExpected(node.object.callee.property.name)
239+
) &&
240+
isArrayConstructorType(
241+
getTypeOfNode(node.object.callee.object, context),
242+
assumeArrayTypes,
243+
node.object.callee.object
244+
)) ||
245+
// Check for: array.slice(0)
246+
arrayNewObjectReturningMethods.some(
238247
isExpected(node.object.callee.property.name)
239-
) &&
240-
isArrayConstructorType(
241-
getTypeOfNode(node.object.callee.object, context),
242-
assumeArrayTypes,
243-
node.object.callee.object
244-
)) ||
245-
// Check for: array.slice(0)
246-
arrayNewObjectReturningMethods.some(
247-
isExpected(node.object.callee.property.name)
248-
))))
248+
)))
249249
);
250250
}
251251

src/rules/prefer-readonly-type.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ const meta: RuleMetaData<keyof typeof errorMessages> = {
103103
const mutableToImmutableTypes: ReadonlyMap<string, string> = new Map<
104104
string,
105105
string
106-
>([["Array", "ReadonlyArray"], ["Map", "ReadonlyMap"], ["Set", "ReadonlySet"]]);
106+
>([
107+
["Array", "ReadonlyArray"],
108+
["Map", "ReadonlyMap"],
109+
["Set", "ReadonlySet"]
110+
]);
107111

108112
/**
109113
* Check if the given ArrayType or TupleType violates this rule.

tests/common/ignore-options.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { addFilename, createDummyRule } from "../helpers/util";
1212

1313
describe("option: ignore", () => {
1414
describe("ignoreAccessorPattern", () => {
15-
const tests: ReadonlyArray<
16-
TSESLint.ValidTestCase<readonly [boolean, IgnoreAccessorPatternOption]>
17-
> = [
15+
const tests: ReadonlyArray<TSESLint.ValidTestCase<
16+
readonly [boolean, IgnoreAccessorPatternOption]
17+
>> = [
1818
// Exact match.
1919
{
2020
code: dedent`
@@ -145,9 +145,9 @@ describe("option: ignore", () => {
145145
});
146146

147147
describe("ignorePattern", () => {
148-
const assignmentExpressionTests: ReadonlyArray<
149-
TSESLint.ValidTestCase<readonly [boolean, IgnorePatternOption]>
150-
> = [
148+
const assignmentExpressionTests: ReadonlyArray<TSESLint.ValidTestCase<
149+
readonly [boolean, IgnorePatternOption]
150+
>> = [
151151
// Prefix match.
152152
{
153153
code: dedent`
@@ -195,9 +195,9 @@ describe("option: ignore", () => {
195195
})
196196
);
197197

198-
const expressionStatementTests: ReadonlyArray<
199-
TSESLint.ValidTestCase<readonly [boolean, IgnorePatternOption]>
200-
> = [
198+
const expressionStatementTests: ReadonlyArray<TSESLint.ValidTestCase<
199+
readonly [boolean, IgnorePatternOption]
200+
>> = [
201201
{
202202
code: dedent`
203203
const x = 0;`,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"resolveJsonModule": true,
1717
"sourceMap": false,
1818
"strictNullChecks": true,
19-
"target": "esnext",
19+
"target": "es2018",
2020
"outDir": "js_out"
2121
},
2222
"include": ["src/**/*.ts"]

0 commit comments

Comments
 (0)