Skip to content

Commit f6b43d6

Browse files
committed
chore: move to the new repo template
1 parent c9bd14b commit f6b43d6

Some content is hidden

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

67 files changed

+9498
-1739
lines changed

.eslintrc.js

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

.gitignore

Lines changed: 45 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,56 @@
1-
# Windows image file caches
2-
Thumbs.db
3-
ehthumbs.db
4-
5-
# Folder config file
6-
Desktop.ini
7-
8-
# Recycle Bin used on file shares
9-
$RECYCLE.BIN/
10-
11-
# Windows Installer files
12-
*.cab
13-
*.msi
14-
*.msm
15-
*.msp
16-
17-
# Windows shortcuts
18-
*.lnk
19-
20-
# =========================
21-
# Operating System Files
22-
# =========================
23-
24-
# OSX
25-
# =========================
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
/platforms/
5+
6+
# NativeScript Template
7+
*.js.map
8+
!ngcc.config.js
9+
!webpack.config.js
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
2617

18+
# General
2719
.DS_Store
2820
.AppleDouble
2921
.LSOverride
3022
.idea
23+
.cloud
24+
.project
25+
tmp/
26+
package-lock.json
3127

32-
# Thumbnails
33-
._*
34-
35-
# Files that might appear on external disk
36-
.Spotlight-V100
37-
.Trashes
38-
39-
# Directories potentially created on remote AFP share
40-
.AppleDB
41-
.AppleDesktop
42-
Network Trash Folder
43-
Temporary Items
44-
.apdisk
28+
!.eslintrc.js
29+
!.prettierrc.js
4530

46-
bin
47-
obj
48-
build/
49-
.vs
50-
.tscache
51-
*.user
52-
!demo-vue/app/app.js
53-
*.map
54-
!gruntfile.js
55-
node_modules
56-
*.tmp.*
57-
demo*/platforms
58-
lib
59-
!webpack.*.js
60-
!build.esm.js
61-
report
62-
*.log
31+
!e2e/*.js
32+
!detox.config.js
33+
devices.js
6334

6435
*.framework
65-
*.aar
66-
36+
**/*.js.map
37+
src/**/*.js
38+
packages/**/*.js
39+
packages/**/*.d.ts
40+
bin
41+
build
6742
Pods
68-
*.lock
69-
*.xcworkspace
70-
plugin/**/*.d.ts
71-
/plugin/README.md
72-
package-lock.json
73-
/.vscode
74-
/pnpm-lock.yaml
75-
76-
.update_backup
77-
.migration_backup
78-
plugin/**/*js.map
79-
plugin/**/*js
43+
!packages/platforms
44+
/packages/**/*.aar
45+
*.xcuserdatad
46+
/packages/README.md
47+
packages/**/*js.map
48+
packages/**/*js
49+
packages/**/angular/*.json
50+
packages/*.ngsummary.json
51+
packages/*.metadata.json
52+
packages/angular
53+
packages/typings
8054
pnpm-lock.yaml
81-
hooks
55+
56+
/blueprint.md

.gitmodules

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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
node_modules/
3+
plugin/
4+
docs/

.prettierrc

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

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
printWidth: 200,
3+
semi: true,
4+
tabWidth: 4,
5+
trailingComma: 'none',
6+
singleQuote: true
7+
};

.vscode/launch.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch on iOS",
9+
"type": "nativescript",
10+
"request": "launch",
11+
"platform": "ios",
12+
"appRoot": "${workspaceRoot}",
13+
"sourceMaps": true,
14+
"watch": true
15+
},
16+
{
17+
"name": "Attach on iOS",
18+
"type": "nativescript",
19+
"request": "attach",
20+
"platform": "ios",
21+
"appRoot": "${workspaceRoot}",
22+
"sourceMaps": true,
23+
"watch": false
24+
},
25+
{
26+
"name": "Launch on Android",
27+
"type": "nativescript",
28+
"request": "launch",
29+
"platform": "android",
30+
"appRoot": "${workspaceRoot}",
31+
"sourceMaps": true,
32+
"watch": true
33+
},
34+
{
35+
"name": "Attach on Android",
36+
"type": "nativescript",
37+
"request": "attach",
38+
"platform": "android",
39+
"appRoot": "${workspaceRoot}",
40+
"sourceMaps": true,
41+
"watch": false
42+
}
43+
]
44+
}

0 commit comments

Comments
 (0)