Verify entry point and all imported files with stylelint
npm install --save-dev rollup-plugin-stylelint stylelint
// rollup.config.js
import stylelint from 'rollup-plugin-stylelint';
export default {
entry: './main.ts',
plugins: [
stylelint({
//stylelint config
})
]
}
The plugin loads linter options from the .stylelintrc file by default. Passing options to the plugin directly overrides those options.
See more options here stylelint-config.
Type: boolean
Default: false
If true, will throw an error if any errors were found.
Type: boolean
Default: false
If true, will throw an error if any warnings were found.