@4mbl/lint 0.0.0-beta.605bb21 → 0.0.0-beta.61cb539

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,24 @@
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
+
16
+ ## 0.1.1
17
+
18
+ ### Patch Changes
19
+
20
+ - 2c91355: Move dependencies not to be dev-only
21
+
3
22
  ## 0.1.0
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -19,7 +19,7 @@ npm install -D @4mbl/lint
19
19
  Create a `eslint.config.ts` file in the root of your project with the desired configuration. This package currently uses eslint. That might change in a future major release.
20
20
 
21
21
  ```js
22
- import defaultConfig, { Config } from '@4mbl/lint/next'; // <-- change `next` to the desired template
22
+ import defaultConfig, { type Config } from '@4mbl/lint/next'; // <-- change `next` to the desired template
23
23
 
24
24
  export default [...defaultConfig] satisfies Config[];
25
25
  ```
@@ -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.0.0-beta.605bb21",
3
+ "version": "0.0.0-beta.61cb539",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -23,11 +23,13 @@
23
23
  "keywords": [
24
24
  "lint"
25
25
  ],
26
- "devDependencies": {
26
+ "dependencies": {
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[];