@smartive/eslint-config 7.0.0 → 7.1.0-next.1

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
@@ -24,7 +24,7 @@ export default config('typescript');
24
24
  export default config('react');
25
25
 
26
26
  // .. or Next.js applications
27
- // make sure to add `eslint-config-next@16`
27
+ // make sure to add `eslint-config-next@16`
28
28
  // to your devDependencies
29
29
  export default config('nextjs');
30
30
  ```
@@ -35,7 +35,7 @@ To use eslint add the following to your package.json:
35
35
 
36
36
  ```json
37
37
  "scripts": {
38
- "lint": "eslint .",
39
- "lint:fix": "eslint . --fix"
38
+ "lint": "eslint {your source directory}",
39
+ "lint:fix": "eslint {your source directory} --fix"
40
40
  }
41
41
  ```
package/dist/configs.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { fixupConfigRules } from '@eslint/compat';
1
2
  import js from '@eslint/js';
2
3
  import { flatConfigs as eslintPluginImportConfigs } from 'eslint-plugin-import';
3
4
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
@@ -40,9 +41,9 @@ export const flatConfigTypescript = (rulesOnly = false) => defineConfig([
40
41
  },
41
42
  ]
42
43
  : [
43
- eslintPluginImportConfigs.errors,
44
- eslintPluginImportConfigs.warnings,
45
- eslintPluginImportConfigs.typescript,
44
+ fixupConfigRules(eslintPluginImportConfigs.errors),
45
+ fixupConfigRules(eslintPluginImportConfigs.warnings),
46
+ fixupConfigRules(eslintPluginImportConfigs.typescript),
46
47
  {
47
48
  settings: {
48
49
  'import/resolver': {
@@ -64,8 +65,8 @@ export const flatConfigTypescript = (rulesOnly = false) => defineConfig([
64
65
  ]);
65
66
  export const flatConfigReact = () => defineConfig([
66
67
  ...flatConfigTypescript(),
67
- reactPlugin.configs.flat.recommended,
68
- reactPlugin.configs.flat['jsx-runtime'],
68
+ fixupConfigRules(reactPlugin.configs.flat.recommended),
69
+ fixupConfigRules(reactPlugin.configs.flat['jsx-runtime']),
69
70
  reactHooks.configs.flat.recommended,
70
71
  reactConfig,
71
72
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/eslint-config",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-next.1",
4
4
  "description": "ESLint configuration by smartive",
5
5
  "files": [
6
6
  "README.md",
@@ -35,11 +35,11 @@
35
35
  "eslint-plugin-prettier": "^5.5.4",
36
36
  "eslint-plugin-react": "^7.37.5",
37
37
  "eslint-plugin-react-hooks": "^7.0.1",
38
- "globals": "^16.0.0",
38
+ "globals": "^17.0.0",
39
39
  "typescript-eslint": "^8.15.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "eslint": "^9.22.0",
42
+ "eslint": "^9.22.0 || ^10.0.0",
43
43
  "eslint-config-next": "^16.0.0",
44
44
  "next": "^16.0.0"
45
45
  },
@@ -52,22 +52,28 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@commitlint/cli": "^20.1.0",
56
- "@commitlint/config-conventional": "^20.0.0",
57
- "@eslint/js": "^9.15.0",
58
- "@smartive/prettier-config": "^3.0.0",
59
- "@types/node": "24.9.2",
60
- "cz-conventional-changelog": "^3.3.0",
61
- "eslint": "^9.22.0",
62
- "husky": "^9.1.7",
63
- "prettier": "^3.6.2",
64
- "typescript": "^5.9.3"
55
+ "@commitlint/cli": "21.0.0",
56
+ "@commitlint/config-conventional": "21.0.0",
57
+ "@eslint/compat": "2.1.0",
58
+ "@eslint/js": "10.0.1",
59
+ "@smartive/prettier-config": "3.1.2",
60
+ "@types/node": "24.12.3",
61
+ "cz-conventional-changelog": "3.3.0",
62
+ "eslint": "10.3.0",
63
+ "husky": "9.1.7",
64
+ "prettier": "3.8.3",
65
+ "typescript": "5.9.3"
66
+ },
67
+ "overrides": {
68
+ "eslint": "$eslint"
65
69
  },
66
70
  "engines": {
67
71
  "node": "^20.19.0 || >=22.12"
68
72
  },
69
73
  "scripts": {
70
74
  "tsc": "tsc",
75
+ "prettier": "prettier --check .",
76
+ "check-types": "tsc --noEmit",
71
77
  "build": "rm -rf dist && tsc",
72
78
  "commitlint": "commitlint --edit",
73
79
  "prepare": "[ ! -f node_modules/.bin/husky ] || husky"