diff --git a/ng2-uploader.ts b/ng2-uploader.ts index 4189d07f..9f5ff86b 100644 --- a/ng2-uploader.ts +++ b/ng2-uploader.ts @@ -9,6 +9,6 @@ export * from './src/directives/ng-file-drop'; export default { directives: [NgFileSelect, NgFileDrop], providers: [Ng2Uploader] -} +}; export const UPLOAD_DIRECTIVES: [any] = [NgFileSelect, NgFileDrop]; diff --git a/package.json b/package.json index fdfde49c..140f8b96 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,12 @@ { "name": "ng2-uploader", "description": "Angular2 File Uploader", - "version": "0.5.12", + "version": "0.5.13", "license": "MIT", "main": "ng2-uploader.ts", "author": "Jan Kuri ", "scripts": { "clean": "./scripts/clean.sh", - "lint": "tslint \"src/**/*.ts\"", "dev": "tsc --watch", "prepublish": "tsc" }, @@ -33,8 +32,6 @@ "zone.js": "^0.6.12" }, "devDependencies": { - "codelyzer": "0.0.26", - "tslint": "3.14.0", "typescript": "2.0.0" } } diff --git a/scripts/clean.sh b/scripts/clean.sh index c2e482f4..3cba85b3 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -1,5 +1,5 @@ #!/bin/bash -find . -name "*.js" -type f -delete -find . -name "*.js.map" -type f -delete -find . -name "*.d.ts" -type f -delete +find src/ -name "*.js" -type f -delete +find src/ -name "*.js.map" -type f -delete +find src/ -name "*.d.ts" -type f -delete diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 7b13bd17..00000000 --- a/tslint.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "rulesDirectory": [ - "node_modules/codelyzer" - ], - "rules": { - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "curly": true, - "eofline": true, - "forin": true, - "indent": [ - true, - "spaces" - ], - "label-position": true, - "label-undefined": true, - "max-line-length": [ - true, - 140 - ], - "member-access": false, - "member-ordering": [ - true, - "static-before-instance", - "variables-before-functions" - ], - "no-arg": true, - "no-bitwise": true, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, - "no-empty": false, - "no-eval": true, - "no-inferrable-types": true, - "no-shadowed-variable": true, - "no-string-literal": false, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unused-expression": true, - "no-unused-variable": true, - "no-unreachable": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "quotemark": [ - true, - "single" - ], - "radix": true, - "semicolon": [ - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "variable-name": false, - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ], - - "directive-selector-name": [true, "camelCase"], - "component-selector-name": [true, "kebab-case"], - "directive-selector-type": [true, "attribute"], - "component-selector-type": [true, "element"], - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, - "no-input-rename": true, - "no-output-rename": true, - "use-life-cycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true - } -}