From c29ad9f8c567d215b0d64a5527969bfbf8f34422 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 15 Oct 2015 09:24:39 +0100 Subject: [PATCH] Fix "Unsupported rule: jsDoc" when linting no issue - add missing jscs-jsdoc dependency and specify plugin in .jscsrc - fix linting issue in user-test.js --- .jscsrc | 3 +++ core/client/tests/unit/models/user-test.js | 2 +- package.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.jscsrc b/.jscsrc index 6df9747b94..34a174de82 100644 --- a/.jscsrc +++ b/.jscsrc @@ -1,4 +1,7 @@ { + "plugins": [ + "jscs-jsdoc" + ], "additionalRules": [ "core/test/utils/jscs-rules/*.js" ], "requireCurlyBraces": [ "if", diff --git a/core/client/tests/unit/models/user-test.js b/core/client/tests/unit/models/user-test.js index 09c8230ad4..bcd1d4ecea 100644 --- a/core/client/tests/unit/models/user-test.js +++ b/core/client/tests/unit/models/user-test.js @@ -4,7 +4,7 @@ import { it } from 'ember-mocha'; -const { run } = Ember; +const {run} = Ember; describeModel( 'user', diff --git a/package.json b/package.json index 99a0a6b96e..55952c98ff 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "grunt-mocha-istanbul": "2.4.0", "grunt-shell": "1.1.2", "grunt-update-submodules": "0.4.1", + "jscs-jsdoc": "1.2.0", "matchdep": "0.3.0", "nock": "2.3.0", "rewire": "2.3.3",