@saashub/qoq-eslint-v9-ts-vitest 0.7.4 → 0.7.5

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @saashub/qoq-eslint-v9-ts-vitest
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/%40saashub%2Fqoq-eslint-v9-ts-vitest)
3
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/saashub-it/qoq/main.yml) ![NPM Version](https://img.shields.io/npm/v/%40saashub%2Fqoq-eslint-v9-ts-vitest)
4
4
  ![NPM Type Definitions](https://img.shields.io/npm/types/%40saashub%2Fqoq-eslint-v9-ts-vitest) ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40saashub%2Fqoq-eslint-v9-ts-vitest) ![NPM License](https://img.shields.io/npm/l/%40saashub%2Fqoq-eslint-v9-ts-vitest)
5
5
 
6
6
  ## Rationale
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@saashub/qoq-eslint-v9-ts-vitest",
3
3
  "description": "Eslint flat config template for TS + Vitest",
4
4
  "license": "MIT",
5
- "version": "0.7.4",
5
+ "version": "0.7.5",
6
6
  "main": "./lib/index.js",
7
7
  "module": "./lib/index.mjs",
8
8
  "types": "./lib/index.d.js",
@@ -33,11 +33,12 @@
33
33
  "access": "public"
34
34
  },
35
35
  "scripts": {
36
- "build": "rimraf ./lib && rollup -c --silent"
36
+ "build": "rimraf ./lib && rollup -c --silent",
37
+ "inspect": "npm run build && eslint -c ./lib/eslintConfig.js --inspect-config"
37
38
  },
38
39
  "dependencies": {
39
- "@saashub/qoq-eslint-v9-js-vitest": "^0.7.4",
40
- "@saashub/qoq-eslint-v9-ts": "^0.7.4",
40
+ "@saashub/qoq-eslint-v9-js-vitest": "^0.7.5",
41
+ "@saashub/qoq-eslint-v9-ts": "^0.7.5",
41
42
  "lodash": "4.17.21"
42
43
  },
43
44
  "devDependencies": {
@@ -45,7 +46,7 @@
45
46
  "@types/eslint": "^9",
46
47
  "@types/lodash": "4.17.7",
47
48
  "rimraf": "6.0.1",
48
- "rollup": "4.21.0",
49
+ "rollup": "4.21.1",
49
50
  "typescript": "5.5.4"
50
51
  },
51
52
  "peerDependencies": {
@@ -64,5 +65,5 @@
64
65
  "directory": "packages/eslint-v9-ts-vitest"
65
66
  },
66
67
  "homepage": "https://github.com/saashub-it/qoq/tree/master/packages/eslint-v9-ts-vitest",
67
- "gitHead": "25afae5edb4d2bfcf293c268a8f6b20fa039d90d"
68
+ "gitHead": "0b971e80f5229931e3645b72d16c7798dee804f9"
68
69
  }
@@ -1,9 +1,10 @@
1
1
  import { describe, test, expect } from 'vitest';
2
+ import { execSync } from 'child_process';
2
3
  import { ESLint } from 'eslint';
3
4
 
4
5
  import eslintConfig from './eslintConfig';
5
6
 
6
- describe('eslintConfig', () => {
7
+ describe('baseConfig', () => {
7
8
  test('can constuct Eslint object', () => {
8
9
  expect(
9
10
  () =>
@@ -12,4 +13,12 @@ describe('eslintConfig', () => {
12
13
  })
13
14
  ).not.toThrowError();
14
15
  });
16
+
17
+ test('can execute Eslint with compiled config', async () => {
18
+ const projectPath = __dirname.replace('/src', '');
19
+
20
+ expect(() =>
21
+ execSync(`eslint ${projectPath}/lib/index.js -c ${projectPath}/lib/eslintConfig.js `)
22
+ ).not.toThrowError();
23
+ });
15
24
  });