Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #157 from eyelidlessness/refactor/simplified-typed…
Browse files Browse the repository at this point in the history
…-tests

Type checking and simplification/cleanup of tests
  • Loading branch information
lognaturel committed Jan 4, 2023
2 parents e9aaf17 + 0da3c32 commit ad621e5
Show file tree
Hide file tree
Showing 19 changed files with 3,043 additions and 3,621 deletions.
69 changes: 64 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,56 @@
"globals": {
"Promise": true
},
"extends": ["airbnb", "prettier"],
"plugins": ["chai-friendly", "jsdoc", "prettier", "unicorn"],
"extends": ["plugin:@typescript-eslint/recommended", "airbnb", "prettier"],
"plugins": [
"chai-friendly",
"jsdoc",
"prettier",
"unicorn",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"settings": {
"import/extensions": [".js", ".ts"],
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
},
"jsdoc": {
"tagNamePreference": {
"returns": "return"
}
}
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "error",
"chai-friendly/no-unused-expressions": "error",
"prettier/prettier": "error",

"guard-for-in": "warn",
"import/extensions": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["vite.config.ts", "test/**/*.ts"],
"optionalDependencies": false,
"peerDependencies": false
}
],
"import/no-unresolved": [
"error",
{
"ignore": ["vitest/config"]
}
],
"import/order": "warn",
"no-param-reassign": "warn",
"no-restricted-syntax": [
Expand All @@ -35,6 +67,7 @@
],
"no-shadow": "warn",
"no-underscore-dangle": "warn",
"no-unused-expressions": "off",
"no-use-before-define": [
"warn",
{
Expand All @@ -53,9 +86,35 @@
},

{
"files": ["./test/**/*.js"],
"env": {
"mocha": true
"files": ["./**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},

{
"files": ["./**/*.ts"],
"rules": {
"@typescript-eslint/no-unused-expressions": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
},

{
"files": ["./test/**/*.ts"],
"plugins": ["vitest"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"no-undef": "off"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"exclude": ["node_modules"],
"include": ["src", "test", "typings"]
"include": ["src", "typings"]
}
6 changes: 0 additions & 6 deletions nyc.config.js

This file was deleted.

Loading

0 comments on commit ad621e5

Please sign in to comment.