Skip to content

Commit

Permalink
refactor: code hygiene (#235)
Browse files Browse the repository at this point in the history
* refactor: convert eslint config file

* deps: bump eslint

* deps: remove bluebird

* refactor: remove dead code

* refactor: remove unused dependencies

* refactor: consistent styling
  • Loading branch information
alexplischke authored Oct 16, 2023
1 parent dcd13dd commit 1d2db3c
Show file tree
Hide file tree
Showing 9 changed files with 966 additions and 491 deletions.
37 changes: 37 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es2022": true
},
"rules": {
"no-control-regex": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "warn"
},
"ignorePatterns": ["src/sauce.config.mjs"],
"overrides": [
{
"files": ["tests/**/*.js"],
"plugins": ["jest"],
"env": {
"jest": true
},
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}
]
}
34 changes: 0 additions & 34 deletions .eslintrc.cjs

This file was deleted.

Loading

0 comments on commit 1d2db3c

Please sign in to comment.