To define the paths of your source files.
{
"sources": [
"a/path/to/your/scss/*.scss",
"a/path/to/a/specific/scss/main.scss
]
}
To define the paths of some exclude source files.
default: []
{
"excludePath": [
"an/exclude/path/of/scss/*.scss"
]
}
To define the names of some block that are not isolated yet, so the linter will be kind ;)
default: []
{
"excludeBlock": [
"messed-up-component",
"disorder-file",
"old-component"
]
}
A boolean if you want to monitor the quality tendency instead of targeting absolutely zero error.
ℹ️ You also can set a file path of your snapshot. The default path to store your snapshot is .bemlinter-snap
.
ℹ️ If you use bemlinter with in command line, you can force snapshot update with -u
.
default: false
{
"snapshot": true
}
To disable lower case check.
default: true
{
"checkLowerCase": false
}
To set the class prefix.
default: ''
{
"classPrefix": "c-"
}
Regexp used to retrieve the block name from the file name.
default: '([^.]*)\.s?css'
{
"filePattern": "(?:module-)?([^.]*)\\.scss"
}
Allow to override global option for portions of your sources.
name
and sources
properties.
default: []
{
"modules": [
{
"name": "my-module",
"sources": [
"a/path/to/your/module/folder/*.scss",
"a/path/to/a/module/file.scss"
],
"classPrefix": "mm-",
"filePattern": "my-module-([^.]*)\\.scss"
}
]
}