@shopify/theme-language-server-common
Version:
<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>
29 lines (26 loc) • 706 B
text/typescript
import { LiquidCheckDefinition, Severity, SourceCodeType } from '@shopify/theme-check-common';
export const LiquidFilter: LiquidCheckDefinition = {
meta: {
code: 'LiquidFilter',
name: 'Complains about every LiquidFilter',
docs: {
description: 'Complains about every LiquidFilter',
recommended: true,
},
type: SourceCodeType.LiquidHtml,
severity: Severity.ERROR,
schema: {},
targets: [],
},
create(context) {
return {
LiquidFilter: async (node) => {
context.report({
message: 'Liquid filter can not be used',
startIndex: node.position.start,
endIndex: node.position.end,
});
},
};
},
};