@petbee/eslint-config 3.0.2 → 3.0.3

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/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // This is the legacy config for ESLint < 9.0
2
2
  module.exports = {
3
3
  parserOptions: {
4
- project: 'tsconfig.json',
5
4
  sourceType: 'module',
6
5
  // ensure tsconfigRootDir is the project root for v8:
7
6
  tsconfigRootDir: process.cwd(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petbee/eslint-config",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Petbee's eslint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "691cd678231d15a665a7bb1751cac4c2fa3789b1"
84
+ "gitHead": "46ff4afe672b542fcbd6d2f0b6481f52f2379b24"
85
85
  }
package/rules/nextjs.js CHANGED
@@ -2,6 +2,8 @@ module.exports = {
2
2
  plugins: ['@next/eslint-plugin-next'],
3
3
  extends: ['plugin:@next/next/recommended'],
4
4
  rules: {
5
+ // Allow non-camelCase naming in Next.js projects (e.g., route segments, pages, metadata)
6
+ '@typescript-eslint/naming-convention': 'off',
5
7
  // Next.js specific rules can be added here
6
8
  // For example, enforce no HTML <img> element usage
7
9
  '@next/next/no-img-element': 'error',
package/rules/react.js CHANGED
@@ -2,6 +2,8 @@ module.exports = {
2
2
  plugins: ['react'],
3
3
  extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
4
4
  rules: {
5
+ // Allow non-camelCase naming in React projects (e.g., components, hooks, CSS modules)
6
+ '@typescript-eslint/naming-convention': 'off',
5
7
  // Enforce consistent usage of function component definition
6
8
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
7
9
  'react/function-component-definition': [
@@ -19,7 +19,6 @@ const tsConfigOptions = [
19
19
  ecmaVersion: 2022,
20
20
  sourceType: 'module',
21
21
  projectService: true,
22
- defaultProject: 'tsconfig.json',
23
22
  tsconfigRootDir: process.cwd(),
24
23
  projectFolderIgnoreList: [/node_modules/i],
25
24
  // We need this configuration to avoid performance issues in monorepos