Skip to content

Commit

Permalink
reuse eslint config from modcolle-eslint-config (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
makemek authored Apr 5, 2017
1 parent cb07980 commit 648aba2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 58 deletions.
66 changes: 9 additions & 57 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,11 @@
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "script"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"brace-style": [
"error",
"1tbs"
],
"curly": [
"error",
"multi",
"consistent"
],
"comma-spacing": [
"error",
{"before": false, "after": true}
],
"strict": [
"error",
"global"
],
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": "error",
"prefer-arrow-callback": "error",
"prefer-spread": "error",
"prefer-const": "error",
"no-var": "error",
"dot-notation": "error",
"no-trailing-spaces": "error",
"no-tabs": "error",
"eol-last": "error"
}
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": "modcolle",
"parserOptions": {
"sourceType": "script"
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"eslint": "./node_modules/.bin/eslint"
},
"nyc": {
"exclude": ["gulpfile.js"]
"exclude": [
"gulpfile.js"
]
},
"scripts": {
"build": "gulp build && gulp import",
Expand All @@ -33,6 +35,7 @@
"async": "2.1.2",
"body-parser": "1.15.2",
"dot-env": "0.0.1",
"eslint-config-modcolle": "0.1.0",
"express": "4.14.0",
"express-handlebars": "3.0.0",
"fallbackjs": "1.1.8",
Expand Down Expand Up @@ -60,6 +63,7 @@
"cheerio": "0.22.0",
"coveralls": "2.11.14",
"eslint": "3.9.1",
"eslint-config-modcolle": "0.1.0",
"gulp": "3.9.1",
"gulp-babel": "6.1.2",
"gulp-clean-css": "2.3.2",
Expand Down

0 comments on commit 648aba2

Please sign in to comment.