Skip to content

Commit c439d25

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat: migrate to typescript
verdaccio/verdaccio#1166
1 parent 04601a5 commit c439d25

25 files changed

+290
-6822
lines changed

plugins/local-storage/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": [["@verdaccio", {"flow": true, "node": "11"}]]
2+
"presets": [["@verdaccio", {"typescript": true}]]
33
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules
22
coverage/
33
lib/
4-
.nyc_output
54
tests-report/
6-
flow-typed/
7-
__fixtures__/
5+
__fixtures__/
6+
.idea/
7+
**/node_modules/**
8+
**/__*-fixtures__/**

plugins/local-storage/.eslintrc

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"plugins": [
3+
"jest",
4+
"prettier",
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"google",
10+
"plugin:jest/recommended",
11+
"plugin:prettier/recommended"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"sourceType": "module",
16+
"ecmaVersion": 7,
17+
"ecmaFeatures": {
18+
"impliedStrict": true,
19+
"jsx": true
20+
}
21+
},
22+
"env": {
23+
"node": true,
24+
"es6": true,
25+
"jest": true
26+
},
27+
"rules": {
28+
"prettier/prettier": ["error", { "singleQuote": true }],
29+
"@typescript-eslint/camelcase": 0,
30+
"no-tabs": 0,
31+
"keyword-spacing": 0,
32+
"padded-blocks": 0,
33+
"no-useless-escape": 0,
34+
"handle-callback-err": 2,
35+
"no-debugger": 2,
36+
"no-fallthrough": 2,
37+
"curly": 2,
38+
"eol-last": 1,
39+
"no-irregular-whitespace": 1,
40+
"no-mixed-spaces-and-tabs": [
41+
1,
42+
"smart-tabs"
43+
],
44+
"no-trailing-spaces": 1,
45+
"no-new-require": 2,
46+
"no-undef": 2,
47+
"no-unreachable": 2,
48+
"no-unused-vars": [
49+
2,
50+
{
51+
"vars": "all",
52+
"args": "none"
53+
}
54+
],
55+
"max-len": [
56+
1,
57+
160
58+
],
59+
"semi": [
60+
2,
61+
"always"
62+
],
63+
"camelcase": 0,
64+
"require-jsdoc": 0,
65+
"valid-jsdoc": 0,
66+
"prefer-spread": 1,
67+
"prefer-rest-params": 1,
68+
"no-var": 2,
69+
"no-constant-condition": 2,
70+
"no-empty": 2,
71+
"guard-for-in": 2,
72+
"no-invalid-this": 2,
73+
"new-cap": 2,
74+
"one-var": 2,
75+
"no-console": [
76+
2,
77+
{
78+
"allow": [
79+
"warn"
80+
]
81+
}
82+
]
83+
}
84+
}

plugins/local-storage/.eslintrc.yml

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

plugins/local-storage/.flowconfig

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

plugins/local-storage/flow-typed/npm/http-errors_v1.x.x.js

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

0 commit comments

Comments
 (0)