Skip to content

Commit

Permalink
fix rules (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Kangrui Ye <kangrui.ye@cloudflight.io>
  • Loading branch information
strawberry-choco authored May 17, 2023
1 parent ec8ad5c commit 43f5326
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflight",
"version": "0.5.2",
"version": "0.6.0",
"scripts": {
"build": "yarn workspaces foreach -t run build-package",
"lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-plugin-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/stylelint-plugin-angular",
"version": "0.5.2",
"version": "0.6.0",
"author": "Cloudflight GmbH",
"license": "Apache-2.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-plugin-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/stylelint-plugin-vue",
"version": "0.5.2",
"version": "0.6.0",
"author": "Cloudflight GmbH",
"license": "Apache-2.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/stylelint-plugin",
"version": "0.5.2",
"version": "0.6.0",
"author": "Cloudflight GmbH",
"license": "Apache-2.0",
"scripts": {
Expand Down
12 changes: 11 additions & 1 deletion packages/stylelint-plugin/src/lib/stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ module.exports = {
'named-grid-areas-no-invalid': true,
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'function-no-unknown': true,
// these 2 rules don't work well with @function
'function-no-unknown': null,
'scss/function-no-unknown': null,
'string-no-newline': true,
'unit-no-unknown': true,
'custom-property-no-missing-var-function': true,
Expand Down Expand Up @@ -39,13 +41,21 @@ module.exports = {
'order/properties-alphabetical-order': null,
'order/order': [
[
{
type: 'at-rule',
name: 'extend',
},
{
type: 'at-rule',
name: 'include',
},
'custom-properties',
'dollar-variables',
'declarations',
{
type: 'at-rule',
name: 'media',
},
'rules',
],
{
Expand Down

0 comments on commit 43f5326

Please sign in to comment.