Skip to content

Commit

Permalink
Switch to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Aug 13, 2015
1 parent 6cdf656 commit 17348c2
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 53 deletions.
57 changes: 57 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parser": "babel-eslint",
"env": {
"node": true,
"mocha": true,
"browser": true
},
"globals": {
"describe": true,
"it": true,
"before": true,
"after": true,
"beforeEach": true,
"afterEach": true
},
"rules": {
"no-bitwise": 0,
"wrap-iife": [
2,
"any"
],
"max-len": [
2,
120
],
"new-cap": 2,
"no-caller": 2,
"quotes": [
2,
"single"
],
"strict": 0,
"no-undef": 2,
"no-unused-vars": 2,
"no-mixed-spaces-and-tabs": 2,
"eqeqeq": 2,
"no-eq-null": 2,
"consistent-this": 2,
"guard-for-in": 2,
"no-underscore-dangle": 2,
"curly": 2,
"no-multi-spaces": 2,
"key-spacing": 0,
"no-return-assign": 2,
"consistent-return": 2,
"no-shadow": 2,
"comma-dangle": 2,
"no-use-before-define": 1,
"no-empty": 2,
"new-parens": 2,
"no-cond-assign": 2,
"no-fallthrough": 2,
"no-loop-func": 2,
"no-unreachable": 2,
"no-process-exit": 2
}
}
27 changes: 0 additions & 27 deletions .jshintrc

This file was deleted.

53 changes: 27 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
{
"name": "timsort",
"version": "0.1.1",
"author": {
"name": "timsort",
"version": "0.1.1",
"author": {
"name": "Marco Ziccardi",
"url": "http://mziccard.me/"
"url": "http://mziccard.me/"
},
"description": "TimSort: Fast Sorting for Node.js",
"homepage": "https://github.com/mziccard/node-timsort",
"main": "index.js",
"directories": {
"test": "./test",
"description": "TimSort: Fast Sorting for Node.js",
"homepage": "https://github.com/mziccard/node-timsort",
"main": "index.js",
"directories": {
"test": "./test",
"benchmark": "./benchmark"
},
"dependencies": {},
"dependencies": {},
"devDependencies": {
"assert": "~1.3.0",
"babel-eslint": "^4.0.5",
"grunt": "^0.4.5",
"grunt-babel": "^5.0.1",
"grunt-banner": "^0.5.0",
"grunt-contrib-clean": "^0.6.0",
"assert": "~1.3.0",
"babel-eslint": "^4.0.5",
"eslint": "^1.1.0",
"grunt": "^0.4.5",
"grunt-babel": "^5.0.1",
"grunt-banner": "^0.5.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-uglify": "^0.9.1",
"jshint": "~2.8.0",
"mocha": "~2.2.5"
"jshint": "~2.8.0",
"mocha": "~2.2.5"
},
"scripts": {
"test": "mocha --timeout 5000",
"lint": "jshint index.js test/*.js benchmark/index.js",
"scripts": {
"test": "mocha --timeout 5000",
"lint": "eslint Gruntfile.js src/ test/ benchmark/index.js",
"benchmark": "node benchmark/index.js"
},
"repository": {
"repository": {
"type": "git",
"url": "https://github.com/mziccard/node-timsort.git"
"url": "https://github.com/mziccard/node-timsort.git"
},
"keywords": [
"keywords": [
"sort",
"compare",
"TimSort",
"algorithm",
"python",
"performance"
],
"license": "MIT",
"bugs": {
"license": "MIT",
"bugs": {
"url": "https://github.com/mziccard/node-timsort/issues"
}
}

0 comments on commit 17348c2

Please sign in to comment.