Skip to content

Commit 5c8d5c8

Browse files
committed
feat: move to @nativescript-community/https
1 parent 2a1bc45 commit 5c8d5c8

36 files changed

+3355
-3320
lines changed

.classpath

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="src/platforms/android/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
10+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
11+
<classpathentry kind="output" path="bin/default"/>
12+
</classpath>

.eslintrc.js

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
module.exports = {
2+
extends: ['plugin:prettier/recommended'],
3+
plugins: ['prettier', '@typescript-eslint'],
4+
parser: '@typescript-eslint/parser',
5+
parserOptions: {
6+
createDefaultProgram: true,
7+
project: './tsconfig.json',
8+
},
9+
rules: {
10+
'prettier/prettier': 'warn',
11+
'@typescript-eslint/adjacent-overload-signatures': 'error',
12+
'@typescript-eslint/array-type': 'error',
13+
'@typescript-eslint/await-thenable': 'error',
14+
'@typescript-eslint/ban-types': 'off',
15+
'@typescript-eslint/class-name-casing': 'off',
16+
'@typescript-eslint/consistent-type-assertions': 'error',
17+
'@typescript-eslint/consistent-type-definitions': 'error',
18+
'@typescript-eslint/explicit-member-accessibility': [
19+
'off',
20+
{
21+
accessibility: 'explicit',
22+
},
23+
],
24+
'@typescript-eslint/indent': [
25+
'error',
26+
4,
27+
{
28+
FunctionDeclaration: {
29+
parameters: 'first',
30+
},
31+
FunctionExpression: {
32+
parameters: 'first',
33+
},
34+
SwitchCase: 1,
35+
},
36+
],
37+
'@typescript-eslint/interface-name-prefix': 'off',
38+
'@typescript-eslint/member-delimiter-style': 'error',
39+
'@typescript-eslint/member-ordering': 'off',
40+
'@typescript-eslint/no-empty-function': 'off',
41+
'@typescript-eslint/no-empty-interface': 'off',
42+
'@typescript-eslint/no-explicit-any': 'off',
43+
'@typescript-eslint/no-floating-promises': 'off',
44+
'@typescript-eslint/no-inferrable-types': 'off',
45+
'@typescript-eslint/no-misused-new': 'off',
46+
'@typescript-eslint/no-namespace': 'off',
47+
'@typescript-eslint/no-parameter-properties': 'off',
48+
'@typescript-eslint/no-require-imports': 'off',
49+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
50+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
51+
'@typescript-eslint/no-use-before-declare': 'off',
52+
'@typescript-eslint/no-var-requires': 'off',
53+
'@typescript-eslint/prefer-for-of': 'off',
54+
'@typescript-eslint/prefer-function-type': 'error',
55+
'@typescript-eslint/prefer-namespace-keyword': 'error',
56+
'@typescript-eslint/quotes': [
57+
'error',
58+
'single',
59+
{
60+
avoidEscape: true,
61+
},
62+
],
63+
'@typescript-eslint/semi': ['error'],
64+
'@typescript-eslint/space-within-parens': ['off', 'never'],
65+
'@typescript-eslint/triple-slash-reference': 'off',
66+
'@typescript-eslint/type-annotation-spacing': 'error',
67+
'@typescript-eslint/unified-signatures': 'error',
68+
'arrow-body-style': 'error',
69+
'arrow-parens': ['off', 'as-needed'],
70+
camelcase: 'off',
71+
'capitalized-comments': 'off',
72+
complexity: 'off',
73+
'constructor-super': 'error',
74+
curly: ['error', 'multi-line'],
75+
'dot-notation': 'off',
76+
'eol-last': 'error',
77+
eqeqeq: ['error', 'smart'],
78+
'guard-for-in': 'off',
79+
'id-blacklist': ['error', 'any', 'string', 'boolean', 'Undefined'],
80+
'id-match': 'error',
81+
'sort-imports': [
82+
'error',
83+
{
84+
ignoreCase: false,
85+
ignoreDeclarationSort: true,
86+
ignoreMemberSort: false,
87+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
88+
},
89+
],
90+
'linebreak-style': 'off',
91+
'max-classes-per-file': 'off',
92+
'max-len': [
93+
'off',
94+
{
95+
ignorePattern: '^import |^export {(.*?)}',
96+
code: 200,
97+
},
98+
],
99+
'new-parens': 'off',
100+
'newline-per-chained-call': 'off',
101+
'no-bitwise': 'off',
102+
'no-caller': 'error',
103+
'no-cond-assign': 'off',
104+
'no-console': [
105+
'off',
106+
{
107+
allow: [
108+
'log',
109+
'warn',
110+
'dir',
111+
'timeLog',
112+
'assert',
113+
'clear',
114+
'count',
115+
'countReset',
116+
'group',
117+
'groupEnd',
118+
'table',
119+
'debug',
120+
'dirxml',
121+
'error',
122+
'groupCollapsed',
123+
'Console',
124+
'profile',
125+
'profileEnd',
126+
'timeStamp',
127+
'context',
128+
],
129+
},
130+
],
131+
'no-constant-condition': 'error',
132+
'no-control-regex': 'off',
133+
'no-debugger': 'error',
134+
'no-duplicate-imports': 'error',
135+
'no-empty': 'off',
136+
'no-eval': 'off',
137+
'no-extra-semi': 'off',
138+
'no-fallthrough': 'error',
139+
'no-invalid-regexp': 'error',
140+
'no-invalid-this': 'off',
141+
'no-irregular-whitespace': 'off',
142+
'no-multiple-empty-lines': 'off',
143+
'no-new-wrappers': 'error',
144+
'no-redeclare': ['error', { builtinGlobals: false }],
145+
'no-regex-spaces': 'error',
146+
'no-return-await': 'error',
147+
'no-shadow': [
148+
'off',
149+
{
150+
hoist: 'all',
151+
},
152+
],
153+
'no-throw-literal': 'error',
154+
'no-trailing-spaces': 'error',
155+
'no-undef-init': 'error',
156+
'no-underscore-dangle': 'off',
157+
'no-unsafe-finally': 'error',
158+
'no-unused-expressions': [
159+
'error',
160+
{
161+
allowTaggedTemplates: true,
162+
allowShortCircuit: true,
163+
},
164+
],
165+
'no-unused-labels': 'error',
166+
'no-var': 'error',
167+
'object-shorthand': 'error',
168+
'one-var': ['off', 'never'],
169+
'prefer-arrow/prefer-arrow-functions': 'off',
170+
'prefer-const': 'error',
171+
'quote-props': 'off',
172+
radix: 'error',
173+
'space-before-function-paren': 'off',
174+
'use-isnan': 'error',
175+
'valid-typeof': 'off',
176+
},
177+
};

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.gitignore

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
1-
.vscode
21
.idea
3-
.DS_Store
4-
*.history
5-
*.esm.json
6-
*.js
7-
*.js.map
8-
*.log
9-
src/*.d.ts
10-
!src/index.d.ts
11-
!src/references.d.ts
12-
!src/scripts/*.js
13-
!seed-tests/*.js
14-
seed-tests/seed-copy/**/*.*
15-
seed-tests/seed-copy-new-git-repo/**/*.*
16-
!demo/karma.conf.js
17-
!demo/webpack.config.js
18-
!demo/app/tests/*.js
19-
demo/*.d.ts
20-
!demo/references.d.ts
21-
demo/lib
22-
demo/platforms
2+
.vscode
233
node_modules
24-
publish/src
25-
publish/package
26-
demo/report/report.html
27-
demo/report/stats.json
28-
*.aar
29-
/src/pnpm-lock.yaml
4+
platforms
5+
hooks
306
package-lock.json
31-
/package
32-
*.tgz
7+
.DS_Store
8+
npm-debug.log.*
9+
demo*/app/**/*.js
10+
demo*/typings
11+
*.framework
12+
**/*.js.map
13+
src/**/*.js
14+
plugin/**/*.js
15+
plugin/**/*.d.ts
16+
bin
17+
build
18+
Pods
19+
!plugin/platforms
20+
/plugin/platforms/android/*.aar
21+
*.xcuserdatad
22+
/plugin/README.md
23+
plugin/**/*js.map
24+
plugin/**/*js
25+
pnpm-lock.yaml

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 200,
3+
"semi": true,
4+
"tabWidth": 4,
5+
"singleQuote": true
6+
}

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
### clean up typings
3+
4+
* regexp: ```/export class .*?JNI {(.|[\r\n])*?}//```
5+
* regexp: ```/export module .*? {([\t\r\n])*?}//``` twice
6+
* regexp: ```/declare module com {([\t\r\n])*?}/```
7+
8+
## ios typings
9+
10+
run in the demo app
11+
```
12+
TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios --bundle
13+
```
14+
15+
### clean up typings
16+
17+
* regexp: ```/description\(\): string;//```
18+
* regexp: ```/hash\(\): number;//```
19+
* regexp: ```/var:/variant:/```

0 commit comments

Comments
 (0)