@4mbl/lint 0.0.0-beta.6d969e6 → 0.0.0-beta.a4700d7

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,30 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 00cfefd: Add node template
8
+
9
+ ## 0.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - df1c48b: Re-export eslint Config type from react template
14
+
15
+ ## 0.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - d17fc69: Fix react template export
20
+
21
+ ## 0.3.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 6d969e6: Add react template
26
+ - 6d969e6: Upgrade eslint and config dependencies
27
+
3
28
  ## 0.2.1
4
29
 
5
30
  ### Patch Changes
package/README.md CHANGED
@@ -43,8 +43,9 @@ publicHoistPattern:
43
43
 
44
44
  There is currently one config template.
45
45
 
46
- - **Next** - Linting configuration extending the Next.js default config.
47
- - **React** - Linting configuration extending the Vite-React default config.
46
+ - **Next** - Extending the Next.js linting config.
47
+ - **Node** - Linting configuration for Node.js.
48
+ - **React** - Extending the Vite-React linting config.
48
49
 
49
50
  ## Versioning
50
51
 
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.0.0-beta.6d969e6",
3
+ "version": "0.0.0-beta.a4700d7",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/4mbl/config/tree/main/packages/lint#readme",
9
9
  "exports": {
10
- "./next": "./src/next.ts"
10
+ "./next": "./src/next.ts",
11
+ "./node": "./src/node.ts",
12
+ "./react": "./src/react.ts"
11
13
  },
12
14
  "files": [
13
15
  "src",
package/src/node.ts ADDED
@@ -0,0 +1,14 @@
1
+ import js from '@eslint/js';
2
+ import { defineConfig, globalIgnores, type Config } from 'eslint/config';
3
+ import globals from 'globals';
4
+ import tseslint from 'typescript-eslint';
5
+
6
+ export { Config };
7
+
8
+ export default defineConfig([
9
+ globalIgnores(['dist/**']),
10
+ { files: ['**/*.{js,mjs,cjs,ts}'] },
11
+ { languageOptions: { globals: globals.node } },
12
+ js.configs.recommended,
13
+ ...tseslint.configs.recommended,
14
+ ]);
package/src/react.ts CHANGED
@@ -2,10 +2,12 @@ import js from '@eslint/js';
2
2
  import prettier from 'eslint-config-prettier/flat';
3
3
  import reactHooks from 'eslint-plugin-react-hooks';
4
4
  import reactRefresh from 'eslint-plugin-react-refresh';
5
- import { defineConfig, globalIgnores } from 'eslint/config';
5
+ import { defineConfig, globalIgnores, type Config } from 'eslint/config';
6
6
  import globals from 'globals';
7
7
  import tseslint from 'typescript-eslint';
8
8
 
9
+ export { Config };
10
+
9
11
  export default defineConfig([
10
12
  js.configs.recommended,
11
13
  tseslint.configs.recommended,