Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chore: enable no-multiple-empty-lines on ESLint codebase (#8694)
  • Loading branch information
not-an-aardvark committed Jun 8, 2017
1 parent 34c4020 commit c702858
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion lib/cli-engine.js
Expand Up @@ -685,7 +685,6 @@ class CLIEngine {
const startTime = Date.now();



patterns = this.resolveFileGlobPatterns(patterns);
const fileList = globUtil.listFilesToProcess(patterns, options);

Expand Down
1 change: 0 additions & 1 deletion lib/config/config-file.js
Expand Up @@ -513,7 +513,6 @@ function resolve(filePath, relativeTo) {
return { filePath };



}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/rules/key-spacing.js
Expand Up @@ -634,6 +634,5 @@ module.exports = {
};



}
};
1 change: 0 additions & 1 deletion lib/testers/rule-tester.js
Expand Up @@ -456,7 +456,6 @@ class RuleTester {
const messages = result.messages;



if (typeof item.errors === "number") {
assert.equal(messages.length, item.errors, util.format("Should have %d error%s but had %d: %s",
item.errors, item.errors === 1 ? "" : "s", messages.length, util.inspect(messages)));
Expand Down
1 change: 0 additions & 1 deletion lib/util/patterns/letters.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/eslint-config-eslint/default.yml
Expand Up @@ -61,6 +61,7 @@ rules:
no-mixed-spaces-and-tabs: ["error", false]
no-multi-spaces: "error"
no-multi-str: "error"
no-multiple-empty-lines: ["error", {max: 2, maxBOF: 0, maxEOF: 0}]
no-native-reassign: "off"
no-nested-ternary: "error"
no-new: "error"
Expand Down
1 change: 0 additions & 1 deletion tests/lib/config.js
Expand Up @@ -725,7 +725,6 @@ describe("Config", () => {
});



it("should load user config globals", () => {
const configPath = path.resolve(__dirname, "..", "fixtures", "globals", "conf.yaml"),
configHelper = new Config({ configFile: configPath, useEslintrc: false }, linter);
Expand Down
1 change: 0 additions & 1 deletion tests/lib/eslint.js
Expand Up @@ -469,7 +469,6 @@ describe("eslint", () => {
});



describe("when calling getScope", () => {
const code = "function foo() { q: for(;;) { break q; } } function bar () { var q = t; } var baz = (() => { return 1; });";

Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/no-restricted-globals.js
Expand Up @@ -63,4 +63,3 @@ ruleTester.run("no-restricted-globals", rule, {
}
]
});

0 comments on commit c702858

Please sign in to comment.