Skip to content

Commit

Permalink
feat(step-3): added ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jlengstorf committed Aug 17, 2016
1 parent d171d05 commit d465562
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,31 @@
{
"env": {
"browser": true,
"es6": true
},
"globals": {
"ENV": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,8 @@
"devDependencies": {
"babel-preset-es2015-rollup": "^1.2.0",
"rollup": "^0.34.9",
"rollup-plugin-babel": "^2.6.1"
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-eslint": "^2.0.2"
},
"dependencies": {}
}
6 changes: 6 additions & 0 deletions rollup.config.js
@@ -1,12 +1,18 @@
// Rollup plugins
import babel from 'rollup-plugin-babel';
import eslint from 'rollup-plugin-eslint';

export default {
entry: 'src/scripts/main.js',
dest: 'build/js/main.min.js',
format: 'iife',
sourceMap: 'inline',
plugins: [
eslint({
exclude: [
'src/styles/**',
]
}),
babel(),
],
};

0 comments on commit d465562

Please sign in to comment.