Skip to content

Commit 4efe6b2

Browse files
chore: update lint configurations; root tsconfig
1 parent 327efda commit 4efe6b2

File tree

6 files changed

+25
-6
lines changed

6 files changed

+25
-6
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"allowElseIf": false
116116
}
117117
],
118-
"no-inferrable-types": "off",
119118
"no-invalid-this": ["error"],
120119
"no-magic-numbers": [
121120
"error",
@@ -211,6 +210,7 @@
211210
{ "selector": "typeParameter", "format": ["PascalCase"], "prefix": ["T"] }
212211
],
213212
"@typescript-eslint/no-extra-semi": ["off"],
213+
"@typescript-eslint/no-inferrable-types": ["off"],
214214
"@typescript-eslint/no-unused-vars": ["error"],
215215
"@typescript-eslint/no-use-before-define": [
216216
"error",

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.modules
33
.nyc_output
44
.prettierignore
5+
.tsconfig.*
56
.yarn-cache
67
*.pug
78
*.tf

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"printWidth": 120,
2+
"printWidth": 115,
33
"semi": false,
44
"singleQuote": true,
55
"trailingComma": "all"

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"chai-as-promised": "^7.1.1",
4545
"colors": "^1.4.0",
4646
"coveralls": "^3.0.9",
47+
"dotenv": "^8.2.0",
4748
"eslint": "^7.4.0",
4849
"eslint-plugin-import": "^2.22.0",
4950
"eslint-plugin-mocha": "^7.0.1",

tsconfig.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@
77
"declaration": true,
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
10+
"resolveJsonModule": true,
1011
"outDir": "out",
11-
"lib": ["es2015", "es2016", "es2017", "es2018"],
12+
"lib": [
13+
"ESNext"
14+
],
1215
"baseUrl": ".",
1316
"paths": {
14-
"@dandi/*": ["./packages/dandi/*"],
15-
"@dandi-contrib/*": ["./packages/dandi-contrib/*"]
17+
"@dandi/*": [
18+
"./packages/dandi/*"
19+
],
20+
"@dandi-contrib/*": [
21+
"./packages/dandi-contrib/*"
22+
]
1623
}
17-
}
24+
},
25+
"exclude": [
26+
"node_modules",
27+
"out",
28+
"builder/dist"
29+
]
1830
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,11 @@ doctrine@^3.0.0:
785785
dependencies:
786786
esutils "^2.0.2"
787787

788+
dotenv@^8.2.0:
789+
version "8.2.0"
790+
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
791+
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
792+
788793
ecc-jsbn@~0.1.1:
789794
version "0.1.2"
790795
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"

0 commit comments

Comments
 (0)