Skip to content

Commit 50c6c0d

Browse files
committed
chore: move to new repo style!
1 parent b8beda8 commit 50c6c0d

File tree

137 files changed

+3616
-1223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+3616
-1223
lines changed

.eslintignore

Whitespace-only changes.

.eslintrc.js

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

.gitmodules

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[submodule "demo-react"]
2+
path = demo-react
3+
url = [email protected]:nativescript-community/plugin-seed-demo-react.git
4+
[submodule "demo-svelte"]
5+
path = demo-svelte
6+
url = [email protected]:nativescript-community/plugin-seed-demo-svelte.git
7+
[submodule "demo-ng"]
8+
path = demo-ng
9+
url = [email protected]:nativescript-community/plugin-seed-demo-ng.git
10+
[submodule "demo-vue"]
11+
path = demo-vue
12+
url = [email protected]:nativescript-community/plugin-seed-demo-vue.git
13+
[submodule "tools"]
14+
path = tools
15+
url = [email protected]:nativescript-community/plugin-seed-tools.git

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
node_modules/
3+
plugin/
4+
docs/

builddoc.mjs

-54
This file was deleted.

demo-ng

Submodule demo-ng added at 0081ce7

demo-react

Submodule demo-react added at e15bdaa

demo-snippets/app.scss

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
.mdi {
2+
font-family: $mdi-fontFamily;
3+
}
4+
5+
label {
6+
color: black;
7+
.ns-dark & {
8+
color: red;
9+
}
10+
}
11+
mdbutton,
12+
MDFloatingActionButton,
13+
MDCardView {
14+
shape: cut;
15+
}
16+
// page {
17+
// background-color: black;
18+
// }
19+
20+
.falseFAb {
21+
elevation: 6;
22+
font-size: 26;
23+
border-radius: 28;
24+
width: 56;
25+
height: 56;
26+
margin: 16;
27+
}
28+
bottomnavigationbar {
29+
active-color: #1b1edb;
30+
inactive-color: #683131;
31+
background-color: #ddd;
32+
badge-color: green;
33+
badge-text-color: yellow;
34+
}
35+
36+
.buttonYellow {
37+
background-color: yellow;
38+
}
39+
40+
.item-with-border {
41+
height: 50;
42+
border-bottom-color: green;
43+
border-bottom-width: 2;
44+
}
45+
46+
.cardviewtest {
47+
border-color: green;
48+
border-width: 4;
49+
border-radius: 20;
50+
ripple-color: blue;
51+
elevation: 5;
52+
background-color: lightgray;
53+
}
54+
55+
.cardView {
56+
margin: 20;
57+
border-radius: 2;
58+
elevation: 2;
59+
dynamic-elevation-offset: 5;
60+
ripple-color: red;
61+
background-color: white;
62+
}
63+
64+
.md-textfield-outline {
65+
floating-color: blue;
66+
floating-inactive-color: yellow;
67+
stroke-color: green;
68+
stroke-inactive-color: red;
69+
placeholder-color: #757575;
70+
}
71+
72+
MDTabs {
73+
/* color: gold; */
74+
}
75+
76+
MDTabContentItem.special {
77+
color: green;
78+
}
79+
80+
MDTabStrip {
81+
color: skyblue;
82+
selected-item-color: brown;
83+
// un-selected-item-color: orange;
84+
highlight-color: yellow;
85+
background-color: green;
86+
}
87+
88+
MDTabStripItem.special {
89+
color: teal;
90+
}
91+
92+
MDTabStripItem.nested {
93+
color: teal;
94+
}
95+
96+
MDTabStripItem:highlighted {
97+
background-color: red;
98+
color: purple;
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<FlexboxLayout
2+
padding="24"
3+
flexDirection="column"
4+
justifyContent="space-around"
5+
alignItems="center"
6+
>
7+
<MDActivityIndicator busy="true"></MDActivityIndicator>
8+
<MDActivityIndicator
9+
color="red"
10+
busy="true"
11+
></MDActivityIndicator>
12+
<MDActivityIndicator
13+
width="30"
14+
busy="true"
15+
></MDActivityIndicator>
16+
<MDActivityIndicator
17+
width="50"
18+
busy="true"
19+
></MDActivityIndicator>
20+
<MDActivityIndicator
21+
width="100"
22+
busy="true"
23+
></MDActivityIndicator>
24+
</FlexboxLayout>

0 commit comments

Comments
 (0)