Commit 7a1e8610 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Added tslint

parent 27af76b95f16
......@@ -6,6 +6,7 @@
"build": "webpack",
"clean": "rm -rf build/*",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "tslint -p . -c tslint.json 'src/**/*.ts' --fix",
"webpack": "webpack -w",
"webpack:production": "NODE_ENV=production webpack"
},
......@@ -37,6 +38,7 @@
"awesome-typescript-loader": "^5.2.0",
"copy-webpack-plugin": "^4.5.2",
"source-map-loader": "^0.2.3",
"tslint": "^5.11.0",
"typescript": "^2.9.2",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1",
......
......@@ -3,6 +3,7 @@
"outDir": "./dist/",
"sourceMap": true,
"noImplicitAny": true,
"strictNullChecks": true,
"module": "commonjs",
"target": "es6",
"lib": [ "es6", "dom" ],
......
{
"rules": {
"no-internal-module": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"await-promise": true,
"curly": [true, "ignore-same-line"],
"deprecation": true,
"label-position": true,
"no-arg": true,
"no-conditional-assignment": true,
"no-duplicate-imports": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-reference-import": true,
"no-return-await": true,
"no-switch-case-fall-through": true,
"no-unused-expression": [
true,
"allow-fast-null-checks",
"allow-tagged-template"
],
"no-var-keyword": true,
"radix": true,
"space-within-parens": [true, 0],
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"eofline": true,
"no-trailing-whitespace": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"class-name": true,
"comment-format": [true, "check-space"],
"jsdoc-format": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": true,
"no-floating-promises": true,
"no-misused-new": true,
"no-string-throw": true,
"no-unnecessary-qualifier": true,
"no-unnecessary-type-assertion": true,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"quotemark": [true, "double", "avoid-escape", "jsx-double"],
"semicolon": [true, "always"],
"strict-type-predicates": true,
"space-before-function-paren": [true, "never"],
"unified-signatures": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
]
}
}
......@@ -6,6 +6,7 @@
"build": "webpack",
"clean": "rm -rf build/*",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "tslint -p . -c tslint.json 'src/**/*.ts' --fix",
"build:production": "NODE_ENV=production webpack"
},
"main": "./build/index.js",
......@@ -25,6 +26,7 @@
"@types/rdflib": "^0.17.0",
"copy-webpack-plugin": "^4.5.2",
"source-map-loader": "^0.2.3",
"tslint": "^5.11.0",
"ts-loader": "^4.4.2",
"typescript": "^2.9.2",
"webpack": "^4.20.2",
......
......@@ -4,6 +4,7 @@
"sourceMap": true,
"declaration": true,
"noImplicitAny": true,
"strictNullChecks": true,
"module": "commonjs",
"target": "es6",
"lib": [ "es6", "dom" ],
......
{
"rules": {
"no-internal-module": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"await-promise": true,
"curly": [true, "ignore-same-line"],
"deprecation": true,
"label-position": true,
"no-arg": true,
"no-conditional-assignment": true,
"no-duplicate-imports": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-reference-import": true,
"no-return-await": true,
"no-switch-case-fall-through": true,
"no-unused-expression": [
true,
"allow-fast-null-checks",
"allow-tagged-template"
],
"no-var-keyword": true,
"radix": true,
"space-within-parens": [true, 0],
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"eofline": true,
"no-trailing-whitespace": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"class-name": true,
"comment-format": [true, "check-space"],
"jsdoc-format": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": true,
"no-floating-promises": true,
"no-misused-new": true,
"no-string-throw": true,
"no-unnecessary-qualifier": true,
"no-unnecessary-type-assertion": true,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"quotemark": [true, "double", "avoid-escape", "jsx-double"],
"semicolon": [true, "always"],
"strict-type-predicates": true,
"space-before-function-paren": [true, "never"],
"unified-signatures": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
]
}
}
......@@ -6,6 +6,7 @@
"build": "webpack",
"clean": "rm -rf build/*",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "tslint -p . -c tslint.json 'src/**/*.ts' --fix",
"build:production": "NODE_ENV=production webpack",
"serve": "webpack && webpack-dev-server"
},
......@@ -31,6 +32,7 @@
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"source-map-loader": "^0.2.3",
"tslint": "^5.11.0",
"ts-loader": "^4.4.2",
"typescript": "^2.9.2",
"vue-loader": "^15.2.6",
......
......@@ -4,6 +4,7 @@
"sourceMap": true,
"declaration": true,
"noImplicitAny": true,
"strictNullChecks": true,
"module": "commonjs",
"target": "es6",
"lib": [ "es6", "dom" ],
......
{
"rules": {
"no-internal-module": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"await-promise": true,
"curly": [true, "ignore-same-line"],
"deprecation": true,
"label-position": true,
"no-arg": true,
"no-conditional-assignment": true,
"no-duplicate-imports": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-reference-import": true,
"no-return-await": true,
"no-switch-case-fall-through": true,
"no-unused-expression": [
true,
"allow-fast-null-checks",
"allow-tagged-template"
],
"no-var-keyword": true,
"radix": true,
"space-within-parens": [true, 0],
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"eofline": true,
"no-trailing-whitespace": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"class-name": true,
"comment-format": [true, "check-space"],
"jsdoc-format": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": true,
"no-floating-promises": true,
"no-misused-new": true,
"no-string-throw": true,
"no-unnecessary-qualifier": true,
"no-unnecessary-type-assertion": true,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"quotemark": [true, "double", "avoid-escape", "jsx-double"],
"semicolon": [true, "always"],
"strict-type-predicates": true,
"space-before-function-paren": [true, "never"],
"unified-signatures": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
]
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment