@mikey-pro/eslint-config 8.0.18 → 8.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.
Files changed (3) hide show
  1. package/index.js +17 -7
  2. package/package.json +10 -10
  3. package/rules.js +0 -4
package/index.js CHANGED
@@ -4,7 +4,6 @@ import compatPlugin from 'eslint-plugin-compat';
4
4
  import cssModules from 'eslint-plugin-css-modules';
5
5
  import importPlugin from 'eslint-plugin-import';
6
6
  import onlyWarn from 'eslint-plugin-only-warn';
7
- import prettier from 'eslint-plugin-prettier';
8
7
  import unicorn from 'eslint-plugin-unicorn';
9
8
  import globals from 'globals';
10
9
  import securityPlugin from 'eslint-plugin-security';
@@ -23,11 +22,11 @@ import boundariesPlugin from 'eslint-plugin-boundaries';
23
22
  import nPlugin from 'eslint-plugin-n';
24
23
  import radarPlugin from 'eslint-plugin-radar';
25
24
  import optimizeRegexPlugin from 'eslint-plugin-optimize-regex';
25
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
26
26
 
27
27
  import { baseOverrides } from './overrides.js';
28
28
  import { baseRules } from './rules.js';
29
29
 
30
- /** @type {import('eslint').Linter.Config[]} */
31
30
  const config = [
32
31
  {
33
32
  ignores: [
@@ -49,8 +48,9 @@ const config = [
49
48
  ],
50
49
  },
51
50
  eslintJs.configs.recommended,
51
+ eslintPluginPrettierRecommended,
52
52
  {
53
- files: ['**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs'], // Add files pattern
53
+ files: ['**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs'],
54
54
  languageOptions: {
55
55
  ecmaVersion: 'latest',
56
56
  sourceType: 'module',
@@ -67,7 +67,6 @@ const config = [
67
67
  reportUnusedDisableDirectives: true,
68
68
  },
69
69
  plugins: {
70
- prettier,
71
70
  unicorn,
72
71
  'css-modules': cssModules,
73
72
  'only-warn': onlyWarn,
@@ -147,7 +146,7 @@ const config = [
147
146
  },
148
147
  settings: {
149
148
  'json/json-with-comments-files': [],
150
- polyfills: ['Promise', 'fetch', 'URLSearchParams'],
149
+ polyfills: ['Promise', 'fetch', 'URLSearchParams', 'Array.prototype.includes'],
151
150
  jest: {
152
151
  version: 29,
153
152
  },
@@ -160,11 +159,22 @@ const config = [
160
159
  extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs']
161
160
  }
162
161
  },
162
+ boundaries: {
163
+ elements: [
164
+ { type: 'app', pattern: 'app/*' },
165
+ { type: 'pages', pattern: 'pages/*' },
166
+ { type: 'components', pattern: 'components/*' },
167
+ { type: 'hooks', pattern: 'hooks/*' },
168
+ { type: 'utils', pattern: 'utils/*' },
169
+ { type: 'services', pattern: 'services/*' },
170
+ { type: 'types', pattern: 'types/*' },
171
+ { type: 'config', pattern: 'config/*' }
172
+ ]
173
+ }
163
174
  },
164
175
  },
165
176
  ...baseOverrides,
166
177
  ];
167
178
 
168
179
  export default config;
169
- export { baseRules } from './rules.js';
170
- export { baseOverrides } from './overrides.js';
180
+ export { baseRules, baseOverrides };
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "8.0.18",
3
+ "version": "8.1.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "sideEffects": false,
8
8
  "dependencies": {
9
- "@babel/core": "^7.26.7",
10
- "@babel/eslint-parser": "^7.26.5",
9
+ "@babel/core": "^7.26.8",
10
+ "@babel/eslint-parser": "^7.26.8",
11
11
  "@babel/eslint-plugin": "^7.25",
12
12
  "@babel/preset-env": "^7.26",
13
13
  "@cypress/eslint-plugin-json": "^3.2.3",
14
- "@html-eslint/eslint-plugin": "^0.33.1",
15
- "@html-eslint/parser": "^0.33.0",
16
- "@typescript-eslint/eslint-plugin": "^8.22.0",
17
- "@typescript-eslint/parser": "^8.22.0",
14
+ "@html-eslint/eslint-plugin": "^0.34.0",
15
+ "@html-eslint/parser": "^0.34.0",
16
+ "@typescript-eslint/eslint-plugin": "^8.24.0",
17
+ "@typescript-eslint/parser": "^8.24.0",
18
18
  "eslint-config-prettier": "^10.0.1",
19
19
  "eslint-import-resolver-typescript": "^3.7.0",
20
20
  "eslint-plugin-compat": "^6.0.2",
@@ -26,8 +26,8 @@
26
26
  "eslint-plugin-markdownlint": "^0.6.0",
27
27
  "eslint-plugin-n": "^17.15.1",
28
28
  "eslint-plugin-only-warn": "^1.1.0",
29
- "eslint-plugin-perfectionist": "^4.7.0",
30
- "eslint-plugin-no-secrets": "^2.1.1",
29
+ "eslint-plugin-perfectionist": "^4.8.0",
30
+ "eslint-plugin-no-secrets": "^2.2.1",
31
31
  "eslint-plugin-no-only-tests": "^3.3.0",
32
32
  "eslint-plugin-prettier": "^5.2.3",
33
33
  "eslint-plugin-promise": "^7.2.1",
@@ -39,7 +39,7 @@
39
39
  "eslint-plugin-testing-library": "^7.1.1",
40
40
  "eslint-plugin-jest-dom": "^5.5.0",
41
41
  "eslint-plugin-deprecation": "^3.0.0",
42
- "postcss": "^8.5.1",
42
+ "postcss": "^8.5.2",
43
43
  "postcss-scss": "^4.0.9",
44
44
  "yaml-eslint-parser": "^1.2.3",
45
45
  "eslint-plugin-sonarjs": "^3.0.1",
package/rules.js CHANGED
@@ -218,8 +218,6 @@ export const baseRules = {
218
218
  'regexp/no-missing-g-flag': 'error',
219
219
 
220
220
  // Enhanced TypeScript
221
- 'etc/no-commented-out-code': 'warn',
222
- 'etc/no-implicit-any-catch': 'error',
223
221
  'etc/prefer-interface': 'error',
224
222
 
225
223
  // Enhanced Import Rules
@@ -268,8 +266,6 @@ export const baseRules = {
268
266
 
269
267
  // Performance
270
268
  'optimize-regex/optimize-regex': 'warn',
271
- 'radar/no-duplicate-string': ['warn', 5],
272
- 'radar/cognitive-complexity': ['error', 15],
273
269
 
274
270
  // Enhanced Security
275
271
  'n/no-unsupported-features/es-syntax': ['error', {