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"
|
||||
|
||||
# Format and submit code according to lintstagedrc configuration
|
||||
npm run lint
|
||||
npm run lint:prettier
|
||||
npm run lint:stylelint
|
||||
npm run lint:lint-staged
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -50,7 +50,7 @@
|
||||
"lint-staged": "^12.1.3",
|
||||
"node-sass": "^8.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-html": "^1.3.0",
|
||||
"postcss-html": "^1.5.0",
|
||||
"postcss-scss": "^4.0.2",
|
||||
"prettier": "^2.7.1",
|
||||
"sass": "^1.56.1",
|
||||
|
@ -60,7 +60,7 @@
|
||||
"lint-staged": "^12.1.3",
|
||||
"node-sass": "^8.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-html": "^1.3.0",
|
||||
"postcss-html": "^1.5.0",
|
||||
"postcss-scss": "^4.0.2",
|
||||
"prettier": "^2.7.1",
|
||||
"sass": "^1.56.1",
|
||||
|
@ -20,9 +20,8 @@ body {
|
||||
line-height: 1.5;
|
||||
font-size: 14px;
|
||||
color: #3d444f;
|
||||
font-family: Helvetica, Arial, "Source Han Sans CN", "Microsoft YaHei",
|
||||
sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-family: Helvetica, Arial, "Source Han Sans CN", "Microsoft YaHei", sans-serif;
|
||||
text-rendering: optimizelegibility;
|
||||
text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
|
@ -14,13 +14,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
customSyntax: "postcss-html",
|
||||
plugins: ["stylelint-order"],
|
||||
customSyntax: "postcss-scss",
|
||||
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
|
||||
rules: {
|
||||
"function-no-unknown": null,
|
||||
"selector-class-pattern": null,
|
||||
"selector-pseudo-class-no-unknown": [
|
||||
true,
|
||||
@ -52,6 +52,7 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
"no-empty-source": null,
|
||||
"string-quotes": null,
|
||||
"named-grid-areas-no-invalid": null,
|
||||
"unicode-bom": "never",
|
||||
"no-descending-specificity": null,
|
||||
@ -89,7 +90,7 @@ module.exports = {
|
||||
overrides: [
|
||||
{
|
||||
files: ["*.vue", "**/*.vue", "*.html", "**/*.html"],
|
||||
extends: ["stylelint-config-recommended", "stylelint-config-html"],
|
||||
extends: ["stylelint-config-recommended"],
|
||||
rules: {
|
||||
"keyframes-name-pattern": null,
|
||||
"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