Skip to content

Commit 4b1e669

Browse files
committed
Cleanup
1 parent 55abe75 commit 4b1e669

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

.huskyrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
module.exports = {
24
hooks: {
35
'pre-commit': 'npm run precommit',

.stylelintrc.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// @ts-check
22

3-
module.exports = {
3+
/** @type {Partial<import('stylelint').Configuration>} */
4+
const config = {
45
extends: [
5-
// As of 2019/05/24, npm package stylelint-config-airbnb is still at v0.0.0
6-
// and has not seen a release for a year
7-
// See https://github.com/airbnb/css/pull/56
6+
// As of 2020/03/18, stylelint-config-airbnb is still at v0.0.0
7+
// Is this future proof?
8+
// https://github.com/airbnb/css/pull/56
89
'stylelint-config-airbnb',
910

1011
'stylelint-config-recommended-scss'
@@ -22,3 +23,5 @@ module.exports = {
2223
'function-calc-no-invalid': null
2324
}
2425
};
26+
27+
module.exports = config;

prettier.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
// @ts-check
22

3-
module.exports = {
3+
/** @type {import('prettier').Options} */
4+
const config = {
45
endOfLine: 'lf',
56

6-
// See https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#strings--quotes
7+
// https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#strings--quotes
78
//
89
// ["Holding down the shift key every time you want a string kinda stinks. Your carpal tunnel will
910
// thank you for using single quotes."](https://github.com/airbnb/javascript/issues/269#issuecomment-107319162)
1011
singleQuote: true,
1112

12-
// See https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#whitespace--max-len
13+
// https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v16.1.0#whitespace--max-len
1314
printWidth: 100,
1415

1516
htmlWhitespaceSensitivity: 'ignore'
1617
};
18+
19+
module.exports = config;

src/bootstrap4-input-spinner.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// <-------------> $input-height-inner = 36px
1515
//
1616

17-
// Remove inner calc() for IE, see https://github.com/postcss/autoprefixer/issues/1153
17+
// Remove inner calc() for IE, https://github.com/postcss/autoprefixer/issues/1153
1818
@function removeInnerCalc_IEFix($innerCalc) {
1919
@return str-replace($innerCalc, 'calc');
2020
}
@@ -36,7 +36,7 @@ input.is-loading {
3636
// #{$spinner-width-sm} +
3737
// #{removeInnerCalc_IEFix(#{$input-height-inner-quarter})}
3838
//);
39-
// See https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L59
39+
// https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L59
4040
padding-right: $input-height-inner;
4141
}
4242

@@ -51,7 +51,7 @@ input.is-loading {
5151
float: right;
5252

5353
// Same as the validation icons
54-
// See https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L62
54+
// https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L62
5555
margin-right: $input-height-inner-quarter;
5656

5757
margin-top: calc((#{removeInnerCalc_IEFix(#{$input-height})} + #{$spinner-height}) / -2);
@@ -65,9 +65,9 @@ input.is-loading {
6565

6666
// Handle <input class="form-control is-loading is-valid">
6767
//
68-
// See https://github.com/twbs/bootstrap/blob/v4.3.1/scss/_forms.scss#L245
68+
// https://github.com/twbs/bootstrap/blob/v4.3.1/scss/_forms.scss#L245
6969
@each $state, $data in $form-validation-states {
70-
// See https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L53-L55
70+
// https://github.com/twbs/bootstrap/blob/v4.3.1/scss/mixins/_forms.scss#L53-L55
7171
.form-control {
7272
.was-validated &:#{$state},
7373
&.is-#{$state} {

0 commit comments

Comments
 (0)