Skip to content

Commit 7bee58a

Browse files
committed
chore: move to new repo template
1 parent c6935e1 commit 7bee58a

Some content is hidden

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

70 files changed

+20659
-434
lines changed

.eslintrc.js

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

.gitignore

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,56 @@
1-
.idea
2-
.vscode
3-
node_modules
4-
platforms
5-
hooks
6-
package-lock.json
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*
17+
18+
# General
719
.DS_Store
8-
npm-debug.log.*
9-
demo*/app/**/*.js
10-
demo*/typings
20+
.AppleDouble
21+
.LSOverride
22+
.idea
23+
.cloud
24+
.gradle
25+
.project
26+
.yarn
27+
tmp/
28+
29+
!.eslintrc.js
30+
!.prettierrc.js
31+
32+
!e2e/*.js
33+
!detox.config.js
34+
devices.js
35+
1136
*.framework
1237
**/*.js.map
1338
src/**/*.js
14-
plugin/**/*.js
15-
plugin/**/*.d.ts
39+
packages/**/*.js
40+
packages/**/*.d.ts
1641
bin
1742
build
1843
Pods
19-
!plugin/platforms
20-
/plugin/platforms/android/nativescript_*.aar
44+
!packages/platforms
45+
/packages/**/*.aar
2146
*.xcuserdatad
22-
/plugin/README.md
47+
/packages/README.md
48+
packages/**/*js.map
49+
packages/**/*js
50+
packages/**/angular/*.json
51+
packages/*.ngsummary.json
52+
packages/*.metadata.json
53+
packages/angular
54+
packages/typings
2355

24-
plugin/**/*js.map
25-
plugin/**/*js
26-
pnpm-lock.yaml
56+
/blueprint.md

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "demo-vue"]
2+
path = demo-vue
3+
url = https://github.com/nativescript-community/plugin-seed-demo-vue.git
4+
[submodule "tools"]
5+
path = tools
6+
url = https://github.com/nativescript-community/plugin-seed-tools.git

.npmrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
shamefully-hoist=true
2+
public-hoist-pattern[]=*eslint*
3+
public-hoist-pattern[]=source-map-support
4+
public-hoist-pattern[]=ts-patch
5+
public-hoist-pattern[]=typescript
6+
public-hoist-pattern[]=cpy-cli
7+
strict-peer-dependencies=false
8+
shell-emulator=true
9+
auto-install-peers=false
10+
loglevel=error
11+
engine-strict=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+
};

.travis.yml

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

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nmHoistingLimits: workspaces
2+
3+
nodeLinker: node-modules
4+
5+
yarnPath: tools/.yarn/releases/yarn-3.3.1.cjs

0 commit comments

Comments
 (0)