@stdex/presets-eslint-node 0.0.0-stage → 1.0.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/exclusive.mjs ADDED
@@ -0,0 +1,28 @@
1
+ import { defineConfig } from 'eslint/config'
2
+ import globals from 'globals'
3
+
4
+ export default defineConfig([
5
+ {
6
+ name: '@stdex/node',
7
+ languageOptions: {
8
+ globals: {
9
+ ...globals.node,
10
+ ...globals.es6,
11
+ },
12
+ parserOptions: {
13
+ ecmaVersion: 'latest',
14
+ },
15
+ },
16
+ settings: {
17
+ 'import-x/resolver': {
18
+ node: true,
19
+ },
20
+ },
21
+ rules: {
22
+ 'global-require': 'off',
23
+ 'no-console': 'off',
24
+ 'no-restricted-syntax': 'off',
25
+ 'import-x/no-dynamic-require': 'off',
26
+ },
27
+ },
28
+ ])
package/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ import typescriptConfigs from '@stdex/presets-eslint-typescript'
2
+ import { defineConfig } from 'eslint/config'
3
+ import nodeExclusiveConfigs from './exclusive.mjs'
4
+
5
+ export default defineConfig([...typescriptConfigs, ...nodeExclusiveConfigs])
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@stdex/presets-eslint-node",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "公共 ESLint 配置",
5
+ "homepage": "https://github.com/anjianshi/stdex-packages/presets-eslint/",
6
+ "bugs": {
7
+ "url": "https://github.com/anjianshi/stdex-packages/issues",
8
+ "email": "anjianshi@gmail.com"
9
+ },
10
+ "license": "MIT",
11
+ "author": "anjianshi <anjianshi@gmail.com>",
12
+ "repository": "github:anjianshi/stdex-packages",
13
+ "publishConfig": {
14
+ "registry": "https://registry.npmjs.org/",
15
+ "access": "public"
16
+ },
17
+ "main": "index.mjs",
18
+ "dependencies": {
19
+ "@stdex/presets-eslint-base": "workspace:*",
20
+ "@stdex/presets-eslint-typescript": "workspace:*",
21
+ "globals": "^17.7.0"
22
+ },
23
+ "peerDependencies": {
24
+ "eslint": "^10.6.0"
25
+ }
26
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.