File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1313
1414// it’s mostly private, but useful for tools like `eslint-mdx`.
1515export { Configuration } from './lib/configuration.js'
16+ export { Ignore } from './lib/ignore.js'
1617
1718export { engine } from './lib/index.js'
Original file line number Diff line number Diff line change 1919* [ API] ( #api )
2020 * [ ` engine(options, callback) ` ] ( #engineoptions-callback )
2121 * [ ` Configuration ` ] ( #configuration )
22+ * [ ` Ignore ` ] ( #ignore )
2223 * [ ` Completer ` ] ( #completer )
2324 * [ ` Callback ` ] ( #callback )
2425 * [ ` ConfigResult ` ] ( #configresult )
@@ -150,7 +151,7 @@ function done(error, code) {
150151
151152## API
152153
153- This package exports the identifiers [ ` Configuration ` ] [ api-configuration ] and
154+ This package exports the identifiers [ ` Configuration ` ] [ api-configuration ] , [ ` Ignore ` ] [ api-ignore ] and
154155[ ` engine ` ] [ api-engine ] .
155156There is no default export.
156157
@@ -175,6 +176,13 @@ Internal class to load configuration files.
175176
176177Exposed to build more complex integrations.
177178
179+ ### ` Ignore `
180+
181+ Internal class to load ignore file for checking
182+ whether this file should be ignored.
183+
184+ Exposed to build more complex integrations.
185+
178186###### Parameters
179187
180188* ` options ` (subset of [ ` Options ` ] [ api-options ] , required)
@@ -1595,6 +1603,8 @@ abide by its terms.
15951603
15961604[api-file-set]: #fileset
15971605
1606+ [api-ignore]: #ignore
1607+
15981608[api-options]: #options
15991609
16001610[api-preset]: #preset
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ test('engine', async function (t) {
1010 await t . test ( 'should expose the public api' , async function ( ) {
1111 assert . deepEqual ( Object . keys ( await import ( 'unified-engine' ) ) . sort ( ) , [
1212 'Configuration' ,
13+ 'Ignore' ,
1314 'engine'
1415 ] )
1516 } )
You can’t perform that action at this time.
0 commit comments