@saashub/qoq-eslint-v9-ts-vitest 0.7.1 → 0.7.2

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 +1,42 @@
1
- # QoQ Eslint v9 TS + Jest
1
+ # @saashub/qoq-eslint-v9-ts-vitest
2
+
3
+ ![NPM Version](https://img.shields.io/npm/v/%40saashub%2Fqoq-eslint-v9-ts-vitest)
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
+
6
+ ## Rationale
7
+
8
+ Beign tired of setting up [Eslint](https://www.npmjs.com/package/eslint) all over again for new projects on top of v9 [flatConfig](https://eslint.org/docs/latest/use/configure/configuration-files) I've created some base template for different setups (check all [@saashub/qoq-eslint-v9-\* packages](https://www.npmjs.com/search?q=%40saashub%2Fqoq-eslint-v9-)). Configs inherit from base ones and includes only necessary packages. Rules are configured from years of development experience and can be used without any tweaks or as base to Your own setup.
9
+
10
+ ## Install
11
+
12
+ npm install @saashub/qoq-eslint-v9-ts-vitest
13
+
14
+ ## Usage
15
+
16
+ Package exports both CommonJS and ES modules code just import it in Your eslint config file.
17
+
18
+ ### For CommonJS
19
+
20
+ ```js
21
+ const jsBaseConfig = require("@saashub/qoq-eslint-v9-ts-vitest/baseConfig");
22
+
23
+ module.exports = [
24
+ {
25
+ ...jsBaseConfig,
26
+ files: [...]
27
+ }
28
+ ]
29
+ ```
30
+
31
+ ### For ES modules
32
+
33
+ ```js
34
+ import jsBaseConfig from '@saashub/qoq-eslint-v9-ts-vitest/baseConfig';
35
+
36
+ export default [
37
+ {
38
+ ...jsBaseConfig,
39
+ files: [...]
40
+ }
41
+ ];
42
+ ```
package/lib/baseConfig.js CHANGED
@@ -1,11 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var jsVitestBaseComfig = require('@saashub/qoq-eslint-v9-js-vitest/baseConfig');
3
+ var jsVitestBaseConfig = require('@saashub/qoq-eslint-v9-js-vitest/baseConfig');
4
4
  var tsBaseConfig = require('@saashub/qoq-eslint-v9-ts/baseConfig');
5
5
  var merge = require('lodash/merge.js');
6
6
 
7
- const config = merge({}, jsVitestBaseComfig, tsBaseConfig, {
7
+ const config = merge({}, jsVitestBaseConfig, tsBaseConfig, {
8
8
  name: '@saashub/qoq-eslint-v9-ts-vitest',
9
+ rules: {
10
+ 'sonarjs/no-duplicate-string': 0,
11
+ },
9
12
  });
10
13
 
11
14
  module.exports = config;
@@ -1,9 +1,12 @@
1
- import jsVitestBaseComfig from '@saashub/qoq-eslint-v9-js-vitest/baseConfig';
1
+ import jsVitestBaseConfig from '@saashub/qoq-eslint-v9-js-vitest/baseConfig';
2
2
  import tsBaseConfig from '@saashub/qoq-eslint-v9-ts/baseConfig';
3
3
  import merge from 'lodash/merge.js';
4
4
 
5
- const config = merge({}, jsVitestBaseComfig, tsBaseConfig, {
5
+ const config = merge({}, jsVitestBaseConfig, tsBaseConfig, {
6
6
  name: '@saashub/qoq-eslint-v9-ts-vitest',
7
+ rules: {
8
+ 'sonarjs/no-duplicate-string': 0,
9
+ },
7
10
  });
8
11
 
9
12
  export { config as default };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@saashub/qoq-eslint-v9-ts-vitest",
3
+ "description": "Eslint flat config template for TS + Vitest",
3
4
  "license": "MIT",
4
- "version": "0.7.1",
5
+ "version": "0.7.2",
5
6
  "main": "./lib/index.js",
6
7
  "module": "./lib/index.mjs",
7
8
  "types": "./lib/index.d.js",
@@ -36,8 +37,8 @@
36
37
  "test": "vitest run"
37
38
  },
38
39
  "dependencies": {
39
- "@saashub/qoq-eslint-v9-js-vitest": "^0.7.1",
40
- "@saashub/qoq-eslint-v9-ts": "^0.7.1",
40
+ "@saashub/qoq-eslint-v9-js-vitest": "^0.7.2",
41
+ "@saashub/qoq-eslint-v9-ts": "^0.7.2",
41
42
  "lodash": "4.17.21"
42
43
  },
43
44
  "devDependencies": {
@@ -52,11 +53,18 @@
52
53
  "peerDependencies": {
53
54
  "eslint": "^9"
54
55
  },
56
+ "keywords": [
57
+ "eslint TypeScript + Vitest template",
58
+ "flat config",
59
+ "saashub",
60
+ "qoq",
61
+ "QualityOverQuantity"
62
+ ],
55
63
  "repository": {
56
64
  "type": "git",
57
65
  "url": "git+ssh://git@github.com/saashub-it/qoq.git",
58
66
  "directory": "packages/eslint-v9-ts-vitest"
59
67
  },
60
68
  "homepage": "https://github.com/saashub-it/qoq/tree/master/packages/eslint-v9-ts-vitest",
61
- "gitHead": "3812a0317f917f23c446adcacf76d516f081ca54"
69
+ "gitHead": "23cefa0b3c59d09f5f3d601c46704a2b481cfa49"
62
70
  }
package/src/baseConfig.ts CHANGED
@@ -1,12 +1,15 @@
1
- import jsVitestBaseComfig from '@saashub/qoq-eslint-v9-js-vitest/baseConfig';
1
+ import jsVitestBaseConfig from '@saashub/qoq-eslint-v9-js-vitest/baseConfig';
2
2
  import tsBaseConfig from '@saashub/qoq-eslint-v9-ts/baseConfig';
3
3
 
4
4
  import merge from 'lodash/merge.js';
5
5
 
6
6
  import type { Linter } from 'eslint';
7
7
 
8
- const config = merge({}, jsVitestBaseComfig, tsBaseConfig, {
8
+ const config = merge({}, jsVitestBaseConfig, tsBaseConfig, {
9
9
  name: '@saashub/qoq-eslint-v9-ts-vitest',
10
+ rules: {
11
+ 'sonarjs/no-duplicate-string': 0,
12
+ },
10
13
  }) as unknown as Linter.Config;
11
14
 
12
15
  export default config;