@enormora/eslint-config-vitest 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +29 -0
package/package.json
CHANGED
package/readme.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# `@enormora/eslint-config-vitest`
|
|
2
|
+
|
|
3
|
+
Config preset for `vitest`, enabling specific rules and configures global variables.
|
|
4
|
+
|
|
5
|
+
## Install & Setup
|
|
6
|
+
|
|
7
|
+
Install the `@enormora/eslint-config-vitest` and the base preset package via npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-vitest
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and mocha config to the configuration array:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import { baseConfig } from '@enormora/eslint-config-base';
|
|
17
|
+
import { vitestConfig } from '@enormora/eslint-config-vitest';
|
|
18
|
+
|
|
19
|
+
export default [
|
|
20
|
+
{
|
|
21
|
+
ignores: ['dist/**/*']
|
|
22
|
+
},
|
|
23
|
+
baseConfig,
|
|
24
|
+
{
|
|
25
|
+
...vitestConfig,
|
|
26
|
+
files: ['**/*.test.js']
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
```
|