@shi-corp/development-utilities 1.0.6 → 1.1.0

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.
@@ -1,4 +1,2 @@
1
- /**
2
- * Array of configuration objects merged together to form baseline for linting of the code.
3
- */
4
- export declare const eslintConfig: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
1
+ /** Array of configuration objects merged together to form baseline for linting of the code. */
2
+ export declare const eslintConfig: import("eslint/config").Config[];
@@ -1,21 +1,32 @@
1
+ import { defineConfig } from 'eslint/config';
1
2
  import eslint from '@eslint/js';
2
3
  import globals from 'globals';
3
4
  import jsdoc from 'eslint-plugin-jsdoc';
4
5
  import stylistic from '@stylistic/eslint-plugin';
5
6
  import tseslint from 'typescript-eslint';
6
- export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.configs['flat/recommended-typescript'], ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, {
7
- 'ignores': ['eslint.config.mjs']
7
+ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.configs['flat/recommended-typescript'], ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, {
8
+ 'ignores': [
9
+ 'eslint.config.mjs',
10
+ 'eslint.config.js',
11
+ 'next.config.mjs',
12
+ 'next.config.js',
13
+ 'jest.config.mjs',
14
+ 'node_modules/',
15
+ 'bin/',
16
+ 'dist/',
17
+ 'out/',
18
+ 'build/',
19
+ '.next/',
20
+ 'next-env.d.ts'
21
+ ]
8
22
  }, {
9
23
  'languageOptions': {
10
24
  'globals': {
11
- ...globals.browser,
12
25
  ...globals.mocha,
13
26
  ...globals.node,
14
27
  ...globals.es2021
15
28
  },
16
- 'parserOptions': {
17
- 'projectService': true
18
- }
29
+ 'parserOptions': { 'projectService': true }
19
30
  },
20
31
  'linterOptions': { 'reportUnusedDisableDirectives': true },
21
32
  'plugins': {
@@ -0,0 +1,2 @@
1
+ /** Baseline configuration used for linting Next.JS projects the SHI - Lab way. */
2
+ export declare const nextLintConfig: import("eslint/config").Config[];
@@ -0,0 +1,13 @@
1
+ import { eslintConfig as baselineConfig } from './baseLintConfig.js';
2
+ import { defineConfig } from 'eslint/config';
3
+ import globals from 'globals';
4
+ import react from 'eslint-plugin-react';
5
+ import reactHooks from 'eslint-plugin-react-hooks';
6
+ export const nextLintConfig = defineConfig(...baselineConfig, react.configs.flat['recommended'], react.configs.flat['jsx-runtime'], reactHooks.configs.flat['recommended'], {
7
+ 'languageOptions': { 'globals': { ...globals.browser } },
8
+ 'settings': {
9
+ 'react': {
10
+ 'version': 'detect'
11
+ }
12
+ }
13
+ });
package/bin/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { eslintConfig } from './config/baseLintConfig.js';
2
+ export { nextLintConfig } from './config/nextLintConfig.js';
2
3
  export { nextConfig } from './config/baseNextConfig.js';
package/bin/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { eslintConfig } from './config/baseLintConfig.js';
2
+ export { nextLintConfig } from './config/nextLintConfig.js';
2
3
  export { nextConfig } from './config/baseNextConfig.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shi-corp/development-utilities",
3
- "version": "1.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "Collection of configurations, settings and packages to be common across multiple products/repositories.",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -33,19 +33,22 @@
33
33
  },
34
34
  "homepage": "https://github.com/Software-Hardware-Integration-Lab/Development-Utilities#readme",
35
35
  "dependencies": {
36
- "@stylistic/eslint-plugin": "~5.2.3",
37
- "eslint": "~9.35.0",
38
- "eslint-plugin-jsdoc": "~57.0.8",
39
- "typescript-eslint": "~8.40.0"
36
+ "@eslint/js": "~9.38.0",
37
+ "@stylistic/eslint-plugin": "~5.5.0",
38
+ "eslint": "~9.38.0",
39
+ "eslint-plugin-jsdoc": "~61.1.4",
40
+ "eslint-plugin-react": "~7.37.5",
41
+ "eslint-plugin-react-hooks": "~7.0.0",
42
+ "typescript-eslint": "~8.46.1"
40
43
  },
41
44
  "devDependencies": {
42
45
  "@types/chai": "~5.2.2",
43
46
  "@types/eslint": "~9.6.1",
44
47
  "@types/mocha": "~10.0.10",
45
- "chai": "~6.0.1",
46
- "mocha": "~11.7.2",
47
- "next": "~15.5.3",
48
- "typescript": "~5.9.2"
48
+ "chai": "~6.2.0",
49
+ "mocha": "~11.7.4",
50
+ "next": "~15.5.6",
51
+ "typescript": "~5.9.3"
49
52
  },
50
53
  "overrides": {
51
54
  "is-unicode-supported": "npm:@socketregistry/is-unicode-supported@^1",