Skip to content

Commit 9ec4fec

Browse files
committed
chore: use node 14, upgrade deps and config
1 parent c56a5c6 commit 9ec4fec

25 files changed

+1912
-1156
lines changed

.babelrc.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
module.exports = function (api) {
22
const plugins = [
33
'@babel/plugin-transform-flow-strip-types',
4-
'@babel/plugin-syntax-dynamic-import',
54
'@babel/plugin-proposal-class-properties',
6-
'@babel/plugin-proposal-export-default-from',
7-
'@babel/plugin-proposal-export-namespace-from',
8-
'@babel/plugin-proposal-object-rest-spread',
95
]
106
const presets = [
117
[
128
'@babel/preset-env',
139
api.env('es5')
1410
? { forceAllTransforms: true }
15-
: { targets: { node: 'current' } },
11+
: { targets: { node: '12' } },
1612
],
1713
'@babel/preset-flow',
1814
]

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:12.16
5+
- image: circleci/node:14
66

77
steps:
88
- checkout

.eslintrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"extends": [
33
"@jedwards1211/eslint-config","@jedwards1211/eslint-config-flow", "eslint-config-prettier"
44
],
5-
"parser": "babel-eslint",
65
"parserOptions": {
7-
"ecmaVersion": 6,
6+
"ecmaVersion": 2019,
87
"sourceType": "module"
98
},
109
"env": {
11-
"es6": true
10+
"es2017": true
1211
}
1312
}

.flowconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@
1313
[libs]
1414

1515
[options]
16-
module.system=node
17-
esproposal.class_static_fields=enable
18-
esproposal.class_instance_fields=enable
19-
well_formed_exports=true
20-
types_first=true

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
coverage
2-
.nyc_output
1+
/coverage
2+
/.nyc_output
33
node_modules
4-
lib
5-
es
4+
/lib
5+
/es
66
.eslintcache
7-
/*.js
8-
/*.js.flow
7+
*.js
8+
*.js.flow
9+
!/src/**/*.js
10+
!/test/**/*.js
911
!/.babelrc.js

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
**
22
!**/*.js
33
!**/*.js.flow
4+
!**/*.d.ts
45
!/*.md
5-
!yarn.lock
66
/src
77
/test
88
/coverage
99
/flow-typed
1010
__tests__
1111
/.*
12-
!/.flowconfig
Lines changed: 12 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 6b3e411701babc2e6f6520580da2616a
2-
// flow-typed version: <<STUB>>/@commitlint/cli_v^5.2.5/flow_v0.61.0
1+
// flow-typed signature: 9a34abf4a0002985fcc07915460f635b
2+
// flow-typed version: <<STUB>>/@commitlint/cli_v^11.0.0/flow_v0.143.1
33

44
/**
55
* This is an autogenerated libdef stub for:
@@ -22,115 +22,38 @@ declare module '@commitlint/cli' {
2222
* require those files directly. Feel free to delete any files that aren't
2323
* needed.
2424
*/
25-
declare module '@commitlint/cli/fixtures/empty/commitlint.config' {
25+
declare module '@commitlint/cli/cli' {
2626
declare module.exports: any;
2727
}
2828

29-
declare module '@commitlint/cli/fixtures/extends-root/extended' {
30-
declare module.exports: any;
31-
}
32-
33-
declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config' {
34-
declare module.exports: any;
35-
}
36-
37-
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config' {
38-
declare module.exports: any;
39-
}
40-
41-
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' {
42-
declare module.exports: any;
43-
}
44-
45-
declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config' {
46-
declare module.exports: any;
47-
}
48-
49-
declare module '@commitlint/cli/fixtures/parser-preset/parser-preset' {
50-
declare module.exports: any;
51-
}
52-
53-
declare module '@commitlint/cli/fixtures/signoff/commitlint.config' {
54-
declare module.exports: any;
55-
}
56-
57-
declare module '@commitlint/cli/fixtures/simple/commitlint.config' {
29+
declare module '@commitlint/cli/lib/cli-error' {
5830
declare module.exports: any;
5931
}
6032

6133
declare module '@commitlint/cli/lib/cli' {
6234
declare module.exports: any;
6335
}
6436

65-
declare module '@commitlint/cli/lib/cli.test' {
66-
declare module.exports: any;
67-
}
68-
69-
declare module '@commitlint/cli/lib/help' {
70-
declare module.exports: any;
71-
}
72-
73-
declare module '@commitlint/cli/src/cli' {
74-
declare module.exports: any;
75-
}
76-
77-
declare module '@commitlint/cli/src/cli.test' {
78-
declare module.exports: any;
79-
}
80-
81-
declare module '@commitlint/cli/src/help' {
37+
declare module '@commitlint/cli/lib/types' {
8238
declare module.exports: any;
8339
}
8440

8541
// Filename aliases
86-
declare module '@commitlint/cli/fixtures/empty/commitlint.config.js' {
87-
declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'>;
88-
}
89-
declare module '@commitlint/cli/fixtures/extends-root/extended.js' {
90-
declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'>;
91-
}
92-
declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' {
93-
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'>;
94-
}
95-
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' {
96-
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>;
97-
}
98-
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' {
99-
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>;
100-
}
101-
declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config.js' {
102-
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'>;
103-
}
104-
declare module '@commitlint/cli/fixtures/parser-preset/parser-preset.js' {
105-
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'>;
106-
}
107-
declare module '@commitlint/cli/fixtures/signoff/commitlint.config.js' {
108-
declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'>;
109-
}
110-
declare module '@commitlint/cli/fixtures/simple/commitlint.config.js' {
111-
declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'>;
42+
declare module '@commitlint/cli/cli.js' {
43+
declare module.exports: $Exports<'@commitlint/cli/cli'>;
11244
}
11345
declare module '@commitlint/cli/index' {
11446
declare module.exports: $Exports<'@commitlint/cli'>;
11547
}
11648
declare module '@commitlint/cli/index.js' {
11749
declare module.exports: $Exports<'@commitlint/cli'>;
11850
}
51+
declare module '@commitlint/cli/lib/cli-error.js' {
52+
declare module.exports: $Exports<'@commitlint/cli/lib/cli-error'>;
53+
}
11954
declare module '@commitlint/cli/lib/cli.js' {
12055
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>;
12156
}
122-
declare module '@commitlint/cli/lib/cli.test.js' {
123-
declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'>;
124-
}
125-
declare module '@commitlint/cli/lib/help.js' {
126-
declare module.exports: $Exports<'@commitlint/cli/lib/help'>;
127-
}
128-
declare module '@commitlint/cli/src/cli.js' {
129-
declare module.exports: $Exports<'@commitlint/cli/src/cli'>;
130-
}
131-
declare module '@commitlint/cli/src/cli.test.js' {
132-
declare module.exports: $Exports<'@commitlint/cli/src/cli.test'>;
133-
}
134-
declare module '@commitlint/cli/src/help.js' {
135-
declare module.exports: $Exports<'@commitlint/cli/src/help'>;
57+
declare module '@commitlint/cli/lib/types.js' {
58+
declare module.exports: $Exports<'@commitlint/cli/lib/types'>;
13659
}

flow-typed/npm/@commitlint/config-conventional_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 211481ade58a5d1b48d157e08d068cc3
2-
// flow-typed version: <<STUB>>/@commitlint/config-conventional_v^5.2.3/flow_v0.61.0
1+
// flow-typed signature: 2bf85954b2f8e045350ae8342f86cbc2
2+
// flow-typed version: <<STUB>>/@commitlint/config-conventional_v^11.0.0/flow_v0.143.1
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 7be3f328e60a5bb311c142ba0bf1e16d
2-
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config-flow_v^1.0.0/flow_v0.61.0
1+
// flow-typed signature: 96e95672a8479aaf556c03d9e58bc958
2+
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config-flow_v^3.0.0/flow_v0.143.1
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 6be0a15102c7305fbc30e7744c9e0e60
2-
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config_v^1.0.0/flow_v0.61.0
1+
// flow-typed signature: 0aa06c4e27f7ffc928e3deeaeb373387
2+
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config_v^2.0.2/flow_v0.143.1
33

44
/**
55
* This is an autogenerated libdef stub for:

0 commit comments

Comments
 (0)