@qvaroo/configs 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,6 +34,11 @@ Create `eslint.config.mjs` in your project root:
34
34
  import { createRequire } from 'module';
35
35
  const require = createRequire(import.meta.url);
36
36
 
37
+ // 1. Plugins (must be explicitly imported and registered in Flat Config)
38
+ const spellcheckPlugin = require('eslint-plugin-spellcheck');
39
+ const sonarjsPlugin = require('eslint-plugin-sonarjs');
40
+
41
+ // 2. Qvaroo Configs
37
42
  const {
38
43
  namingConventions,
39
44
  codeQuality,
@@ -43,11 +48,27 @@ const {
43
48
  export default [
44
49
  {
45
50
  files: ['**/*.{ts,tsx}'],
51
+
52
+ // 3. Register Plugins
53
+ plugins: {
54
+ 'spellcheck': spellcheckPlugin,
55
+ 'sonarjs': sonarjsPlugin
56
+ },
57
+
58
+ // 4. Apply Rules
46
59
  rules: {
47
60
  ...namingConventions,
48
61
  ...codeQuality,
49
62
  ...spellcheck
50
63
  },
64
+
65
+ // 5. TypeScript Parser Config (Required for type-aware rules)
66
+ languageOptions: {
67
+ parserOptions: {
68
+ project: true,
69
+ tsconfigRootDir: import.meta.dirname,
70
+ },
71
+ },
51
72
  },
52
73
  ];
53
74
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvaroo/configs",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Centralized Qvaroo coding standards, ESLint, Prettier, and TypeScript configurations for TypeScript frontend projects",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",