Skip to content

Commit 843e307

Browse files
authored
Update eslint config (#385)
* Simplify setup moving to @sinonjs/eslint-config@4 * Eslint & Prettier on check-types.ts * eslint-mocha: no setup in describe * eslint: remove ie11 references * eslint: fix all errors in src * eslint jsdoc: fix most non-TS related issues The remaining issues are mostly to do with invalid types that have been described using TypeScript, not JSDoc types. We will most probably revert these to valid JSDoc and forego of the produced TypeScript definitions.
1 parent e0afa92 commit 843e307

File tree

6 files changed

+2090
-1711
lines changed

6 files changed

+2090
-1711
lines changed

.eslintrc.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
extends:
2-
- sinon
3-
4-
plugins:
5-
- ie11
6-
7-
rules:
8-
ie11/no-collection-args: error
9-
ie11/no-for-in-const: error
10-
ie11/no-loop-func: warn
11-
ie11/no-weak-collections: error
12-
prettier/prettier: off
2+
- "@sinonjs/eslint-config"
133

144
overrides:
155
- files: "**/*-test.js"
@@ -20,7 +10,7 @@ overrides:
2010
rules:
2111
max-nested-callbacks: off
2212
mocha/no-exclusive-tests: error
23-
- files: "**/*.ts"
13+
- files: "test/**.ts"
2414
parserOptions:
2515
ecmaVersion: 2020
2616
sourceType: 'module'

0 commit comments

Comments
 (0)