Skip to content

Commit

Permalink
Merge pull request #28 from rubenstolk/feature/eslint-ruben
Browse files Browse the repository at this point in the history
Feature/eslint ruben
  • Loading branch information
jakubfiala authored Dec 29, 2016
2 parents bd1b4aa + 42c933a commit 8c77ef1
Show file tree
Hide file tree
Showing 7 changed files with 526 additions and 495 deletions.
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"extends": ["eslint:recommended", "airbnb"],
"env": {
"browser": true
},
"parser": "babel-eslint",
"rules": {
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"no-console": ["off"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-param-reassign": ["off"],
"no-underscore-dangle": ["off"],
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "never"],
"func-names": ["off"],
"consistent-return": ["off"],
"max-len": ["error", { "code": 100, "tabWidth": 2, "ignoreComments": true }],
"padded-blocks": ["off"],
"global-require": ["off"],
"no-unused-expressions": ["off"],
"no-shadow": ["off"],
"new-cap": ["error", { "capIsNewExceptions": ["Polymer", "ObjectId", "Intercom"] }],
"no-restricted-syntax": ["error", "DebuggerStatement", "LabeledStatement", "WithStatement"],
"no-nested-ternary": ["off"],
"no-return-assign": ["off"],
"no-confusing-arrow": ["off"],
"no-cond-assign": ["off"]
}
}
2 changes: 1 addition & 1 deletion dist/atrament.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/atrament.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./src/atrament.js');
module.exports = require('./src/atrament.js');
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"node-compile": "babel src --presets es2015 -d lib/",
"build": "webpack --config webpack.config.js",
"watch": "webpack --config webpack.config.js --watch",
"lint": "./node_modules/eslint/bin/eslint.js ./src",
"test": "jasmine"
},
"repository": {
Expand All @@ -30,7 +31,12 @@
"babel-cli": "^6.7.5",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"uglify-js": "^2.6.2",
"babel-eslint": "6.0.4",
"eslint": "2.11.0",
"eslint-config-airbnb": "9.0.1",
"eslint-plugin-import": "1.8.1",
"eslint-plugin-jsx-a11y": "1.2.2",
"eslint-plugin-react": "5.1.1",
"webpack": "^1.13.0"
}
}
Loading

0 comments on commit 8c77ef1

Please sign in to comment.