Type object
File match *.filenesting.json .filenesting.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/vs-nesting-json/latest.json
Source https://www.schemastore.org/vs-nesting.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

root boolean

Determines if this is the root nesting config file and no further inheritance is required.

Default: false
dependentFileProviders object

Contains a collection of nesting rule providers specified in the order to be applied.

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

All of: providers object
remove providers | enum

Remove specified nesting rules if they are merged from higher level nesting settings.

Definitions

fileExtension
fileName
ext-ext object
file-file object
file-ext object
providers object
addedExtension object

If this exist, files with an additional extension should nest under file without additional extension. Example: file.html.css nest under file.html

pathSegment object

If this exists, files with "extra" extension part in the file name should nest under files without it, but having same name and last extension. Example: file.min.js nest under file.js.

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

1 nested properties
uniqueItems=true
remove object | enum

Remove specified nesting rules if they are merged from higher level nesting settings.

extensionToExtension object

Nest files with specific extensions under other specific extensions

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

All of: ext-ext object
remove ext-ext | enum

Remove specified nesting rules if they are merged from higher level nesting settings.

fileToFile object

Nest specific file names under other specific file names

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

All of: file-file object
remove file-file | enum

Remove specified nesting rules if they are merged from higher level nesting settings.

fileSuffixToExtension object

Nest files with specified suffixes under files with specified extensions.

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

All of: file-ext object
remove file-ext | enum

Remove specified nesting rules if they are merged from higher level nesting settings.

allExtensions object

A greedy version of 'extensionToExtension' and has * as the only child key

2 nested properties
add

Add nesting rules in the order to be applied by corresponding provider, where each rule entry has a form 'child: collection of potential parents'.

1 nested properties
uniqueItems=true
remove object | string

Remove specified nesting rules if they are merged from higher level nesting settings.