We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5faac commit e6603cbCopy full SHA for e6603cb
src/cssModuleToInterface.js
@@ -1,4 +1,5 @@
1
import path from 'path';
2
+import os from 'os';
3
4
const filenameToInterfaceName = (filename) => {
5
return path.basename(filename)
@@ -9,13 +10,13 @@ const filenameToInterfaceName = (filename) => {
9
10
const cssModuleToTypescriptInterfaceProperties = (cssModuleKeys, indent = ' ') => {
11
return cssModuleKeys
12
.map((key) => `${indent}'${key}': string;`)
- .join('\n');
13
+ .join(os.EOL);
14
};
15
16
const cssModuleToNamedExports = (cssModuleKeys) => {
17
18
.map((key) => `export const ${key}: string;`)
19
20
21
22
const allWordsRegexp = /^\w+$/i;
0 commit comments