Skip to content

Commit

Permalink
chore: added more types
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Jan 10, 2022
1 parent 5929ebe commit 718df20
Show file tree
Hide file tree
Showing 13 changed files with 1,460 additions and 736 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
},
overrides: [
{
files: ["tests/**/*.js"],
files: ["tests/**/*.ts"],
env: { mocha: true },
},
],
Expand Down
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src
tests
node_modules
unbouild.config.ts
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,20 @@ Add `vitest` to the plugins section of your `.eslintrc` configuration file. You

```json
{
"plugins": [
"vitest"
]
"plugins": ["vitest"]
}
```


Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"vitest/rule-name": 2
}
"rules": {
"vitest/rule-name": 2
}
}
```

## Supported Rules

* Fill in provided rules here


- Fill in provided rules here
4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from '/home/veritem/dev/eslint-plugin-vitest/src/index';
export { default } from '/home/veritem/dev/eslint-plugin-vitest/src/index';
export * from "/home/veritem/dev/eslint-plugin-vitest/src/index";
export { default } from "/home/veritem/dev/eslint-plugin-vitest/src/index";
6 changes: 4 additions & 2 deletions dist/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import jiti from 'jiti';
export default jiti(null, { interopDefault: true })('/home/veritem/dev/eslint-plugin-vitest/src/index');
import jiti from "jiti";
export default jiti(null, { interopDefault: true })(
"/home/veritem/dev/eslint-plugin-vitest/src/index"
);
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@
"scripts": {
"dev": "unbuild --stub",
"lint": "eslint .",
"test": "mocha tests --recursive"
"test": "vitest --watch",
"format": "prettier --write --plugin-search-dir=. ."
},
"devDependencies": {
"eslint": "^8.0.1",
"eslint-plugin-eslint-plugin": "^4.0.1",
"eslint-plugin-node": "^11.1.0",
"jiti": "^1.12.9",
"mocha": "^9.1.3",
"unbuild": "^0.6.7"
"prettier": "^2.5.1",
"unbuild": "^0.6.7",
"vitest": "^0.0.139"
},
"engines": {
"node": "14.x || >= 16"
},
"peerDependencies": {
"eslint": ">=6"
},
"license": "MIT"
"license": "MIT",
"dependencies": {
"@typescript-eslint/experimental-utils": "^5.9.0"
}
}
Loading

0 comments on commit 718df20

Please sign in to comment.