Skip to content

Commit

Permalink
Chore/no commented out tests (#207)
Browse files Browse the repository at this point in the history
* feat: initial commit

* feat: update to latest version

* chore: merge things

* chore: update

* feat: updated

* chore: updated docs

* chore: updated packages

* chore(deps-dev): bump vitest from 0.33.0 to 0.34.1 (#227)

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.33.0 to 0.34.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.34.1/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/node from 20.4.5 to 20.5.0 (#226)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.5 to 20.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/eslint-plugin (#229)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.2.0 to 6.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.4.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/rule-tester from 6.3.0 to 6.4.0 (#228)

Bumps [@typescript-eslint/rule-tester](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/rule-tester) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/rule-tester/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.4.0/packages/rule-tester)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/rule-tester"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: initial commit

* feat: update to latest version

* chore: merge things

* chore: updated packages

* feat: updated

* chore: updated docs

* chore: updated packages

* chore: updated packages

* feat: update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
veritem and dependabot[bot] committed Aug 20, 2023
1 parent e148a7a commit ffe258e
Show file tree
Hide file tree
Showing 13 changed files with 4,774 additions and 342 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"tab"
],
"no-case-declarations": 0,
"no-tabs": "off"
"no-tabs": "off",
"vitest/unbound-method": "off"
}
}
49 changes: 49 additions & 0 deletions docs/rules/unbound-method.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Enforce unbound methods are called with their expected scope (`vitest/unbound-method`)

⚠️ This rule _warns_ in the 🌐 `all` config.

💭 This rule requires type information.

<!-- end auto-generated rule header -->

This rule extends the base [`@typescript-eslint/unbound-method`][original-rule]
rule, meaning you must depend on `@typescript-eslint/eslint-plugin` for it to
work. It adds support for understanding when it's ok to pass an unbound method
to `expect` calls.

### How to use this rule

This rule is enabled in the `all` config.


```json5
{
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
ecmaVersion: 2020,
sourceType: 'module',
},
overrides: [
{
files: ['test/**'],
plugins: ['vitest'],
rules: {
'@typescript-eslint/unbound-method': 'off',
'vitest/unbound-method': 'error',
},
},
],
rules: {
'@typescript-eslint/unbound-method': 'error',
},
}
```

### Options

<<<<<<< HEAD
Checkout [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) options. including `ignoreStatic`
=======
Checkout [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) options. including `ignoreStatic`
>>>>>>> 0c36b95 (chore: updated docs)
5 changes: 4 additions & 1 deletion fixtures/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": [
"plugin:vitest/all"
]
],
"rules": {
"vitest/unbound-method": "off"
}
}
6 changes: 3 additions & 3 deletions fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"license": "MIT",
"dependencies": {
"eslint-plugin-vitest": "link:../",
"vitest": "^0.33.0"
"vitest": "^0.34.2"
},
"devDependencies": {
"eslint": "^8.45.0"
"eslint": "^8.47.0"
}
}
}
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,26 @@
"update:eslint-docs": "pnpm build && eslint-doc-generator"
},
"devDependencies": {
"@babel/types": "^7.22.5",
"@babel/types": "^7.22.10",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.5",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@typescript-eslint/rule-tester": "^6.2.0",
"@types/node": "^20.5.1",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@typescript-eslint/rule-tester": "^6.4.0",
"@veritem/eslint-config": "^0.0.11",
"bumpp": "^9.1.1",
"bumpp": "^9.2.0",
"concurrently": "^8.2.0",
"eslint": "^8.45.0",
"eslint": "^8.47.0",
"eslint-doc-generator": "^1.4.3",
"eslint-plugin-eslint-plugin": "^5.1.1",
"eslint-plugin-node": "^11.1.0",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "^1.0.1",
"jiti": "^1.19.1",
"jiti": "^1.19.3",
"ts-node": "^10.9.1",
"tsx": "^3.12.7",
"unbuild": "^1.2.1",
"vitest": "^0.34.1"
"vitest": "^0.34.2"
},
"engines": {
"node": "14.x || >= 16"
Expand All @@ -68,11 +68,14 @@
"vitest": "*"
},
"peerDependenciesMeta": {
"vite": {
"@typescript-eslint/eslint-plugin": {
"optional": true
},
"vitest": {
"vitest": "*"
}
},
"dependencies": {
"@typescript-eslint/utils": "^6.2.0"
"@typescript-eslint/utils": "^6.4.0"
}
}
Loading

0 comments on commit ffe258e

Please sign in to comment.