]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: fix lint
authorChocobozzz <florian.bigard@gmail.com>
Sun, 15 Jan 2017 18:30:14 +0000 (19:30 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Sun, 15 Jan 2017 18:30:14 +0000 (19:30 +0100)
client/config/webpack.dev.js
client/config/webpack.prod.js
client/package.json
client/tslint.json

index cea9d03068ad7195f6f0c3f69c778af28f3d336e..05475774805c930b95ceaef7ac9bb06972c3b19a 100644 (file)
@@ -1,7 +1,6 @@
 const helpers = require('./helpers')
 const webpackMerge = require('webpack-merge') // used to merge webpack configs
 const commonConfig = require('./webpack.common.js') // the settings that are common to prod and dev
-const path = require('path')
 
 /**
  * Webpack Plugins
index 64d776f24a578bcffccd480ed7d546a8999860e1..51b8a8855202bc8fccdc2a8b05f8b0f40e183ae7 100644 (file)
@@ -10,14 +10,10 @@ const commonConfig = require('./webpack.common.js') // the settings that are com
  * Webpack Plugins
  */
 const DefinePlugin = require('webpack/lib/DefinePlugin')
-const ExtractTextPlugin = require('extract-text-webpack-plugin')
-const IgnorePlugin = require('webpack/lib/IgnorePlugin')
 const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
 const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin')
-const ProvidePlugin = require('webpack/lib/ProvidePlugin')
 const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')
 const WebpackMd5Hash = require('webpack-md5-hash')
-const V8LazyParseWebpackPlugin = require('v8-lazy-parse-webpack-plugin')
 
 /**
  * Webpack Constants
@@ -274,7 +270,7 @@ module.exports = function (env) {
               [/\*/, /(?:)/],
               [/\[?\(?/, /(?:)/]
             ],
-            customAttrAssign: [/\)?\]?=/]
+            customAttrAssign: [/\)?]?=/]
           },
 
           // FIXME: Remove
index d03a1f8a2eae3e224d0d84faa59054d923d44774..3a28d58538387b0b858a8b33d6bdd7becc3e26d1 100644 (file)
@@ -70,8 +70,8 @@
     "string-replace-loader": "^1.0.3",
     "style-loader": "^0.13.1",
     "ts-helpers": "^1.1.1",
-    "tslint": "3.15.1",
-    "tslint-loader": "^2.1.4",
+    "tslint": "~4.3.1",
+    "tslint-loader": "^3.3.0",
     "typescript": "~2.1.0",
     "url-loader": "^0.5.7",
     "v8-lazy-parse-webpack-plugin": "^0.3.0",
@@ -85,7 +85,7 @@
     "zone.js": "~0.7.2"
   },
   "devDependencies": {
-    "codelyzer": "0.0.28",
+    "codelyzer": "2.0.0-beta.4",
     "standard": "^8.0.0"
   }
 }
index 0cffea582523bb924de7807a91a99fe732f27d63..5b2c1c5054ad5637c4c28d81ec2feea70432a297 100644 (file)
     ],
     "no-arg": true,
     "no-construct": true,
-    "no-duplicate-key": true,
     "no-duplicate-variable": true,
     "no-empty": true,
     "no-eval": true,
     "no-trailing-whitespace": true,
     "no-unused-expression": true,
-    "no-unused-variable": true,
-    "no-unreachable": true,
     "no-use-before-declare": true,
     "one-line": [true,
       "check-open-brace",
     "triple-equals": true,
     "variable-name": false,
 
-    "directive-selector-name": [true, "camelCase"],
-    "component-selector-name": [true, "kebab-case"],
-    "directive-selector-type": [true, "attribute"],
-    "component-selector-type": [true, "element"],
-    "directive-selector-prefix": [true, "my"],
-    "component-selector-prefix": [true, "my"],
+    "directive-selector": [true, "attribute", "my", "camelCase"],
+    "component-selector": [true, "element", "my", "kebab-case"],
     "use-input-property-decorator": true,
     "use-output-property-decorator": true,
     "use-host-property-decorator": true,
     "no-attribute-parameter-decorator": true,
     "no-input-rename": true,
     "no-output-rename": true,
-    "no-forward-ref" :true,
+    "no-forward-ref"true,
     "use-life-cycle-interface": true,
     "use-pipe-transform-interface": true,
     "pipe-naming": [true, "camelCase", "my"],
     "component-class-suffix": true,
     "directive-class-suffix": true,
+    "import-destructuring-spacing": true,
+    "templates-use-public": true,
+    "no-access-missing-member": true,
+    "invoke-injectable": true,
 
     "typedef-whitespace": [ true,
       {