Browse Source

Use the "eslint-disable" directive instead of "eslint"

The "eslint-disable" directive is more specific.
redux
David Majda 5 years ago
parent
commit
9648ca53d7
  1. 8
      Makefile
  2. 2
      benchmark/run
  3. 2
      benchmark/server
  4. 2
      lib/parser.js
  5. 2
      spec/api/generated-parser-api.spec.js
  6. 2
      spec/behavior/generated-parser-behavior.spec.js
  7. 2
      spec/server

8
Makefile

@ -54,10 +54,10 @@ parser:
rm -f $(PARSER_OUT_FILE)
echo '/* eslint-env node, amd */' >> $(PARSER_OUT_FILE)
echo '/* eslint no-unused-vars: 0 */' >> $(PARSER_OUT_FILE)
echo >> $(PARSER_OUT_FILE)
cat $(PARSER_OUT_FILE_NEW) >> $(PARSER_OUT_FILE)
echo '/* eslint-env node, amd */' >> $(PARSER_OUT_FILE)
echo '/* eslint-disable no-unused-vars */' >> $(PARSER_OUT_FILE)
echo >> $(PARSER_OUT_FILE)
cat $(PARSER_OUT_FILE_NEW) >> $(PARSER_OUT_FILE)
rm $(PARSER_OUT_FILE_NEW)

2
benchmark/run

@ -3,7 +3,7 @@
"use strict";
/* eslint-env node */
/* eslint no-console: 0*/
/* eslint-disable no-console */
let Runner = require("./runner.js");
let benchmarks = require("./benchmarks.js");

2
benchmark/server

@ -3,7 +3,7 @@
"use strict";
/* eslint-env node */
/* eslint no-console: 0 */
/* eslint-disable no-console */
// Small server whose main purpose is to ensure that both the benchmarked code
// and the benchmark get passed through Babel & Browserify before they are

2
lib/parser.js

@ -1,5 +1,5 @@
/* eslint-env node, amd */
/* eslint no-unused-vars: 0 */
/* eslint-disable no-unused-vars */
// Generated by PEG.js 0.10.0.
//

2
spec/api/generated-parser-api.spec.js

@ -1,6 +1,6 @@
"use strict";
/* eslint no-console: 0 */
/* eslint-disable no-console */
/* global console */
let peg = require("../../lib/peg");

2
spec/behavior/generated-parser-behavior.spec.js

@ -1,6 +1,6 @@
"use strict";
/* eslint no-console: 0 */
/* eslint-disable no-console */
/* global console */
let peg = require("../../lib/peg");

2
spec/server

@ -3,7 +3,7 @@
"use strict";
/* eslint-env node */
/* eslint no-console: 0 */
/* eslint-disable no-console */
// Small server whose main purpose is to ensure that both the specced code and
// the specs get passed through Babel & Browserify before they are served to the

Loading…
Cancel
Save