Skip to content

Commit

Permalink
Update eslint config (#385)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
fatso83 authored May 29, 2021
1 parent e0afa92 commit 843e307
Show file tree
Hide file tree
Showing 6 changed files with 2,090 additions and 1,711 deletions.
14 changes: 2 additions & 12 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
extends:
- sinon

plugins:
- ie11

rules:
ie11/no-collection-args: error
ie11/no-for-in-const: error
ie11/no-loop-func: warn
ie11/no-weak-collections: error
prettier/prettier: off
- "@sinonjs/eslint-config"

overrides:
- files: "**/*-test.js"
Expand All @@ -20,7 +10,7 @@ overrides:
rules:
max-nested-callbacks: off
mocha/no-exclusive-tests: error
- files: "**/*.ts"
- files: "test/**.ts"
parserOptions:
ecmaVersion: 2020
sourceType: 'module'
Expand Down
Loading

0 comments on commit 843e307

Please sign in to comment.