diff --git a/.flowconfig b/.flowconfig index 5b4a7408..ba88cc40 100644 --- a/.flowconfig +++ b/.flowconfig @@ -5,6 +5,7 @@ [libs] flow-typed +./node_modules/stylelint/decls [lints] diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 00000000..34e3600b --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,6 @@ +{ + //"extends": "stylelint-config-standard", + "rules": { + "indentation": 4, + } +} diff --git a/package.json b/package.json index 5dc99bcd..17de912f 100644 --- a/package.json +++ b/package.json @@ -47,13 +47,15 @@ "pre-commit": "^1.2.2", "selenium-webdriver": "^2.48.2", "sri-toolbox": "^0.2.0", + "stylelint": "^8.2.0", + "stylelint-config-standard": "^17.0.0", "uglify-js": "~2.7.5", "webpack": "^3.6.0", "webpack-dev-server": "^2.8.2" }, "bin": "cli.js", "scripts": { - "lint": "eslint katex.js server.js cli.js src test contrib dockers", + "lint": "eslint katex.js server.js cli.js src test contrib dockers && stylelint static/fonts.less static/katex.less", "flow": "flow", "jest": "jest", "coverage": "jest --coverage", diff --git a/static/katex.less b/static/katex.less index 721867aa..f29cf1c0 100644 --- a/static/katex.less +++ b/static/katex.less @@ -294,7 +294,7 @@ text-align: center; } - .frac-line { + .frac-line { display: inline-block; width: 100%; border-bottom-style: solid;