@4mbl/lint 0.1.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3a223fe: Use flat config version of eslint-plugin-react-hooks
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c4e49f3: Add eslint-plugin-react-hooks
14
+ - c4e49f3: Add eslint-config-prettier
15
+
3
16
  ## 0.1.1
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -32,10 +32,10 @@ There is currently one config template.
32
32
 
33
33
  ## Versioning
34
34
 
35
- As of version 4.0.0, the package migrated to a single template per type. The package version is now used to determine the template version. This simplifies both the maintenance and usage of the package.
35
+ **Until v1.0.0 is released, breaking changes may be introduced in minor releases without prior warnings.**
36
36
 
37
- The package follows the following versioning scheme: `X.Y.Z`
37
+ The package follows the following versioning scheme: `X.Y.Z`.
38
38
 
39
- - `X` - Reserved for linting provider changes as those might cause wider backwards compat issues.
39
+ - `X` - Reserved for linting provider changes as those might cause wider backwards compatibility issues.
40
40
  - `Y` - New linting rules. New rules are first added as warnings, and if error is preferred, the rule is promoted to produce errors in the next minor release.
41
41
  - `Z` - Minor fixes that make the previous release unusable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -27,7 +27,9 @@
27
27
  "@eslint/js": "^9.38.0",
28
28
  "eslint": "^9.38.0",
29
29
  "eslint-config-next": "^16.0.1",
30
+ "eslint-config-prettier": "^10.1.8",
30
31
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
32
+ "eslint-plugin-react-hooks": "^7.0.1",
31
33
  "jiti": "^2.6.1",
32
34
  "typescript-eslint": "^8.46.2"
33
35
  },
package/src/next.ts CHANGED
@@ -5,6 +5,8 @@ import nextTs from 'eslint-config-next/typescript';
5
5
  import * as reactCompiler from 'eslint-plugin-react-compiler';
6
6
  import { defineConfig, globalIgnores, Config } from 'eslint/config';
7
7
  import tseslint from 'typescript-eslint';
8
+ import prettier from 'eslint-config-prettier/flat';
9
+ import reactHooks from 'eslint-plugin-react-hooks';
8
10
 
9
11
  export { Config };
10
12
 
@@ -20,11 +22,13 @@ export default defineConfig([
20
22
  },
21
23
  ...nextVitals,
22
24
  ...nextTs,
23
- globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts']),
25
+ reactHooks.configs.flat.recommended,
24
26
  reactCompiler.configs.recommended,
25
27
  {
26
28
  rules: {
27
29
  'react-compiler/react-compiler': 'error',
28
30
  },
29
31
  },
32
+ prettier,
33
+ globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts']),
30
34
  ]) satisfies Config[];