Skip to content

Commit 6bd4bf1

Browse files
authored
feat(code): update linters (#999)
1 parent ab7997c commit 6bd4bf1

File tree

5 files changed

+49
-6
lines changed

5 files changed

+49
-6
lines changed

.stylelintrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"extends": ["stylelint-config-standard", "stylelint-config-standard-scss"],
3-
// "plugins": ["stylelint-order"],
2+
"extends": ["stylelint-config-standard-scss"],
3+
"plugins": ["stylelint-scss"],
44
"rules": {
5-
"selector-class-pattern": "^[a-z][\\w\\d]*((__[\\w\\d]+)?(--[a-z][\\w\\d]+)?|(--[a-z][\\w\\d]+(__[\\w\\d]+)?))$"
5+
"selector-class-pattern": "^[a-z][\\w\\d]*((__[\\w\\d]+)?(--[a-z][\\w\\d]+)?|(--[a-z][\\w\\d]+(__[\\w\\d]+)?))$",
6+
"media-feature-range-notation": "context",
7+
"scss/dollar-variable-pattern": null
68
}
79
}

.vscode/settings.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,20 @@
1414
"stylelint",
1515
"superintelligence",
1616
"websockets"
17-
]
17+
],
18+
"eslint.enable": true,
19+
"eslint.validate": [
20+
"javascript",
21+
"javascriptreact",
22+
"typescript",
23+
"typescriptreact"
24+
],
25+
"editor.codeActionsOnSave": {
26+
"source.fixAll.eslint": true
27+
},
28+
"css.validate": false,
29+
"less.validate": false,
30+
"scss.validate": false,
31+
"stylelint.snippet": ["css", "scss", "postcss"],
32+
"stylelint.validate": ["css", "scss", "postcss"]
1833
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@
125125
"stream-http": "^3.2.0",
126126
"style-loader": "^3.3.1",
127127
"stylelint": "^15.6.0",
128-
"stylelint-config-standard": "^33.0.0",
128+
"stylelint-config-clean-order": "^5.2.0",
129129
"stylelint-config-standard-scss": "^9.0.0",
130130
"stylelint-order": "^6.0.3",
131+
"stylelint-scss": "^5.3.1",
131132
"swr": "^1.0.1",
132133
"terser-webpack-plugin": "4.2.3",
133134
"ts-migrate": "^0.1.35",

src/style/index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable custom-property-empty-line-before */
12
@import url('./libs/index.scss');
23

34
:root {
@@ -33,6 +34,7 @@
3334
--text-opacity-4: 0.38;
3435
}
3536

37+
/* stylelint-disable */
3638
:export {
3739
primaryColor: var(--primary-color);
3840
greenLightColor: var(--green-light);

yarn.lock

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22583,6 +22583,11 @@ known-css-properties@^0.27.0:
2258322583
resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.27.0.tgz#82a9358dda5fe7f7bd12b5e7142c0a205393c0c5"
2258422584
integrity sha512-uMCj6+hZYDoffuvAJjFAPz56E9uoowFHmTkqRtRq5WyC5Q6Cu/fTZKNQpX/RbzChBYLLl3lo8CjFZBAZXq9qFg==
2258522585

22586+
known-css-properties@^0.29.0:
22587+
version "0.29.0"
22588+
resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.29.0.tgz#e8ba024fb03886f23cb882e806929f32d814158f"
22589+
integrity sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==
22590+
2258622591
kubo-rpc-client@^3.0.1:
2258722592
version "3.0.1"
2258822593
resolved "https://registry.yarnpkg.com/kubo-rpc-client/-/kubo-rpc-client-3.0.1.tgz#61e4c64ccab6bf1bb6147dc8c45a423b95638fa7"
@@ -30192,6 +30197,13 @@ stylehacks@^5.1.1:
3019230197
browserslist "^4.21.4"
3019330198
postcss-selector-parser "^6.0.4"
3019430199

30200+
stylelint-config-clean-order@^5.2.0:
30201+
version "5.2.0"
30202+
resolved "https://registry.yarnpkg.com/stylelint-config-clean-order/-/stylelint-config-clean-order-5.2.0.tgz#4462256111740d1e777515bf24d3b9805ed05e12"
30203+
integrity sha512-eAB9ftPa8txPFY2oh4NIE3DFkNzqVEBIALUZhSXP0+6CISPjZPBoOV24shjC9DgOKr7rNPY52DAXBXIBI//Mhg==
30204+
dependencies:
30205+
stylelint-order "^6.0.2"
30206+
3019530207
stylelint-config-recommended-scss@^11.0.0:
3019630208
version "11.0.0"
3019730209
resolved "https://registry.yarnpkg.com/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-11.0.0.tgz#7b933ecac99cd3b52d14d1746e3ecd36f421b4b6"
@@ -30221,7 +30233,7 @@ stylelint-config-standard@^33.0.0:
3022130233
dependencies:
3022230234
stylelint-config-recommended "^12.0.0"
3022330235

30224-
stylelint-order@^6.0.3:
30236+
stylelint-order@^6.0.2, stylelint-order@^6.0.3:
3022530237
version "6.0.3"
3022630238
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-6.0.3.tgz#160b78650bd90463241b992581efee7159baefc2"
3022730239
integrity sha512-1j1lOb4EU/6w49qZeT2SQVJXm0Ht+Qnq9GMfUa3pMwoyojIWfuA+JUDmoR97Bht1RLn4ei0xtLGy87M7d29B1w==
@@ -30239,6 +30251,17 @@ stylelint-scss@^4.6.0:
3023930251
postcss-selector-parser "^6.0.11"
3024030252
postcss-value-parser "^4.2.0"
3024130253

30254+
stylelint-scss@^5.3.1:
30255+
version "5.3.1"
30256+
resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-5.3.1.tgz#7f0f5f06d0a2a3c515aa71d3a8de3548045e03e1"
30257+
integrity sha512-5I9ZDIm77BZrjOccma5WyW2nJEKjXDd4Ca8Kk+oBapSO4pewSlno3n+OyimcyVJJujQZkBN2D+xuMkIamSc6hA==
30258+
dependencies:
30259+
known-css-properties "^0.29.0"
30260+
postcss-media-query-parser "^0.2.3"
30261+
postcss-resolve-nested-selector "^0.1.1"
30262+
postcss-selector-parser "^6.0.13"
30263+
postcss-value-parser "^4.2.0"
30264+
3024230265
stylelint@^15.6.0:
3024330266
version "15.10.1"
3024430267
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-15.10.1.tgz#93f189958687e330c106b010cbec0c41dcae506d"

0 commit comments

Comments
 (0)