mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Merge pull request #699 from ffflorian/fix/whitespace
fix: LF newlines, remove trailing whitespace
This commit is contained in:
committed by
Andrew Branch
parent
bb7badea38
commit
f33e17789a
9
packages/types-publisher/.editorconfig
Normal file
9
packages/types-publisher/.editorconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
@@ -1,17 +1,17 @@
|
||||
module.exports = {
|
||||
"roots": [
|
||||
"src"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
},
|
||||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.tsx?$",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
"js",
|
||||
"jsx",
|
||||
"json",
|
||||
"node"
|
||||
],
|
||||
"roots": [
|
||||
"src"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
},
|
||||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.tsx?$",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
"js",
|
||||
"jsx",
|
||||
"json",
|
||||
"node"
|
||||
],
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ to refer to @types/P if it relies on old versions of P's types.
|
||||
In this case, please make a pull request to types-publisher adding @types/P to \`dependenciesWhitelist.txt\`.`
|
||||
: `Dependency ${dependencyName} not in whitelist.
|
||||
If you are depending on another \`@types\` package, do *not* add it to a \`package.json\`. Path mapping should make the import work.
|
||||
For namespaced dependencies you then have to add a \`paths\` mapping from \`@namespace/library\` to \`namespace__library\` in \`tsconfig.json\`.
|
||||
For namespaced dependencies you then have to add a \`paths\` mapping from \`@namespace/library\` to \`namespace__library\` in \`tsconfig.json\`.
|
||||
If this is an external library that provides typings, please make a pull request to types-publisher adding it to \`dependenciesWhitelist.txt\`.`;
|
||||
throw new Error(`In ${path}: ${msg}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user