Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

ESLint: enable strict rule #12718

Merged
merged 2 commits into from
Aug 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"env": {
"node": true
},
"rules": {
"no-bitwise": 0,
"curly": 2,
Expand All @@ -25,7 +22,7 @@
"no-control-regex": 2,
"no-regex-spaces": 2,
"no-undef": 2,
"strict": 0,
"strict": 2,
"no-unused-vars": [0, {"vars": "all", "args": "none"}],
"semi": 2,

Expand Down Expand Up @@ -59,6 +56,7 @@
"$": false,

"window": false,
"console": false,
"setTimeout": false,
"clearTimeout": false,

Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
*
*/

/*eslint-env node */
/*jslint node: true */
'use strict';

module.exports = function (grunt) {
'use strict';

// load dependencies
require('load-grunt-tasks')(grunt, {
pattern: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,50 @@
*
*/

/*eslint-env node */
/*jslint node: true */
"use strict";

(function () {
"use strict";
var open = require("opn");

var open = require("opn");

/**
* @private
* The Brackets domain manager for registering node extensions.
* @type {?DomainManager}
*/
var _domainManager;
/**
* @private
* The Brackets domain manager for registering node extensions.
* @type {?DomainManager}
*/
var _domainManager;

/**
* Launch the given URL in the system default browser.
* TODO: it now launching just on default browser, add launchers for specific browsers.
* @param {string} url
*/
function _cmdLaunch(url) {
open(url);
}
/**
* Launch the given URL in the system default browser.
* TODO: it now launching just on default browser, add launchers for specific browsers.
* @param {string} url
*/
function _cmdLaunch(url) {
open(url);
}


/**
* Initializes the domain and registers commands.
* @param {DomainManager} domainManager The DomainManager for the server
*/
function init(domainManager) {
_domainManager = domainManager;
if (!domainManager.hasDomain("launcher")) {
domainManager.registerDomain("launcher", {major: 0, minor: 1});
}
domainManager.registerCommand(
"launcher", // domain name
"launch", // command name
_cmdLaunch, // command handler function
false, // this command is synchronous in Node
"Launches a given HTML file in the browser for live development",
[
{ name: "url", type: "string", description: "file:// url to the HTML file" },
{ name: "browser", type: "string", description: "browser name"}
],
[]
);
/**
* Initializes the domain and registers commands.
* @param {DomainManager} domainManager The DomainManager for the server
*/
function init(domainManager) {
_domainManager = domainManager;
if (!domainManager.hasDomain("launcher")) {
domainManager.registerDomain("launcher", {major: 0, minor: 1});
}
domainManager.registerCommand(
"launcher", // domain name
"launch", // command name
_cmdLaunch, // command handler function
false, // this command is synchronous in Node
"Launches a given HTML file in the browser for live development",
[
{ name: "url", type: "string", description: "file:// url to the HTML file" },
{ name: "browser", type: "string", description: "browser name"}
],
[]
);
}

exports.init = init;

}());
exports.init = init;
Loading