2025-03-04 20:16:50 +02:00
|
|
|
import alphabeticalOrderRule from './css-rules/alphabetical-order/index.js';
|
|
|
|
|
import concentricOrderRule from './css-rules/concentric-order/index.js';
|
|
|
|
|
import customOrderRule from './css-rules/custom-order/rule-definition.js';
|
2025-04-06 11:37:34 +03:00
|
|
|
import noEmptyStyleBlocksRule from './css-rules/no-empty-blocks/rule-definition.js';
|
2025-04-12 20:43:11 +03:00
|
|
|
import noZeroUnitRule from './css-rules/no-zero-unit/rule-definition.js';
|
2025-03-04 20:16:50 +02:00
|
|
|
|
|
|
|
|
export const vanillaExtract = {
|
|
|
|
|
meta: {
|
|
|
|
|
name: '@antebudimir/eslint-plugin-vanilla-extract',
|
2025-04-12 20:43:11 +03:00
|
|
|
version: '1.8.0',
|
2025-03-04 20:16:50 +02:00
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
'alphabetical-order': alphabeticalOrderRule,
|
|
|
|
|
'concentric-order': concentricOrderRule,
|
|
|
|
|
'custom-order': customOrderRule,
|
2025-04-06 11:37:34 +03:00
|
|
|
'no-empty-style-blocks': noEmptyStyleBlocksRule,
|
2025-04-12 20:43:11 +03:00
|
|
|
'no-zero-unit': noZeroUnitRule,
|
2025-03-04 20:16:50 +02:00
|
|
|
},
|
|
|
|
|
configs: {
|
2025-04-07 13:00:55 +03:00
|
|
|
recommended: {
|
|
|
|
|
plugins: ['vanilla-extract'],
|
|
|
|
|
rules: {
|
|
|
|
|
'vanilla-extract/concentric-order': 'error',
|
|
|
|
|
'vanilla-extract/no-empty-style-blocks': 'error',
|
2025-04-12 20:43:11 +03:00
|
|
|
'vanilla-extract/no-zero-unit': 'error',
|
2025-03-04 20:16:50 +02:00
|
|
|
},
|
2025-04-07 13:00:55 +03:00
|
|
|
},
|
2025-03-04 20:16:50 +02:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default vanillaExtract;
|