Browse Source

Moved "eslint-env node" to the root

It seem's kind of pointless setting the comment "/* eslint-env node */" at the top of only some JavaScript files when nearly all of them are Node.js releated, so I moved this option to the root level config, only leaving the 'lib' folder as "/* eslint-env commonjs */"
master
Futago-za Ryuu 4 years ago
parent
commit
08bbd6d5b6
  1. 5
      .eslintrc.json
  2. 8
      bin/.eslintrc.json
  3. 2
      gulpfile.js
  4. 6
      lib/.eslintrc.json
  5. 2
      test/benchmark/run
  6. 2
      test/server/run

5
.eslintrc.json

@ -1,10 +1,11 @@
{
"extends": "dmajda",
"env": {
"commonjs": true
"node": true
},
"root": true,
"rules": {
"linebreak-style": 0
"linebreak-style": 0,
"no-console": 0
}
}

8
bin/.eslintrc.json

@ -1,8 +0,0 @@
{
"env": {
"node": true
},
"rules": {
"no-console": 0
}
}

2
gulpfile.js

@ -1,7 +1,5 @@
"use strict";
/* eslint-env node */
let babelify = require("babelify");
let browserify = require("browserify");
let buffer = require("vinyl-buffer");

6
lib/.eslintrc.json

@ -0,0 +1,6 @@
{
"env": {
"node": false,
"commonjs": true
}
}

2
test/benchmark/run

@ -2,8 +2,6 @@
"use strict";
/* eslint-env node */
let Runner = require("./runner.js");
let benchmarks = require("./benchmarks.js");
let fs = require("fs");

2
test/server/run

@ -2,8 +2,6 @@
"use strict";
/* eslint-env node */
let babelify = require("babelify");
let browserify = require("browserify");
let express = require("express");

Loading…
Cancel
Save