mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
* add new reexports to eslint/config * update docs * tweak migration guide * update * dont export convertIgnorePatternToMinimatch * remove todo * gitignoreResolution: boolean * Update docs/src/use/configure/ignore.md Co-authored-by: Milos Djermanovic <[email protected]> * defineConfig([ * Update docs/src/use/configure/ignore.md Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/use/configure/migration-guide.md Co-authored-by: Milos Djermanovic <[email protected]> * feedback * test export * add some type tests for includeIgnoreFile --------- Co-authored-by: Milos Djermanovic <[email protected]>
32 lines
847 B
JavaScript
32 lines
847 B
JavaScript
/**
|
|
* @fileoverview Tests for config-api.
|
|
* @author Milos Djermanovic
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Requirements
|
|
//-----------------------------------------------------------------------------
|
|
|
|
const assert = require("chai").assert,
|
|
api = require("../../lib/config-api");
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Tests
|
|
//-----------------------------------------------------------------------------
|
|
|
|
describe("config-api", () => {
|
|
it("should have defineConfig exposed", () => {
|
|
assert.isFunction(api.defineConfig);
|
|
});
|
|
|
|
it("should have globalIgnores exposed", () => {
|
|
assert.isFunction(api.globalIgnores);
|
|
});
|
|
|
|
it("should have includeIgnoreFile()` exposed", () => {
|
|
assert.isFunction(api.includeIgnoreFile);
|
|
});
|
|
});
|