Skip to content

Commit 05fe4e7

Browse files
committed
chore: project
1 parent f184494 commit 05fe4e7

File tree

7 files changed

+41
-4
lines changed

7 files changed

+41
-4
lines changed

.eslintrc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ module.exports = {
33
plugins: ['prettier', '@typescript-eslint'],
44
parser: '@typescript-eslint/parser',
55
parserOptions: {
6-
createDefaultProgram: true,
7-
project: './tsconfig.json',
6+
ecmaVersion: 2019,
7+
sourceType: 'module',
8+
parser: '@typescript-eslint/parser',
9+
project: 'tsconfig.eslint.json',
10+
warnOnUnsupportedTypeScriptVersion: false,
11+
tsconfigRootDir: __dirname
812
},
913
rules: {
1014
'prettier/prettier': 'warn',

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"printWidth": 200,
33
"semi": true,
44
"tabWidth": 4,
5-
"singleQuote": true
5+
"singleQuote": true,
6+
"trailingComma": "none"
67
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.0",
44
"scripts": {
55
"setup": "ts-patch install",
6+
"prepare": "npm run setup",
67
"build.angular": "ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json",
78
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json plugin/README.md demo/node_modules demo-angular/node_modules",
89
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",

tsconfig.doc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"sourceRoot": null,
5+
"sourceMap": false,
6+
"noEmitOnError": false,
7+
"plugins": []
8+
},
9+
"include": ["src/*.ts"],
10+
"exclude": ["**/*android*", "**/*ios*"]
11+
}

tsconfig.eslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
3+
"extends": "./tsconfig.json",
4+
"include": ["**/*", ".eslintrc.js", "app.webpack.config.js"]
5+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"plugins": [{ "transform": "./node_modules/@nativescript/webpack/transformers/ns-transform-native-classes", "type": "raw" }]
3333
},
34-
"include": ["src/**/*", "./references.d.ts"],
34+
"include": ["src/**/*", "./references.d.ts", "tsconfig.eslint.json"],
3535
"exclude": ["node_modules", "platforms", "src/angular/**/*"],
3636
"compileOnSave": false
3737
}

typedoc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
mode: 'modules',
3+
out: 'docs',
4+
exclude: ['**/node_modules/**', '**/*.spec.ts'],
5+
excludePrivate: true,
6+
ignoreCompilerErrors: true,
7+
excludeNotExported: true,
8+
includeDeclarations: true,
9+
excludePrivate: true,
10+
preserveConstEnums: 'true',
11+
excludeExternals: true,
12+
tsconfig: 'tsconfig.doc.json',
13+
'external-modulemap': 'src/([\\w\\-_]+)/',
14+
readme: 'README.md',
15+
};

0 commit comments

Comments
 (0)