-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: activate prettier for scss (#1468)
- Loading branch information
1 parent
f95f4f9
commit fac6ad4
Showing
104 changed files
with
1,778 additions
and
1,797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"printWidth": 90, | ||
"useTabs": true, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"bracketSpacing": false | ||
"printWidth": 90, | ||
"useTabs": false, | ||
"tabWidth": 3, | ||
"singleQuote": true, | ||
"bracketSpacing": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module.exports = { | ||
random() { | ||
const segment = () => { | ||
// eslint-disable-next-line no-bitwise | ||
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | ||
}; | ||
return `${segment()}-${segment()}-${segment()}`; | ||
}, | ||
now: Date.now(), | ||
random() { | ||
const segment = () => { | ||
// eslint-disable-next-line no-bitwise | ||
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | ||
}; | ||
return `${segment()}-${segment()}-${segment()}`; | ||
}, | ||
now: Date.now(), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module.exports = { | ||
getNextHeadingLevel(currentLevel) { | ||
return parseInt(currentLevel, 10) + 1; | ||
}, | ||
getReadingTime(text) { | ||
const wordsPerMinute = 200; | ||
const numberOfWords = text.split(/\s/g).length; | ||
return Math.ceil(numberOfWords / wordsPerMinute); | ||
}, | ||
getNextHeadingLevel(currentLevel) { | ||
return parseInt(currentLevel, 10) + 1; | ||
}, | ||
getReadingTime(text) { | ||
const wordsPerMinute = 200; | ||
const numberOfWords = text.split(/\s/g).length; | ||
return Math.ceil(numberOfWords / wordsPerMinute); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
const tokens = require('./tokens.json'); | ||
|
||
module.exports = { | ||
colors() { | ||
let response = []; | ||
colors() { | ||
let response = []; | ||
|
||
Object.keys(tokens.colors).forEach((key) => { | ||
response.push({ | ||
value: tokens.colors[key], | ||
key, | ||
}); | ||
}); | ||
Object.keys(tokens.colors).forEach((key) => { | ||
response.push({ | ||
value: tokens.colors[key], | ||
key, | ||
}); | ||
}); | ||
|
||
return response; | ||
}, | ||
sizes() { | ||
let response = []; | ||
return response; | ||
}, | ||
sizes() { | ||
let response = []; | ||
|
||
Object.keys(tokens['size-scale']).forEach((key) => { | ||
response.push({ | ||
value: tokens['size-scale'][key], | ||
key, | ||
}); | ||
}); | ||
Object.keys(tokens['size-scale']).forEach((key) => { | ||
response.push({ | ||
value: tokens['size-scale'][key], | ||
key, | ||
}); | ||
}); | ||
|
||
return response; | ||
}, | ||
return response; | ||
}, | ||
}; |
Oops, something went wrong.