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 Aug 13, 2019
1 parent 04601a5 commit c439d25
Show file tree
Hide file tree
Showing 25 changed files with 290 additions and 6,822 deletions.
2 changes: 1 addition & 1 deletion plugins/local-storage/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": [["@verdaccio", {"flow": true, "node": "11"}]]
"presets": [["@verdaccio", {"typescript": true}]]
}
7 changes: 4 additions & 3 deletions plugins/local-storage/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
node_modules
coverage/
lib/
.nyc_output
tests-report/
flow-typed/
__fixtures__/
__fixtures__/
.idea/
**/node_modules/**
**/__*-fixtures__/**
84 changes: 84 additions & 0 deletions plugins/local-storage/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"plugins": [
"jest",
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"google",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"node": true,
"es6": true,
"jest": true
},
"rules": {
"prettier/prettier": ["error", { "singleQuote": true }],
"@typescript-eslint/camelcase": 0,
"no-tabs": 0,
"keyword-spacing": 0,
"padded-blocks": 0,
"no-useless-escape": 0,
"handle-callback-err": 2,
"no-debugger": 2,
"no-fallthrough": 2,
"curly": 2,
"eol-last": 1,
"no-irregular-whitespace": 1,
"no-mixed-spaces-and-tabs": [
1,
"smart-tabs"
],
"no-trailing-spaces": 1,
"no-new-require": 2,
"no-undef": 2,
"no-unreachable": 2,
"no-unused-vars": [
2,
{
"vars": "all",
"args": "none"
}
],
"max-len": [
1,
160
],
"semi": [
2,
"always"
],
"camelcase": 0,
"require-jsdoc": 0,
"valid-jsdoc": 0,
"prefer-spread": 1,
"prefer-rest-params": 1,
"no-var": 2,
"no-constant-condition": 2,
"no-empty": 2,
"guard-for-in": 2,
"no-invalid-this": 2,
"new-cap": 2,
"one-var": 2,
"no-console": [
2,
{
"allow": [
"warn"
]
}
]
}
}
113 changes: 0 additions & 113 deletions plugins/local-storage/.eslintrc.yml

This file was deleted.

11 changes: 0 additions & 11 deletions plugins/local-storage/.flowconfig

This file was deleted.

59 changes: 0 additions & 59 deletions plugins/local-storage/flow-typed/npm/http-errors_v1.x.x.js

This file was deleted.

Loading

0 comments on commit c439d25

Please sign in to comment.