@4mbl/lint 0.3.2 → 0.4.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 +6 -0
- package/README.md +3 -2
- package/package.json +2 -1
- package/src/node.ts +14 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -43,8 +43,9 @@ publicHoistPattern:
|
|
|
43
43
|
|
|
44
44
|
There is currently one config template.
|
|
45
45
|
|
|
46
|
-
- **Next** -
|
|
47
|
-
- **
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4mbl/lint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"homepage": "https://github.com/4mbl/config/tree/main/packages/lint#readme",
|
|
9
9
|
"exports": {
|
|
10
10
|
"./next": "./src/next.ts",
|
|
11
|
+
"./node": "./src/node.ts",
|
|
11
12
|
"./react": "./src/react.ts"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
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
|
+
]);
|