@4mbl/lint 0.1.0 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c4e49f3: Add eslint-plugin-react-hooks
8
+ - c4e49f3: Add eslint-config-prettier
9
+
10
+ ## 0.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 2c91355: Move dependencies not to be dev-only
15
+
3
16
  ## 0.1.0
4
17
 
5
18
  ### 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
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -23,13 +23,15 @@
23
23
  "keywords": [
24
24
  "lint"
25
25
  ],
26
- "scripts": {},
27
- "devDependencies": {
26
+ "dependencies": {
28
27
  "@eslint/js": "^9.38.0",
29
28
  "eslint": "^9.38.0",
30
29
  "eslint-config-next": "^16.0.1",
30
+ "eslint-config-prettier": "^10.1.8",
31
31
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
32
+ "eslint-plugin-react-hooks": "^7.0.1",
32
33
  "jiti": "^2.6.1",
33
34
  "typescript-eslint": "^8.46.2"
34
- }
35
- }
35
+ },
36
+ "scripts": {}
37
+ }
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.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[];