Skip to content

Commit caffcd5

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat: migrate to typescript
1 parent e140ee9 commit caffcd5

22 files changed

+2271
-2162
lines changed

plugins/audit/.babelrc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
{
2-
"presets": [
3-
["env", {
4-
"targets": {
5-
"node": "6"
6-
}
7-
}],
8-
"flow"
9-
],
10-
"plugins": [
11-
"transform-async-to-generator"
12-
]
2+
"presets": [["@verdaccio", {"typescript": true}]]
133
}

plugins/audit/.circleci/config.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: 2
2+
jobs:
3+
lint:
4+
docker:
5+
- image: circleci/node:10
6+
steps:
7+
- checkout
8+
- run: yarn install --no-progress --registry https://registry.verdaccio.org --no-lockfile
9+
- run: yarn lint
10+
- run: yarn build
11+
12+
test_11:
13+
docker:
14+
- image: circleci/node:11
15+
steps:
16+
- checkout
17+
- run: yarn install --no-progress
18+
- run: yarn test
19+
20+
test_10:
21+
docker:
22+
- image: circleci/node:10
23+
steps:
24+
- checkout
25+
- run: yarn install --no-progress
26+
- run: yarn test
27+
28+
test_8:
29+
docker:
30+
- image: circleci/node:8
31+
steps:
32+
- checkout
33+
- run: yarn install --no-progress
34+
- run: yarn test
35+
- run: yarn coverage
36+
37+
workflows:
38+
version: 2
39+
build_and_test:
40+
jobs:
41+
- lint
42+
- test_11:
43+
requires:
44+
- lint
45+
- test_10:
46+
requires:
47+
- lint
48+
- test_8:
49+
requires:
50+
- lint

plugins/audit/.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules
22
coverage/
33
lib/
4-
.nyc_output
54
tests-report/
6-
flow-typed/
75
fixtures/

plugins/audit/.eslintrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"plugins": [
3-
"flowtype",
43
"jest",
5-
"prettier"
4+
"prettier",
5+
"@typescript-eslint"
66
],
77
"extends": [
88
"eslint:recommended",
99
"google",
10-
"plugin:flowtype/recommended",
1110
"plugin:jest/recommended",
1211
"plugin:prettier/recommended"
1312
],
14-
"parser": "babel-eslint",
13+
"parser": "@typescript-eslint/parser",
1514
"parserOptions": {
1615
"sourceType": "module",
1716
"ecmaVersion": 7,
@@ -27,6 +26,7 @@
2726
},
2827
"rules": {
2928
"prettier/prettier": ["error", { "singleQuote": true }],
29+
"@typescript-eslint/camelcase": 0,
3030
"no-tabs": 0,
3131
"keyword-spacing": 0,
3232
"padded-blocks": 0,
@@ -73,7 +73,7 @@
7373
"new-cap": 2,
7474
"one-var": 2,
7575
"no-console": [
76-
1,
76+
2,
7777
{
7878
"allow": [
7979
"warn"

plugins/audit/.flowconfig

Lines changed: 0 additions & 11 deletions
This file was deleted.

plugins/audit/.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ tests-report/
66
yarn-error.log
77
yarn.lock
88
.idea/
9-
.flowconfig
10-
flow-typed/
119
.eslintrc
1210
.babelrc
1311
test/

plugins/audit/flow-typed/npm/body-parser_v1.x.x.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

plugins/audit/flow-typed/npm/compression_vx.x.x.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)