Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…11357) Only explicitly recommended rules will be exported in eslint:recommended configuration.
- Loading branch information
1 parent
2543f11
commit be83322
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @fileoverview Tests for eslint:recommended. | ||
* @author Kevin Partington | ||
*/ | ||
|
||
"use strict"; | ||
|
||
//------------------------------------------------------------------------------ | ||
// Requirements | ||
//------------------------------------------------------------------------------ | ||
|
||
const assert = require("chai").assert; | ||
const eslintRecommended = require("../../conf/eslint-recommended"); | ||
const rules = eslintRecommended.rules; | ||
|
||
describe("eslint-recommended", () => { | ||
it("should configure recommended rules as error", () => { | ||
assert.strictEqual(rules["no-undef"], "error"); | ||
}); | ||
|
||
it("should not configure non-recommended rules", () => { | ||
assert.notProperty(rules, "camelcase"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters