2
私はカスタムのリンリングルールをlesshintに作成しています。lesshintカスタムルール移動中のファイル名を取得する
私は歩いているファイルのファイル名にアクセスしたいと思います。
現在のコード:
module.exports = {
name: 'customrule',
nodeTypes: ['decl'],
lint: function(config, node) {
console.log(node.root().source.input.from);
}
};
私が持っている最も近い出力へのファイルのインデックスを思わnode.root().source.input.from
ではなく、その名前。
config
オブジェクトは、ここではlesshint
のブール