Skip to content

Commit

Permalink
Update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 13, 2015
1 parent 1ab4d9c commit 31136bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function detect(value) {
console.log(franc(value, param));
}
} else {
/* eslint-disable no-process-exit */
process.stderr.write(help());
process.exit(1);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"test-travis": "npm run test-coveralls && npm run test-browser && npm run test-cli",
"test": "npm run test-lib && npm run test-browser && npm run test-cli",
"lint-api": "eslint index.js lib/franc.js lib/expressions.js",
"lint-cli": "eslint --rule no-process-exit:false cli.js",
"lint-script": "eslint --rule dot-notation:false script/build-fixtures.js script/build-support.js script/build-languages.js",
"lint-cli": "eslint cli.js",
"lint-script": "eslint script/build-fixtures.js script/build-support.js script/build-languages.js",
"lint-test": "eslint --env mocha test/index.js test/browser.js",
"lint-benchmark": "eslint --global suite,bench,set benchmark.js",
"lint-style": "jscs --reporter inline index.js lib/franc.js cli.js script/build-fixtures.js script/build-support.js script/build-languages.js benchmark.js test/index.js test/browser.js",
Expand Down
4 changes: 4 additions & 0 deletions script/build-languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ topLanguages.forEach(function (language) {

topLanguages = sort(topLanguages);

/* eslint-disable dot-notation */

topLanguages.forEach(function (language) {
var iso = language.iso6393;

Expand Down Expand Up @@ -387,6 +389,8 @@ topLanguages.forEach(function (language) {
*/
});

/* eslint-enable dot-notation */

/*
* Detect which languages are unique per script.
*/
Expand Down

0 comments on commit 31136bf

Please sign in to comment.