Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 0f3d875

Browse files
author
george
committed
remove unnecessary rules and update em scss func
1 parent 167d2ab commit 0f3d875

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,5 @@ module.exports = {
208208
// jsx-a11y
209209
"jsx-a11y/no-noninteractive-element-interactions": OFF,
210210
"jsx-a11y/no-interactive-element-to-noninteractive-role": OFF,
211-
212-
// used for undernet only
213-
"no-console": OFF,
214211
},
215212
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"sass": "src/scss/undernet.scss",
1212
"style": "dist/undernet.css",
1313
"scripts": {
14-
"setup": "npm i && npm run js:build",
14+
"postinstall": "npm run build:dist",
1515
"watch": "webpack-dev-server --config webpack.dev.js --progress",
1616
"build": "npm run js:build && webpack --config webpack.prod.js",
1717
"test": "jest",

src/scss/utilities/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$base-em-font-size: 16px !default;
1010

1111
@function em($pixels, $font-size: $base-em-font-size) {
12-
@return #{$pixels / $font-size} * 1em;
12+
@return #{$pixels / $font-size}em;
1313
}
1414

1515
@function spacing($increment) {

stylelint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ module.exports = {
104104

105105
"time-min-milliseconds": 150,
106106

107-
"unicode-bom": NEVER,
108-
109107
"unit-blacklist": [],
110108
"unit-no-unknown": true,
111109
"unit-whitelist": ["em", "%", "px", "vw", "vh", "s", "ms", "deg"],

0 commit comments

Comments
 (0)