Commit cd0b8d4f authored by Antonin Coulibaly's avatar Antonin Coulibaly
Browse files

Add package.json and linter

parent 279cb235
Loading
Loading
Loading
Loading

.eslintrc

0 → 100644
+29 −0
Original line number Diff line number Diff line
{
    "extends": "airbnb/base",

    "env": {
        "browser": false,
        "node": true,
        "mocha": true
    },

    "rules": {
        "strict": [2, "global"],
        "indent": [2, 4],
        "no-mixed-spaces-and-tabs": 2,
        "max-len": [2, 80, 4],
        "quotes": 0,
        "semi": [2, "always"],
        "curly": 0,
        "space-before-keywords": 2,
        "space-before-function-paren": [2, {"anonymous": "always",
                                            "named": "never"}],
        "comma-dangle": 0,
        "camelcase": [2, {"properties": "always"}],
        "id-length": 0,
        "no-shadow": 0,
        "valid-jsdoc": 1,
        "eol-last": 2,
        "no-multiple-empty-lines": [ 2, { "max": 2, "maxEOF": 1 } ]
    }
}

package.json

0 → 100644
+38 −0
Original line number Diff line number Diff line
{
    "name": "kinetic-js",
    "version": "1.0.0",
    "description": "Library for the Kinetic open storage protocol",
    "repository": "Kinetic/kinetic-js",
    "contributors": [
        { "name": "Antonin Coulibaly", "email": "" },
        { "name": "David Pineau", "email": "" },
        { "name": "Michael Zapata", "email": "" },
        { "name": "Adrien Vergé", "email": "" }
    ],
    "license": "Mozilla 2.0",
    "bugs": {
        "url": "https://github.com/Kinetic/kinetic-js/issues"
    },
    "homepage": "https://github.com/Kinetic/kinetic-js#readme",
    "keywords": [
        "kinetic",
        "protocol"
    ],
    "dependencies": {
        "protobufjs": "^4.0.0",
        "winston": "^1.1.0"
    },
    "devDependencies": {
        "babel": "^5.8.23",
        "babel-eslint": "^4.1.3",
        "eslint": "^1.5.1",
        "eslint-config-airbnb": "^0.0.9",
        "mocha": "^2.3.3"
    },
    "scripts": {
        "lint": "eslint $(git ls-files '*.js')",
        "test": "mocha -r babel/register tests/unit",
        "tests_functional": "make -C tests/functional"
    },
    "private": false
}