mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 08:22:53 +00:00
18 lines
397 B
JavaScript
Executable File
18 lines
397 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const { check } = require('../src/checker');
|
|
|
|
check(process.argv[2]).then((conflicts) => {
|
|
if (conflicts && conflicts.length) {
|
|
process.exitCode = 1;
|
|
console.error(
|
|
'Conflicting rule(s) detected in your stylelint configuration:\n' +
|
|
conflicts.join('\n')
|
|
);
|
|
} else {
|
|
console.log(
|
|
'No conflicting rules detected in your stylelint configuration!'
|
|
);
|
|
}
|
|
});
|