Skip to content

Commit 5ddbf45

Browse files
committed
chore: move to new repo template
1 parent 7893231 commit 5ddbf45

File tree

126 files changed

+17240
-1381
lines changed

Some content is hidden

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

126 files changed

+17240
-1381
lines changed

.classpath

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

.eslintrc.js

Lines changed: 1 addition & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -1,177 +1,3 @@
11
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-
},
2+
extends: './tools/.eslintrc.js'
1773
};

.gitattributes

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

.gitignore

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +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/*.aar
44+
!packages/platforms
45+
/packages/**/*.aar
2146
*.xcuserdatad
22-
/plugin/README.md
23-
plugin/**/*js.map
24-
plugin/**/*js
25-
pnpm-lock.yaml
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
55+
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 & 6 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 & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)