@alexlit/lint-kit 165.2.0 → 166.0.1

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.
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+ module.exports = require('./globals.json');
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,122 @@
1
+ {
2
+ "name": "globals",
3
+ "version": "17.0.0",
4
+ "description": "Global identifiers from different JavaScript environments",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/globals",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "sideEffects": false,
14
+ "engines": {
15
+ "node": ">=18"
16
+ },
17
+ "scripts": {
18
+ "test": "npm run build && xo && ava && tsd",
19
+ "prepare": "npm run build",
20
+ "update": "node scripts/update.mjs",
21
+ "update:browser": "node scripts/update.mjs --job=browser",
22
+ "update:builtin": "node scripts/update.mjs --job=builtin",
23
+ "update:builtin-yearly": "node scripts/update.mjs --job=builtin-yearly",
24
+ "update:nodeBuiltin": "node scripts/update.mjs --job=nodeBuiltin",
25
+ "update:bunBuiltin": "node scripts/update.mjs --job=bunBuiltin",
26
+ "update:denoBuiltin": "node scripts/update.mjs --job=denoBuiltin",
27
+ "update:worker": "node scripts/update.mjs --job=worker",
28
+ "update:serviceworker": "node scripts/update.mjs --job=serviceworker",
29
+ "update:sharedWorker": "node scripts/update.mjs --job=sharedWorker",
30
+ "update:audioWorklet": "node scripts/update.mjs --job=audioWorklet",
31
+ "update:shelljs": "node scripts/update.mjs --job=shelljs",
32
+ "update:jest": "node scripts/update.mjs --job=jest",
33
+ "update:vitest": "node scripts/update.mjs --job=vitest",
34
+ "build": "run-s build:data build:types",
35
+ "build:data": "node scripts/generate-data.mjs",
36
+ "build:types": "node scripts/generate-types.mjs"
37
+ },
38
+ "files": [
39
+ "index.js",
40
+ "index.d.ts",
41
+ "globals.json"
42
+ ],
43
+ "keywords": [
44
+ "globals",
45
+ "global",
46
+ "identifiers",
47
+ "variables",
48
+ "vars",
49
+ "jshint",
50
+ "eslint",
51
+ "environments"
52
+ ],
53
+ "devDependencies": {
54
+ "@vitest/eslint-plugin": "^1.1.44",
55
+ "ava": "^6.3.0",
56
+ "cheerio": "^1.0.0",
57
+ "esbuild": "^0.27.2",
58
+ "eslint-plugin-jest": "^28.11.0",
59
+ "get-port": "^7.1.0",
60
+ "is-identifier": "^1.0.1",
61
+ "nano-spawn": "^0.2.0",
62
+ "npm-run-all2": "^8.0.1",
63
+ "outdent": "^0.8.0",
64
+ "puppeteer": "^24.34.0",
65
+ "shelljs": "^0.9.2",
66
+ "tsd": "^0.32.0",
67
+ "type-fest": "^4.41.0",
68
+ "xo": "^0.60.0"
69
+ },
70
+ "xo": {
71
+ "rules": {
72
+ "unicorn/prefer-module": "off"
73
+ },
74
+ "overrides": [
75
+ {
76
+ "files": [
77
+ "data/*.mjs"
78
+ ],
79
+ "rules": {
80
+ "import/no-anonymous-default-export": "off",
81
+ "camelcase": "off",
82
+ "unicorn/filename-case": [
83
+ "error",
84
+ {
85
+ "cases": {
86
+ "camelCase": true,
87
+ "kebabCase": true
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "files": [
95
+ "scripts/*.mjs"
96
+ ],
97
+ "rules": {
98
+ "n/no-unsupported-features/node-builtins": "off"
99
+ }
100
+ },
101
+ {
102
+ "files": [
103
+ "scripts/browser/assets/**/*.mjs"
104
+ ],
105
+ "envs": [
106
+ "browser",
107
+ "worker",
108
+ "serviceworker"
109
+ ],
110
+ "rules": {
111
+ "n/no-unsupported-features/node-builtins": "off",
112
+ "unicorn/prefer-add-event-listener": "off"
113
+ }
114
+ }
115
+ ]
116
+ },
117
+ "tsd": {
118
+ "compilerOptions": {
119
+ "resolveJsonModule": true
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,42 @@
1
+ # globals
2
+
3
+ > Global identifiers from different JavaScript environments
4
+
5
+ It's just a [JSON file](globals.json), so you can use it in any environment.
6
+
7
+ This package is used by ESLint 8 and earlier. For ESLint 9 and later, you should depend on this package directly in [your ESLint config](https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables).
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install globals
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ import globals from 'globals';
19
+
20
+ console.log(globals.browser);
21
+ /*
22
+ {
23
+ addEventListener: false,
24
+ applicationCache: false,
25
+ ArrayBuffer: false,
26
+ atob: false,
27
+
28
+ }
29
+ */
30
+ ```
31
+
32
+ Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise.
33
+
34
+ For Node.js this package provides two sets of globals:
35
+
36
+ - `globals.nodeBuiltin`: Globals available to all code running in Node.js.
37
+ These will usually be available as properties on the `globalThis` object and include `process`, `Buffer`, but not CommonJS arguments like `require`.
38
+ See: https://nodejs.org/api/globals.html
39
+ - `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments ("CommonJS module scope").
40
+ See: https://nodejs.org/api/modules.html#modules_the_module_scope
41
+
42
+ When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "125.2.1",
3
+ "version": "126.0.0",
4
4
  "private": false,
5
5
  "description": "Sharable ESLint configuration",
6
6
  "keywords": [
@@ -44,11 +44,11 @@
44
44
  "@intlify/eslint-plugin-vue-i18n": "^4.1.0",
45
45
  "@stylistic/eslint-plugin": "^5.6.1",
46
46
  "@tanstack/eslint-plugin-query": "^5.91.2",
47
- "@unocss/eslint-config": "^66.5.11",
47
+ "@unocss/eslint-config": "^66.5.12",
48
48
  "eslint": "9.39.2",
49
49
  "eslint-config-prettier": "^10.1.8",
50
50
  "eslint-plugin-jsdoc": "^61.5.0",
51
- "eslint-plugin-perfectionist": "^5.1.0",
51
+ "eslint-plugin-perfectionist": "^5.2.0",
52
52
  "eslint-plugin-prettier": "^5.5.4",
53
53
  "eslint-plugin-regexp": "^2.10.0",
54
54
  "eslint-plugin-sonarjs": "^3.0.5",
@@ -57,10 +57,10 @@
57
57
  "eslint-plugin-vitest": "^0.5.4",
58
58
  "eslint-plugin-vue": "^10.6.2",
59
59
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
60
- "globals": "^16.5.0",
60
+ "globals": "^17.0.0",
61
61
  "jsonc-eslint-parser": "^2.4.2",
62
62
  "typescript": "^5.9.3",
63
- "typescript-eslint": "^8.50.1",
63
+ "typescript-eslint": "^8.51.0",
64
64
  "yaml-eslint-parser": "^1.3.2"
65
65
  },
66
66
  "publishConfig": {
@@ -37,5 +37,9 @@
37
37
  "dependencies": {
38
38
  "husky": "^9.1.7",
39
39
  "lint-staged": "^16.2.7"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public",
43
+ "registry": "https://registry.npmjs.org/"
40
44
  }
41
45
  }
@@ -39,5 +39,9 @@
39
39
  "dependencies": {
40
40
  "@linthtml/linthtml": "^0.10.2",
41
41
  "@linthtml/linthtml-config-recommended": "^0.2.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public",
45
+ "registry": "https://registry.npmjs.org/"
42
46
  }
43
47
  }
@@ -36,5 +36,9 @@
36
36
  "dependencies": {
37
37
  "markdownlint": "^0.40.0",
38
38
  "markdownlint-cli": "^0.47.0"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public",
42
+ "registry": "https://registry.npmjs.org/"
39
43
  }
40
44
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-npmlint",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "private": false,
5
5
  "description": "npmlint config",
6
6
  "keywords": [
@@ -38,8 +38,12 @@
38
38
  "up": "../../scripts/up.sh"
39
39
  },
40
40
  "dependencies": {
41
- "lockfile-lint": "^4.14.0",
42
- "npm-package-json-lint": "^9.0.0",
41
+ "lockfile-lint": "^4.14.1",
42
+ "npm-package-json-lint": "^9.1.0",
43
43
  "npm-package-json-lint-config-default": "^8.0.1"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "registry": "https://registry.npmjs.org/"
44
48
  }
45
49
  }
@@ -49,5 +49,9 @@
49
49
  "prettier-plugin-sql": "^0.19.2",
50
50
  "prettier-plugin-tailwindcss": "^0.7.2",
51
51
  "radash": "^12.1.1"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public",
55
+ "registry": "https://registry.npmjs.org/"
52
56
  }
53
57
  }
@@ -59,5 +59,9 @@
59
59
  "stylelint-scss": "^6.14.0",
60
60
  "stylelint-selector-no-empty": "^1.0.9",
61
61
  "stylelint-use-nesting": "^6.0.1"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public",
65
+ "registry": "https://registry.npmjs.org/"
62
66
  }
63
67
  }