Skip to content

Commit

Permalink
feat: migrate to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent e140ee9 commit caffcd5
Show file tree
Hide file tree
Showing 22 changed files with 2,271 additions and 2,162 deletions.
12 changes: 1 addition & 11 deletions plugins/audit/.babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"presets": [
["env", {
"targets": {
"node": "6"
}
}],
"flow"
],
"plugins": [
"transform-async-to-generator"
]
"presets": [["@verdaccio", {"typescript": true}]]
}
50 changes: 50 additions & 0 deletions plugins/audit/.circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2
jobs:
lint:
docker:
- image: circleci/node:10
steps:
- checkout
- run: yarn install --no-progress --registry https://registry.verdaccio.org --no-lockfile
- run: yarn lint
- run: yarn build

test_11:
docker:
- image: circleci/node:11
steps:
- checkout
- run: yarn install --no-progress
- run: yarn test

test_10:
docker:
- image: circleci/node:10
steps:
- checkout
- run: yarn install --no-progress
- run: yarn test

test_8:
docker:
- image: circleci/node:8
steps:
- checkout
- run: yarn install --no-progress
- run: yarn test
- run: yarn coverage

workflows:
version: 2
build_and_test:
jobs:
- lint
- test_11:
requires:
- lint
- test_10:
requires:
- lint
- test_8:
requires:
- lint
2 changes: 0 additions & 2 deletions plugins/audit/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
node_modules
coverage/
lib/
.nyc_output
tests-report/
flow-typed/
fixtures/
10 changes: 5 additions & 5 deletions plugins/audit/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"plugins": [
"flowtype",
"jest",
"prettier"
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"google",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
Expand All @@ -27,6 +26,7 @@
},
"rules": {
"prettier/prettier": ["error", { "singleQuote": true }],
"@typescript-eslint/camelcase": 0,
"no-tabs": 0,
"keyword-spacing": 0,
"padded-blocks": 0,
Expand Down Expand Up @@ -73,7 +73,7 @@
"new-cap": 2,
"one-var": 2,
"no-console": [
1,
2,
{
"allow": [
"warn"
Expand Down
11 changes: 0 additions & 11 deletions plugins/audit/.flowconfig

This file was deleted.

2 changes: 0 additions & 2 deletions plugins/audit/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ tests-report/
yarn-error.log
yarn.lock
.idea/
.flowconfig
flow-typed/
.eslintrc
.babelrc
test/
Expand Down
41 changes: 0 additions & 41 deletions plugins/audit/flow-typed/npm/body-parser_v1.x.x.js

This file was deleted.

32 changes: 0 additions & 32 deletions plugins/audit/flow-typed/npm/compression_vx.x.x.js

This file was deleted.

Loading

0 comments on commit caffcd5

Please sign in to comment.