@shayanthenerd/eslint-config 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/css.mjs +27 -0
- package/dist/rules/unicorn.mjs +2 -0
- package/dist/types/eslint-schema.d.mts +628 -430
- package/package.json +19 -19
package/dist/rules/css.mjs
CHANGED
|
@@ -90,26 +90,53 @@ function getCssRules(options) {
|
|
|
90
90
|
allowSelectors: ["selection", ...userAllowedSelectors],
|
|
91
91
|
allowUnits: userAllowedUnits
|
|
92
92
|
}] : "off",
|
|
93
|
+
"cssicorn/consistent-compound-selector-order": "warn",
|
|
94
|
+
"cssicorn/consistent-layer-order": ["warn", { checkUndeclaredLayers: true }],
|
|
95
|
+
"cssicorn/consistent-property-order": "warn",
|
|
96
|
+
"cssicorn/consistent-value-order": "warn",
|
|
93
97
|
"cssicorn/lowercase": "error",
|
|
98
|
+
"cssicorn/no-clamped-values": "error",
|
|
94
99
|
"cssicorn/no-declarations-after-nested-rules": "warn",
|
|
95
100
|
"cssicorn/no-deprecated-features": "error",
|
|
96
101
|
"cssicorn/no-descending-specificity": "warn",
|
|
102
|
+
"cssicorn/no-disabled-pinch-zoom": "error",
|
|
103
|
+
"cssicorn/no-duplicate-at-rule-definitions": "warn",
|
|
97
104
|
"cssicorn/no-duplicate-font-family-names": "error",
|
|
98
105
|
"cssicorn/no-duplicate-properties": "warn",
|
|
99
106
|
"cssicorn/no-duplicate-selectors": "warn",
|
|
107
|
+
"cssicorn/no-ineffective-keyframe-declarations": "warn",
|
|
108
|
+
"cssicorn/no-ineffective-overrides": "error",
|
|
109
|
+
"cssicorn/no-ineffective-properties": "error",
|
|
110
|
+
"cssicorn/no-ineffective-selector-properties": "error",
|
|
111
|
+
"cssicorn/no-ineffective-supports-conditions": "error",
|
|
112
|
+
"cssicorn/no-ineffective-transitions": "error",
|
|
100
113
|
"cssicorn/no-invalid-media-features": "error",
|
|
114
|
+
"cssicorn/no-invalid-property-references": "error",
|
|
115
|
+
"cssicorn/no-layout-animations": "warn",
|
|
101
116
|
"cssicorn/no-nesting-with-mixed-specificity": "warn",
|
|
117
|
+
"cssicorn/no-overflow-axis-coercion": "error",
|
|
118
|
+
"cssicorn/no-redundant-functions": "warn",
|
|
102
119
|
"cssicorn/no-redundant-nested-style-rules": "warn",
|
|
120
|
+
"cssicorn/no-redundant-nesting-selector": "warn",
|
|
103
121
|
"cssicorn/no-redundant-shorthand-values": "warn",
|
|
104
122
|
"cssicorn/no-self-referencing-custom-properties": "error",
|
|
105
123
|
"cssicorn/no-unknown-animations": "error",
|
|
106
124
|
"cssicorn/no-unknown-annotations": "error",
|
|
107
125
|
"cssicorn/no-unknown-pseudo-selectors": ["error", { allow: userAllowedUnknownPseudoSelectors }],
|
|
108
126
|
"cssicorn/no-unscoped-nesting-selector": isEnabled(tailwind) ? "error" : ["error", { scopingRootAtRules: [] }],
|
|
127
|
+
"cssicorn/no-useless-is": "warn",
|
|
109
128
|
"cssicorn/no-zero-length-unit": "warn",
|
|
129
|
+
"cssicorn/prefer-aspect-ratio": "warn",
|
|
130
|
+
"cssicorn/prefer-clamp": "warn",
|
|
131
|
+
"cssicorn/prefer-current-color": "warn",
|
|
110
132
|
"cssicorn/prefer-explicit-viewport-units": "warn",
|
|
133
|
+
"cssicorn/prefer-individual-transform-properties": "warn",
|
|
134
|
+
"cssicorn/prefer-light-dark": "warn",
|
|
111
135
|
"cssicorn/prefer-media-feature-range-syntax": "warn",
|
|
136
|
+
"cssicorn/prefer-merged-rules": "warn",
|
|
112
137
|
"cssicorn/prefer-modern-syntax": "warn",
|
|
138
|
+
"cssicorn/prefer-nesting": "warn",
|
|
139
|
+
"cssicorn/prefer-relative-colors": "warn",
|
|
113
140
|
"cssicorn/require-property-descriptors": "error"
|
|
114
141
|
};
|
|
115
142
|
}
|
package/dist/rules/unicorn.mjs
CHANGED
|
@@ -100,6 +100,7 @@ function getUnicornRules(options) {
|
|
|
100
100
|
"unicorn/no-optional-chaining-on-undeclared-variable": "error",
|
|
101
101
|
"unicorn/no-prevent-default-in-passive-listener": "error",
|
|
102
102
|
"unicorn/no-redundant-comparison": "warn",
|
|
103
|
+
"unicorn/no-repeated-call-wrappers": "error",
|
|
103
104
|
"unicorn/no-return-array-push": "warn",
|
|
104
105
|
"unicorn/no-selector-as-dom-name": "error",
|
|
105
106
|
"unicorn/no-single-promise-in-promise-methods": "warn",
|
|
@@ -113,6 +114,7 @@ function getUnicornRules(options) {
|
|
|
113
114
|
"unicorn/no-unnecessary-array-flat-depth": "warn",
|
|
114
115
|
"unicorn/no-unnecessary-array-splice-count": "warn",
|
|
115
116
|
"unicorn/no-unnecessary-boolean-comparison": "warn",
|
|
117
|
+
"unicorn/no-unnecessary-default-arguments": "warn",
|
|
116
118
|
"unicorn/no-unnecessary-fetch-options": "warn",
|
|
117
119
|
"unicorn/no-unnecessary-global-this": "warn",
|
|
118
120
|
"unicorn/no-unnecessary-nested-ternary": "warn",
|