StyleLint - Ignore specific folders and files

Guy

I'm using StyleLint with Webpack.

My current Webpack configuration is:

module.exports.styleLint = (isProd = false) => {
  const options = {
    configFile: './.stylelintrc.json',
    files: '**/*.less',
    format: 'less',
    failOnError: false,
    quiet: false,
    emitErrors: isProd
  };
  return new StyleLintPlugin(options);
};

How can I specify some folders or files to be ignored by StyleLint (I don't want to see any errors in the output)?

Note:

I don't want to add

/* stylelint-disable */

inside these files.

Guy

I used the following configuration in the stylelint config file:

{
    "extends": "stylelint-config-recommended",
    "ignoreFiles": [
        "app/bootstrap/**/*.less"
    ]
}

And it skipped the files in the specified folder.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

stylelint ignore rule for specific folder/file

PHP get exe files in a specific directory, ignore other files and folders

Git Ignore folders in specific paths

Jest, how to ignore test coverage of specific folders?

How to ignore specific folders from Picasa

gitignore fails to ignore files/folders with whitespaces

Git ignore doesn't ignore the specified folders/files

linux how to find specific files in specific folders

PowerShell - Copy specific files from specific folders

Moving media files with specific language into specific folders

Find files/folders in folder except some specific folders

PowerShell - Delete files by modified date in specific folders

Suppress error messages / inspections for for specific folders or files

How to search and list files and folders with specific pattern?

Pushing files and folders to a specific folder on ftp

Get files from specific folders in python

Backing up files from specific folders in rsync

How to remove files and folders underneath a specific folder

processing and downloading JSON files into specific folders

How to copy specific folders/files to artifact?

Foreach loop to move specific files into designated folders

Get files from specific folders in a directory in PowerShell

Iterate through folders to open files of a specific type

How to change the name of specific files in various folders

Grep Recursively for files in specific group of sub folders

Move files to specific folders based on name

Clearing folders except specific type of files

How to move files depending on something to specific folders

Open multiple files in folders with specific name pattern