@eslint/json 0.1.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/LICENSE +201 -0
- package/README.md +99 -0
- package/dist/cjs/index.cjs +491 -0
- package/dist/cjs/index.d.cts +180 -0
- package/dist/esm/index.d.ts +180 -0
- package/dist/esm/index.js +490 -0
- package/package.json +86 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eslint/json",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "JSON linting plugin for ESLint",
|
|
5
|
+
"author": "Nicholas C. Zakas",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/esm/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"require": {
|
|
11
|
+
"types": "./dist/cjs/index.d.cts",
|
|
12
|
+
"default": "./dist/cjs/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/esm/index.d.ts",
|
|
16
|
+
"default": "./dist/esm/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"gitHooks": {
|
|
26
|
+
"pre-commit": "lint-staged"
|
|
27
|
+
},
|
|
28
|
+
"lint-staged": {
|
|
29
|
+
"*.js": [
|
|
30
|
+
"eslint --fix",
|
|
31
|
+
"prettier --write"
|
|
32
|
+
],
|
|
33
|
+
"!(*.js)": "prettier --write --ignore-unknown"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/eslint/json.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/eslint/json/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/eslint/json#readme",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build:dedupe-types": "node tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
|
|
45
|
+
"build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"",
|
|
46
|
+
"build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts",
|
|
47
|
+
"test:jsr": "npx jsr@latest publish --dry-run",
|
|
48
|
+
"pretest": "npm run build",
|
|
49
|
+
"lint": "eslint",
|
|
50
|
+
"fmt": "prettier --write .",
|
|
51
|
+
"fmt:check": "prettier --check .",
|
|
52
|
+
"test": "mocha tests/**/*.js",
|
|
53
|
+
"test:coverage": "c8 npm test"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"eslint",
|
|
57
|
+
"eslint-plugin",
|
|
58
|
+
"eslintplugin",
|
|
59
|
+
"json",
|
|
60
|
+
"linting"
|
|
61
|
+
],
|
|
62
|
+
"license": "Apache-2.0",
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@humanwhocodes/momoa": "^3.1.1"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@eslint/core": "^0.1.0",
|
|
68
|
+
"@types/eslint": "^8.56.10",
|
|
69
|
+
"c8": "^9.1.0",
|
|
70
|
+
"eslint": "^9.6.0",
|
|
71
|
+
"eslint-config-eslint": "^11.0.0",
|
|
72
|
+
"lint-staged": "^15.2.7",
|
|
73
|
+
"mocha": "^10.4.0",
|
|
74
|
+
"prettier": "^3.3.2",
|
|
75
|
+
"rollup": "^4.16.2",
|
|
76
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
77
|
+
"typescript": "^5.4.5",
|
|
78
|
+
"yorkie": "^2.0.0"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"eslint": "^9.6.0"
|
|
85
|
+
}
|
|
86
|
+
}
|