
Most rules are derived from the `airbnb` template. Some "bad" rule exceptions remain, but they require too many changes to fix, so we leave it to a future refactoring.
18 lines
523 B
JavaScript
18 lines
523 B
JavaScript
/**
|
||
* Generates a 64 character long javascript string out of the whole utf-8 range.
|
||
*/
|
||
function createSomeMessage() {
|
||
const arr = [];
|
||
for (let i = 0; i < 30; i++) {
|
||
arr.push(Math.floor(Math.random() * 10174) + 1);
|
||
}
|
||
for (let i = 0; i < 10; i++) {
|
||
arr.push(0x1F600 + Math.floor(Math.random() * (0x1F64F - 0x1F600)) + 1);
|
||
}
|
||
return ' \t' + String.fromCodePoint(...arr).replace(/[\r\u2028\u2029]/g, '\n') + ' \t\n한국어/조선말';
|
||
}
|
||
|
||
module.exports = {
|
||
createSomeMessage: createSomeMessage
|
||
};
|