mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2026-01-03 01:51:40 +00:00
feat 🥁: initialize project with complete codebase
This commit is contained in:
commit
d569dea1fb
35 changed files with 4413 additions and 0 deletions
23
src/css-rules/alphabetical-order/rule-definition.ts
Normal file
23
src/css-rules/alphabetical-order/rule-definition.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { Rule } from 'eslint';
|
||||
import { createNodeVisitors } from '../shared-utils/order-strategy-visitor-creator.js';
|
||||
|
||||
const alphabeticalOrderRule: Rule.RuleModule = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
description: 'enforce alphabetical CSS property ordering in vanilla-extract styles',
|
||||
category: 'Stylistic Issues',
|
||||
recommended: true,
|
||||
},
|
||||
fixable: 'code',
|
||||
schema: [],
|
||||
messages: {
|
||||
alphabeticalOrder: "Property '{{next}}' should come before '{{current}}' in alphabetical order.",
|
||||
},
|
||||
},
|
||||
create(context) {
|
||||
return createNodeVisitors(context, 'alphabetical');
|
||||
},
|
||||
};
|
||||
|
||||
export default alphabeticalOrderRule;
|
||||
Loading…
Add table
Add a link
Reference in a new issue