@exbotanical/eslint-config 1.1.2 → 1.1.4

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.
@@ -1,263 +0,0 @@
1
- import {
2
- __commonJS,
3
- __dirname,
4
- __require,
5
- init_esm_shims
6
- } from "./chunk-6GNDNAEM.js";
7
-
8
- // node_modules/eslint-plugin-jest/package.json
9
- var require_package = __commonJS({
10
- "node_modules/eslint-plugin-jest/package.json"(exports, module) {
11
- module.exports = {
12
- name: "eslint-plugin-jest",
13
- version: "28.11.0",
14
- description: "ESLint rules for Jest",
15
- keywords: [
16
- "eslint",
17
- "eslintplugin",
18
- "eslint-plugin"
19
- ],
20
- homepage: "https://github.com/jest-community/eslint-plugin-jest#readme",
21
- bugs: {
22
- url: "https://github.com/jest-community/eslint-plugin-jest/issues"
23
- },
24
- repository: {
25
- type: "git",
26
- url: "git+https://github.com/jest-community/eslint-plugin-jest.git"
27
- },
28
- license: "MIT",
29
- author: {
30
- name: "Jonathan Kim",
31
- email: "hello@jkimbo.com",
32
- url: "jkimbo.com"
33
- },
34
- main: "lib/index.js",
35
- types: "index.d.ts",
36
- files: [
37
- "docs/",
38
- "lib/",
39
- "index.d.ts"
40
- ],
41
- scripts: {
42
- build: "babel --extensions .js,.ts src --out-dir lib --copy-files && rimraf --glob lib/__tests__ 'lib/**/__tests__'",
43
- _postinstall: "is-ci || husky",
44
- lint: "eslint . --ignore-pattern '!.eslintrc.js' --ext js,ts",
45
- prepack: "rimraf lib && yarn build",
46
- prepublishOnly: "pinst --disable",
47
- "prettier:check": "prettier --check 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
48
- "prettier:write": "prettier --write 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
49
- postpublish: "pinst --enable",
50
- "regenerate-docs": "yarn prepack && eslint-doc-generator",
51
- test: "jest",
52
- typecheck: "tsc -p ."
53
- },
54
- commitlint: {
55
- extends: [
56
- "@commitlint/config-conventional"
57
- ]
58
- },
59
- "lint-staged": {
60
- "*.{js,ts}": "eslint --fix",
61
- "*.{md,json,yml}": "prettier --write"
62
- },
63
- prettier: {
64
- arrowParens: "avoid",
65
- endOfLine: "auto",
66
- proseWrap: "always",
67
- singleQuote: true
68
- },
69
- release: {
70
- plugins: [
71
- "@semantic-release/commit-analyzer",
72
- "@semantic-release/release-notes-generator",
73
- "@semantic-release/changelog",
74
- "@semantic-release/npm",
75
- "@semantic-release/git",
76
- "@semantic-release/github"
77
- ]
78
- },
79
- dependencies: {
80
- "@typescript-eslint/utils": "^6.0.0 || ^7.0.0 || ^8.0.0"
81
- },
82
- devDependencies: {
83
- "@babel/cli": "^7.4.4",
84
- "@babel/core": "^7.4.4",
85
- "@babel/preset-env": "^7.4.4",
86
- "@babel/preset-typescript": "^7.3.3",
87
- "@commitlint/cli": "^17.0.3",
88
- "@commitlint/config-conventional": "^17.0.3",
89
- "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
90
- "@schemastore/package": "^0.0.10",
91
- "@semantic-release/changelog": "^6.0.0",
92
- "@semantic-release/git": "^10.0.0",
93
- "@tsconfig/node16": "^16.0.0",
94
- "@types/eslint": "^8.4.6",
95
- "@types/jest": "^29.0.0",
96
- "@types/node": "^16.0.0",
97
- "@typescript-eslint/eslint-plugin": "^6.0.0",
98
- "@typescript-eslint/parser": "^6.0.0",
99
- "@typescript-eslint/utils": "^6.0.0",
100
- "babel-jest": "^29.0.0",
101
- "babel-plugin-replace-ts-export-assignment": "^0.0.2",
102
- dedent: "^1.5.0",
103
- eslint: "^7.0.0 || ^8.0.0",
104
- "eslint-config-prettier": "^10.0.0",
105
- "eslint-doc-generator": "^1.0.0",
106
- "eslint-plugin-eslint-plugin": "^6.0.0",
107
- "eslint-plugin-import": "^2.25.1",
108
- "eslint-plugin-n": "^17.0.0",
109
- "eslint-plugin-prettier": "^5.0.0",
110
- "eslint-remote-tester": "^3.0.0",
111
- "eslint-remote-tester-repositories": "~1.0.0",
112
- husky: "^9.0.1",
113
- "is-ci": "^4.0.0",
114
- jest: "^29.0.0",
115
- "jest-runner-eslint": "^2.0.0",
116
- "lint-staged": "^13.0.3",
117
- "markdown-link-check": "~3.12.0",
118
- pinst: "^3.0.0",
119
- prettier: "^3.0.0",
120
- rimraf: "^5.0.0",
121
- "semantic-release": "^24.0.0",
122
- semver: "^7.3.5",
123
- "strip-ansi": "^6.0.0",
124
- "ts-node": "^10.2.1",
125
- typescript: "^5.0.4"
126
- },
127
- peerDependencies: {
128
- "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0 || ^8.0.0",
129
- eslint: "^7.0.0 || ^8.0.0 || ^9.0.0",
130
- jest: "*"
131
- },
132
- peerDependenciesMeta: {
133
- "@typescript-eslint/eslint-plugin": {
134
- optional: true
135
- },
136
- jest: {
137
- optional: true
138
- }
139
- },
140
- packageManager: "yarn@3.8.7",
141
- engines: {
142
- node: "^16.10.0 || ^18.12.0 || >=20.0.0"
143
- },
144
- publishConfig: {
145
- provenance: true
146
- }
147
- };
148
- }
149
- });
150
-
151
- // node_modules/eslint-plugin-jest/lib/globals.json
152
- var require_globals = __commonJS({
153
- "node_modules/eslint-plugin-jest/lib/globals.json"(exports, module) {
154
- module.exports = {
155
- afterAll: false,
156
- afterEach: false,
157
- beforeAll: false,
158
- beforeEach: false,
159
- describe: false,
160
- expect: false,
161
- fit: false,
162
- it: false,
163
- jest: false,
164
- test: false,
165
- xdescribe: false,
166
- xit: false,
167
- xtest: false
168
- };
169
- }
170
- });
171
-
172
- // node_modules/eslint-plugin-jest/lib/index.js
173
- var require_lib = __commonJS({
174
- "node_modules/eslint-plugin-jest/lib/index.js"(exports, module) {
175
- init_esm_shims();
176
- var _fs = __require("fs");
177
- var _path = __require("path");
178
- var _package = require_package();
179
- var _globals = _interopRequireDefault(require_globals());
180
- function _interopRequireDefault(e) {
181
- return e && e.__esModule ? e : { default: e };
182
- }
183
- var interopRequireDefault = (obj) => obj && obj.__esModule ? obj : {
184
- default: obj
185
- };
186
- var importDefault = (moduleName) => (
187
- // eslint-disable-next-line @typescript-eslint/no-require-imports
188
- interopRequireDefault(__require(moduleName)).default
189
- );
190
- var rulesDir = (0, _path.join)(__dirname, "rules");
191
- var excludedFiles = ["__tests__", "detectJestVersion", "utils"];
192
- var rules = Object.fromEntries((0, _fs.readdirSync)(rulesDir).map((rule) => (0, _path.parse)(rule).name).filter((rule) => !excludedFiles.includes(rule)).map((rule) => [rule, importDefault((0, _path.join)(rulesDir, rule))]));
193
- var recommendedRules = {
194
- "jest/expect-expect": "warn",
195
- "jest/no-alias-methods": "error",
196
- "jest/no-commented-out-tests": "warn",
197
- "jest/no-conditional-expect": "error",
198
- "jest/no-deprecated-functions": "error",
199
- "jest/no-disabled-tests": "warn",
200
- "jest/no-done-callback": "error",
201
- "jest/no-export": "error",
202
- "jest/no-focused-tests": "error",
203
- "jest/no-identical-title": "error",
204
- "jest/no-interpolation-in-snapshots": "error",
205
- "jest/no-jasmine-globals": "error",
206
- "jest/no-mocks-import": "error",
207
- "jest/no-standalone-expect": "error",
208
- "jest/no-test-prefixes": "error",
209
- "jest/valid-describe-callback": "error",
210
- "jest/valid-expect": "error",
211
- "jest/valid-expect-in-promise": "error",
212
- "jest/valid-title": "error"
213
- };
214
- var styleRules = {
215
- "jest/no-alias-methods": "warn",
216
- "jest/prefer-to-be": "error",
217
- "jest/prefer-to-contain": "error",
218
- "jest/prefer-to-have-length": "error"
219
- };
220
- var allRules = Object.fromEntries(Object.entries(rules).filter(([, rule]) => !rule.meta.deprecated).map(([name]) => [`jest/${name}`, "error"]));
221
- var plugin = {
222
- meta: {
223
- name: _package.name,
224
- version: _package.version
225
- },
226
- // ugly cast for now to keep TypeScript happy since
227
- // we don't have types for flat config yet
228
- configs: {},
229
- environments: {
230
- globals: {
231
- globals: _globals.default
232
- }
233
- },
234
- rules
235
- };
236
- var createRCConfig = (rules2) => ({
237
- plugins: ["jest"],
238
- env: {
239
- "jest/globals": true
240
- },
241
- rules: rules2
242
- });
243
- var createFlatConfig = (rules2) => ({
244
- plugins: {
245
- jest: plugin
246
- },
247
- languageOptions: {
248
- globals: _globals.default
249
- },
250
- rules: rules2
251
- });
252
- plugin.configs = {
253
- all: createRCConfig(allRules),
254
- recommended: createRCConfig(recommendedRules),
255
- style: createRCConfig(styleRules),
256
- "flat/all": createFlatConfig(allRules),
257
- "flat/recommended": createFlatConfig(recommendedRules),
258
- "flat/style": createFlatConfig(styleRules)
259
- };
260
- module.exports = plugin;
261
- }
262
- });
263
- export default require_lib();