mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
build(styleint): update lint
This commit is contained in:
parent
5b9fe5f7e8
commit
cf0dd0f260
@ -26,4 +26,7 @@
|
|||||||
PATH="/usr/local/bin:$PATH"
|
PATH="/usr/local/bin:$PATH"
|
||||||
|
|
||||||
# Format and submit code according to lintstagedrc configuration
|
# Format and submit code according to lintstagedrc configuration
|
||||||
|
npm run lint
|
||||||
|
npm run lint:prettier
|
||||||
|
npm run lint:stylelint
|
||||||
npm run lint:lint-staged
|
npm run lint:lint-staged
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -50,7 +50,7 @@
|
|||||||
"lint-staged": "^12.1.3",
|
"lint-staged": "^12.1.3",
|
||||||
"node-sass": "^8.0.0",
|
"node-sass": "^8.0.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-html": "^1.3.0",
|
"postcss-html": "^1.5.0",
|
||||||
"postcss-scss": "^4.0.2",
|
"postcss-scss": "^4.0.2",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"sass": "^1.56.1",
|
"sass": "^1.56.1",
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
"lint-staged": "^12.1.3",
|
"lint-staged": "^12.1.3",
|
||||||
"node-sass": "^8.0.0",
|
"node-sass": "^8.0.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-html": "^1.3.0",
|
"postcss-html": "^1.5.0",
|
||||||
"postcss-scss": "^4.0.2",
|
"postcss-scss": "^4.0.2",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"sass": "^1.56.1",
|
"sass": "^1.56.1",
|
||||||
|
@ -20,9 +20,8 @@ body {
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #3d444f;
|
color: #3d444f;
|
||||||
font-family: Helvetica, Arial, "Source Han Sans CN", "Microsoft YaHei",
|
font-family: Helvetica, Arial, "Source Han Sans CN", "Microsoft YaHei", sans-serif;
|
||||||
sans-serif;
|
text-rendering: optimizelegibility;
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
customSyntax: "postcss-html",
|
||||||
plugins: ["stylelint-order"],
|
plugins: ["stylelint-order"],
|
||||||
customSyntax: "postcss-scss",
|
|
||||||
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
|
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
|
||||||
rules: {
|
rules: {
|
||||||
|
"function-no-unknown": null,
|
||||||
"selector-class-pattern": null,
|
"selector-class-pattern": null,
|
||||||
"selector-pseudo-class-no-unknown": [
|
"selector-pseudo-class-no-unknown": [
|
||||||
true,
|
true,
|
||||||
@ -52,6 +52,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
"no-empty-source": null,
|
"no-empty-source": null,
|
||||||
|
"string-quotes": null,
|
||||||
"named-grid-areas-no-invalid": null,
|
"named-grid-areas-no-invalid": null,
|
||||||
"unicode-bom": "never",
|
"unicode-bom": "never",
|
||||||
"no-descending-specificity": null,
|
"no-descending-specificity": null,
|
||||||
@ -89,7 +90,7 @@ module.exports = {
|
|||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: ["*.vue", "**/*.vue", "*.html", "**/*.html"],
|
files: ["*.vue", "**/*.vue", "*.html", "**/*.html"],
|
||||||
extends: ["stylelint-config-recommended", "stylelint-config-html"],
|
extends: ["stylelint-config-recommended"],
|
||||||
rules: {
|
rules: {
|
||||||
"keyframes-name-pattern": null,
|
"keyframes-name-pattern": null,
|
||||||
"selector-pseudo-class-no-unknown": [
|
"selector-pseudo-class-no-unknown": [
|
||||||
@ -106,5 +107,10 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
files: ["*.less", "**/*.less"],
|
||||||
|
customSyntax: "postcss-less",
|
||||||
|
extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user