Permalink
Browse files

Linter warnings are errors in CI

  • Loading branch information...
1 parent 3846b71 commit c292fd591760302a705fd3f3e1c6d5ad18647954 @rhys-vdw rhys-vdw committed May 16, 2016
Showing with 28 additions and 26 deletions.
  1. +0 −26 .eslintrc
  2. +28 −0 .eslintrc.js
View
@@ -1,26 +0,0 @@
-{
- "parser": "babel-eslint",
- "extends": [
- "eslint:recommended",
- "plugin:import/errors",
- "plugin:import/warnings"
- ],
- "plugins": ["import"],
- "rules": {
- "comma-dangle": 0,
- "no-unused-vars": [1, {"vars": "all", "args": "none"}],
- "no-console": 1,
- "no-var": 2,
- "no-debugger": 1,
- "indent": [1, 2, {"SwitchCase": 1}],
- "max-len": [1, 100, 2],
- "prefer-const": 1,
- "no-fallthrough": 1
- },
- "settings": {
- "import/parser": "babel-eslint"
- },
- "env": {
- "node": true
- }
-}
View
@@ -0,0 +1,28 @@
+var warning = process.env['CI'] ? 2 : 1;
+
+module.exports = {
+ "parser": "babel-eslint",
+ "extends": [
+ "eslint:recommended",
+ "plugin:import/errors",
+ "plugin:import/warnings"
+ ],
+ "plugins": ["import"],
+ "rules": {
+ "comma-dangle": 0,
+ "no-unused-vars": [warning, {"vars": "all", "args": "none"}],
+ "no-console": warning,
+ "no-var": 2,
+ "no-debugger": warning,
+ "indent": [warning, 2, {"SwitchCase": 1}],
+ "max-len": [warning, 100, 2],
+ "prefer-const": warning,
+ "no-fallthrough": warning
+ },
+ "settings": {
+ "import/parser": "babel-eslint"
+ },
+ "env": {
+ "node": true
+ }
+};

0 comments on commit c292fd5

Please sign in to comment.