Skip to content

Commit

Permalink
Tidy up ESLint envs
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh committed Nov 22, 2015
1 parent 5b54db3 commit 0ed48bf
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env node */
import gulp from 'gulp';
import watch from 'gulp-watch';
import jspm from 'jspm';
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

import http from 'http';
import express from 'express';
import compression from 'compression';
Expand Down
5 changes: 5 additions & 0 deletions public-src/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"browser": true
}
}
2 changes: 0 additions & 2 deletions public-src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env browser */

import diff from 'virtual-dom/diff';
import patch from 'virtual-dom/patch';
import domToVdom from 'vdom-virtualize';
Expand Down
2 changes: 1 addition & 1 deletion public-src/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env browser, serviceworker */
/* eslint-env serviceworker */

const version = 1;
const staticCacheName = 'static-' + version;
Expand Down
5 changes: 5 additions & 0 deletions shared/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"browser": true
}
}
1 change: 0 additions & 1 deletion shared/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env browser */
export const getContentUrl = (contentId) => `/api/${contentId}`;

export const isClient = typeof window !== 'undefined';
Expand Down
1 change: 0 additions & 1 deletion shared/views/post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env browser */
import h from 'virtual-dom/h';
import mainView from './main';
import exp from '../exp';
Expand Down

0 comments on commit 0ed48bf

Please sign in to comment.