at-builder 1.2.5 → 1.2.7

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.
@@ -5,7 +5,10 @@
5
5
  "Bash(node:*)",
6
6
  "Bash(npx tsc:*)",
7
7
  "Bash(find:*)",
8
- "Bash(rm:*)"
8
+ "Bash(rm:*)",
9
+ "Bash(npm ls:*)",
10
+ "Bash(ls:*)",
11
+ "Bash(npx eslint:*)"
9
12
  ],
10
13
  "deny": []
11
14
  }
@@ -0,0 +1,56 @@
1
+ /* eslint-disable no-undef */
2
+ const globals = require("globals");
3
+
4
+ module.exports = [
5
+ {
6
+ files: ["**/*.{js,mjs,cjs,ts}"],
7
+ languageOptions: {
8
+ ecmaVersion: "latest",
9
+ sourceType: "module",
10
+ globals: {
11
+ ...globals.browser,
12
+ ...globals.es2021,
13
+ ...globals.jquery,
14
+ document: "readonly",
15
+ Microsoft: "readonly",
16
+ navigator: "readonly",
17
+ window: "readonly",
18
+ utag_data: "readonly",
19
+ utag: "readonly",
20
+ docCookies: "readonly"
21
+ }
22
+ },
23
+ rules: {
24
+ 'no-var': 'error',
25
+ 'no-unused-vars': [
26
+ 'error',
27
+ {
28
+ args: 'none',
29
+ caughtErrors: 'none',
30
+ ignoreRestSiblings: true,
31
+ vars: 'all'
32
+ }
33
+ ],
34
+ 'no-undef': 'error',
35
+ 'prefer-const': [
36
+ 'error',
37
+ {
38
+ destructuring: 'all'
39
+ }
40
+ ],
41
+ 'indent': ['error', 4],
42
+ 'no-debugger': 'warn',
43
+ 'eqeqeq': ['error', 'always', { null: 'ignore' }],
44
+ 'no-trailing-spaces': 'error',
45
+ 'semi': 'off',
46
+ 'no-console': 'warn'
47
+ }
48
+ },
49
+ {
50
+ ignores: [
51
+ '**/node_modules/**',
52
+ 'dist/**',
53
+ 'build/**'
54
+ ]
55
+ }
56
+ ];
@@ -0,0 +1,130 @@
1
+ /* eslint-disable no-undef */
2
+ const { ESLint } = require('eslint');
3
+ const path = require('path');
4
+
5
+ class ESLintFlatConfigPlugin {
6
+ constructor(options = {}) {
7
+ this.options = {
8
+ context: options.context || process.cwd(),
9
+ configFile: options.configFile,
10
+ overrideConfigFiles: options.overrideConfigFiles || [], // Array of additional config files
11
+ failOnError: options.failOnError !== false,
12
+ failOnWarning: options.failOnWarning || false,
13
+ fix: options.fix || false, // Enable auto-fix
14
+ extensions: options.extensions || ['js', 'ts'],
15
+ ...options
16
+ };
17
+ }
18
+
19
+ apply(compiler) {
20
+ const pluginName = 'ESLintFlatConfigPlugin';
21
+
22
+ compiler.hooks.compilation.tap(pluginName, (compilation) => {
23
+ compilation.hooks.finishModules.tapPromise(pluginName, async (modules) => {
24
+ const filesToLint = [];
25
+
26
+ for (const module of modules) {
27
+ if (module.resource) {
28
+ // Skip node_modules
29
+ if (module.resource.includes('node_modules')) {
30
+ continue;
31
+ }
32
+
33
+ const ext = path.extname(module.resource).slice(1);
34
+ if (this.options.extensions.includes(ext)) {
35
+ filesToLint.push(module.resource);
36
+ }
37
+ }
38
+ }
39
+
40
+ if (filesToLint.length === 0) return;
41
+
42
+ try {
43
+ // Load base config
44
+ let baseConfig = [];
45
+ if (this.options.configFile && require('fs').existsSync(this.options.configFile)) {
46
+ delete require.cache[require.resolve(this.options.configFile)];
47
+ baseConfig = require(this.options.configFile);
48
+ }
49
+
50
+ // Load and merge override configs
51
+ const overrideConfigs = [];
52
+ for (const configPath of this.options.overrideConfigFiles) {
53
+ try {
54
+ const resolvedPath = path.resolve(this.options.context, configPath);
55
+ if (require('fs').existsSync(resolvedPath)) {
56
+ delete require.cache[require.resolve(resolvedPath)];
57
+ const config = require(resolvedPath);
58
+ overrideConfigs.push(...(Array.isArray(config) ? config : [config]));
59
+ }
60
+ } catch (err) {
61
+ // Silently skip if config doesn't exist
62
+ }
63
+ }
64
+
65
+ // Merge all configs (base + overrides)
66
+ const mergedConfig = [
67
+ ...(Array.isArray(baseConfig) ? baseConfig : [baseConfig]),
68
+ ...overrideConfigs
69
+ ];
70
+
71
+ const eslint = new ESLint({
72
+ cwd: this.options.context,
73
+ overrideConfig: mergedConfig,
74
+ ignore: false, // Don't use default ignore patterns
75
+ fix: this.options.fix // Enable auto-fix if option is set
76
+ });
77
+
78
+ const results = await eslint.lintFiles(filesToLint);
79
+
80
+ // Apply fixes if enabled
81
+ if (this.options.fix) {
82
+ await ESLint.outputFixes(results);
83
+ }
84
+
85
+ let hasErrors = false;
86
+ let hasWarnings = false;
87
+
88
+ for (const result of results) {
89
+ if (result.errorCount > 0) {
90
+ hasErrors = true;
91
+ for (const message of result.messages.filter(m => m.severity === 2)) {
92
+ const error = new Error(
93
+ `[ESLint] ${result.filePath}:${message.line}:${message.column}\n ${message.message} (${message.ruleId})`
94
+ );
95
+ error.file = result.filePath;
96
+ compilation.errors.push(error);
97
+ }
98
+ }
99
+
100
+ if (result.warningCount > 0) {
101
+ hasWarnings = true;
102
+ for (const message of result.messages.filter(m => m.severity === 1)) {
103
+ const warning = new Error(
104
+ `[ESLint] ${result.filePath}:${message.line}:${message.column}\n ${message.message} (${message.ruleId})`
105
+ );
106
+ warning.file = result.filePath;
107
+ compilation.warnings.push(warning);
108
+ }
109
+ }
110
+ }
111
+
112
+ if (this.options.failOnError && hasErrors) {
113
+ throw new Error('[ESLint] Build failed due to linting errors');
114
+ }
115
+
116
+ if (this.options.failOnWarning && hasWarnings) {
117
+ throw new Error('[ESLint] Build failed due to linting warnings');
118
+ }
119
+ } catch (error) {
120
+ if (error.message.includes('Build failed')) {
121
+ throw error;
122
+ }
123
+ compilation.errors.push(error);
124
+ }
125
+ });
126
+ });
127
+ }
128
+ }
129
+
130
+ module.exports = ESLintFlatConfigPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-builder",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "main": "bin/index.js",
5
5
  "bin": {
6
6
  "atb": "bin/index.js"
@@ -10,7 +10,7 @@
10
10
  "build:atb:dev": "tsc -w",
11
11
  "atb:build:prod": "cross-env NODE_ENV=production webpack",
12
12
  "atb:build:dev": "webpack -- -w",
13
- "atb:build:dev:puppeteer": "webpack -- -w & npm run puppeteer",
13
+ "atb:build:dev:puppeteer": "webpack -- -w & npm run atb:puppeteer",
14
14
  "atb:puppeteer": "node puppeteer.js $b",
15
15
  "atb:plop:new:activity": "plop page",
16
16
  "atb:build:deploy": "node lib/at-deploy.js"
package/plopfile.js CHANGED
@@ -1,6 +1,3 @@
1
- /* eslint-disable no-undef */
2
- /* eslint-disable @typescript-eslint/no-require-imports */
3
-
4
1
  const components = require("./.plop/generators/components");
5
2
  const path = require('path');
6
3
  const dotenv = require('dotenv');
package/puppeteer.js CHANGED
@@ -1,11 +1,11 @@
1
+ /* eslint-disable no-undef */
1
2
  import dotenv from 'dotenv';
2
3
  import path from 'path';
3
4
  import puppeteer from 'puppeteer';
4
5
  import fs from 'fs';
5
6
  import chokidar from 'chokidar';
6
- import { executionPath } from process.env;
7
+ const executionPath = process.env.executionPath || process.cwd();
7
8
  dotenv.config({ path: path.join(executionPath, ".env") });
8
- //const watchConfig = "./../watch-config.json";
9
9
 
10
10
  let watchConfig = '';
11
11
  try {
@@ -43,18 +43,13 @@ const watcher = chokidar.watch("file", {
43
43
  await this.page.$eval('#pwd', el => el.value = '');
44
44
  }
45
45
 
46
- async autoFillLoginDetails() {
47
- await this.page.$eval('#email', el => el.value = '');
48
- await this.page.$eval('#pwd', el => el.value = '');
49
- }
50
-
51
46
  async openTab() {
52
47
  this.page = await this.browser.pages();
53
48
  this.page = this.page[0];
54
49
  this.page.setDefaultTimeout(3e8);
55
50
  // await this.page.setViewport({ width: 1792, height: 768 });
56
51
  await this.page.setViewport({ width: 1920, height: 1080 });
57
- await this.page.goto(process.env.PUPPETEER_LANDING_PAGE);
52
+ await this.page.goto(process.env.PUPPETEER_LANDING_PAGE || "https://www.google.com");
58
53
 
59
54
  // inject script
60
55
  this.injectCodeSnippet();
@@ -69,6 +64,7 @@ const watcher = chokidar.watch("file", {
69
64
 
70
65
  await this.page.reload();
71
66
  this.injectCodeSnippet();
67
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
72
68
  } catch (error) {
73
69
 
74
70
  }
package/webpack.config.js CHANGED
@@ -1,13 +1,10 @@
1
- /* eslint-disable no-undef */
2
- /* eslint-disable @typescript-eslint/no-require-imports */
3
-
4
1
  const path = require('path');
5
2
  const fs = require('fs');
6
3
  const dotenv = require('dotenv');
7
4
  const { Compilation } = require('webpack');
8
5
  const WrapperPlugin = require('./lib/CustomWrapperPlugin');
9
6
  const TerserPlugin = require('terser-webpack-plugin');
10
- const ESLintPlugin = require('eslint-webpack-plugin');
7
+ const ESLintFlatConfigPlugin = require('./lib/eslint-flat-config-plugin');
11
8
  const postcssPresetEnv = require('postcss-preset-env');
12
9
  const AdobeTargetBuildGeneratorPlugin = require('./lib/at-build-generator.cjs');
13
10
 
@@ -41,7 +38,7 @@ let ignoreFolders = [
41
38
 
42
39
 
43
40
 
44
- let count = 0;
41
+
45
42
  /**
46
43
  * Method to traverse folder recursively
47
44
  * @param {*} dir - Directory name
@@ -130,10 +127,17 @@ files.forEach((file) => {
130
127
  const isProdMode = environment == PRODUCTION;
131
128
 
132
129
  const plugins = [
133
- new ESLintPlugin({
134
- extensions: "js",
135
- outputReport: true,
136
- fix: true
130
+ new ESLintFlatConfigPlugin({
131
+ extensions: ["js", "ts"],
132
+ context: PWD,
133
+ configFile: path.resolve(__dirname, 'eslint.config.js'),
134
+ overrideConfigFiles: [
135
+ 'eslint.config.js' // Load project-specific overrides from PWD if exists
136
+ ],
137
+ fix: !isProdMode, // Auto-fix in development mode only
138
+ failOnError: isProdMode, // Fail on errors in production
139
+ failOnWarning: false,
140
+ fix: false
137
141
  }),
138
142
  new WrapperPlugin({
139
143
  test: /\.js$/,
@@ -254,7 +258,8 @@ module.exports = {
254
258
  use: {
255
259
  loader: 'ts-loader',
256
260
  options: {
257
- transpileOnly: true
261
+ transpileOnly: true,
262
+ configFile: path.resolve(__dirname, './tsconfig.json'),
258
263
  }
259
264
  },
260
265
  exclude: /node_modules/,
@@ -265,7 +270,8 @@ module.exports = {
265
270
  use: {
266
271
  loader: 'babel-loader',
267
272
  options: {
268
- presets: ['@babel/preset-env']
273
+ presets: ['@babel/preset-env'],
274
+ configFile: path.resolve(__dirname, './babel.config.js'),
269
275
  }
270
276
  }
271
277
  },
package/.eslintrc DELETED
@@ -1,525 +0,0 @@
1
- {
2
- "parser": "@babel/eslint-parser",
3
- "parserOptions": {
4
- "ecmaVersion": "latest",
5
- "sourceType": "module",
6
- "es6": true
7
- },
8
- "env": {
9
- "es2021": true,
10
- "browser": true,
11
- "jquery": true
12
- },
13
- "globals": {
14
- "document": "readonly",
15
- "navigator": "readonly",
16
- "window": "readonly",
17
- "utag_data": "readonly",
18
- "utag": "readonly"
19
- },
20
- "ignorePatterns": [
21
- "webpack.config.js",
22
- "puppeteer.js",
23
- "plopfile.js",
24
- "build.js",
25
- "babel.config.js",
26
- "at-build-generator.js"
27
- ],
28
- "rules": {
29
- "no-var": "warn",
30
- "accessor-pairs": [
31
- "error",
32
- {
33
- "setWithoutGet": true,
34
- "enforceForClassMembers": true
35
- }
36
- ],
37
- "array-bracket-spacing": [
38
- "error",
39
- "never"
40
- ],
41
- "array-callback-return": [
42
- "error",
43
- {
44
- "allowImplicit": false,
45
- "checkForEach": false
46
- }
47
- ],
48
- "arrow-spacing": [
49
- "error",
50
- {
51
- "before": true,
52
- "after": true
53
- }
54
- ],
55
- "block-spacing": [
56
- "error",
57
- "always"
58
- ],
59
- "brace-style": [
60
- "error",
61
- "1tbs",
62
- {
63
- "allowSingleLine": true
64
- }
65
- ],
66
- "camelcase": [
67
- "error",
68
- {
69
- "allow": [
70
- "^UNSAFE_"
71
- ],
72
- "properties": "never",
73
- "ignoreGlobals": true
74
- }
75
- ],
76
- "comma-dangle": [
77
- "error",
78
- {
79
- "arrays": "never",
80
- "objects": "never",
81
- "imports": "never",
82
- "exports": "never",
83
- "functions": "never"
84
- }
85
- ],
86
- "comma-spacing": [
87
- "error",
88
- {
89
- "before": false,
90
- "after": true
91
- }
92
- ],
93
- "comma-style": [
94
- "error",
95
- "last"
96
- ],
97
- "computed-property-spacing": [
98
- "error",
99
- "never",
100
- {
101
- "enforceForClassMembers": true
102
- }
103
- ],
104
- "constructor-super": "error",
105
- "curly": [
106
- "error",
107
- "multi-line"
108
- ],
109
- "default-case-last": "error",
110
- "dot-location": [
111
- "error",
112
- "property"
113
- ],
114
- "dot-notation": [
115
- "error",
116
- {
117
- "allowKeywords": true
118
- }
119
- ],
120
- "eol-last": "warn",
121
- "eqeqeq": [
122
- "error",
123
- "always",
124
- {
125
- "null": "ignore"
126
- }
127
- ],
128
- "func-call-spacing": [
129
- "error",
130
- "never"
131
- ],
132
- "generator-star-spacing": [
133
- "error",
134
- {
135
- "before": true,
136
- "after": true
137
- }
138
- ],
139
- "indent": [
140
- "error",
141
- 4
142
- ],
143
- "key-spacing": [
144
- "error",
145
- {
146
- "beforeColon": false,
147
- "afterColon": true
148
- }
149
- ],
150
- "keyword-spacing": [
151
- "error",
152
- {
153
- "before": true,
154
- "after": true
155
- }
156
- ],
157
- "lines-between-class-members": [
158
- "error",
159
- "always",
160
- {
161
- "exceptAfterSingleLine": true
162
- }
163
- ],
164
- "multiline-ternary": [
165
- "error",
166
- "always-multiline"
167
- ],
168
- "new-cap": [
169
- "error",
170
- {
171
- "newIsCap": true,
172
- "capIsNew": false,
173
- "properties": true
174
- }
175
- ],
176
- "new-parens": "error",
177
- "no-array-constructor": "error",
178
- "no-async-promise-executor": "error",
179
- "no-caller": "error",
180
- "no-case-declarations": "error",
181
- "no-class-assign": "error",
182
- "no-compare-neg-zero": "error",
183
- "no-cond-assign": "error",
184
- "no-const-assign": "error",
185
- "no-constant-condition": [
186
- "error",
187
- {
188
- "checkLoops": false
189
- }
190
- ],
191
- "no-control-regex": "error",
192
- "no-debugger": "off",
193
- "no-delete-var": "error",
194
- "no-dupe-args": "error",
195
- "no-dupe-class-members": "error",
196
- "no-dupe-keys": "error",
197
- "no-duplicate-case": "error",
198
- "no-useless-backreference": "error",
199
- "no-empty": [
200
- "error",
201
- {
202
- "allowEmptyCatch": true
203
- }
204
- ],
205
- "no-empty-character-class": "error",
206
- "no-empty-pattern": "error",
207
- "no-eval": "error",
208
- "no-ex-assign": "error",
209
- "no-extend-native": "error",
210
- "no-extra-bind": "error",
211
- "no-extra-boolean-cast": "error",
212
- "no-extra-parens": [
213
- "error",
214
- "functions"
215
- ],
216
- "no-fallthrough": "error",
217
- "no-floating-decimal": "error",
218
- "no-func-assign": "error",
219
- "no-global-assign": "error",
220
- "no-implied-eval": "error",
221
- "no-import-assign": "error",
222
- "no-invalid-regexp": "error",
223
- "no-irregular-whitespace": "error",
224
- "no-iterator": "error",
225
- "no-labels": [
226
- "error",
227
- {
228
- "allowLoop": false,
229
- "allowSwitch": false
230
- }
231
- ],
232
- "no-lone-blocks": "error",
233
- "no-loss-of-precision": "error",
234
- "no-misleading-character-class": "error",
235
- "no-prototype-builtins": "error",
236
- "no-useless-catch": "error",
237
- "no-mixed-operators": [
238
- "error",
239
- {
240
- "groups": [
241
- [
242
- "==",
243
- "!=",
244
- "===",
245
- "!==",
246
- ">",
247
- ">=",
248
- "<",
249
- "<="
250
- ],
251
- [
252
- "&&",
253
- "||"
254
- ],
255
- [
256
- "in",
257
- "instanceof"
258
- ]
259
- ],
260
- "allowSamePrecedence": true
261
- }
262
- ],
263
- "no-mixed-spaces-and-tabs": "error",
264
- "no-multi-spaces": "error",
265
- "no-multi-str": "error",
266
- "no-multiple-empty-lines": [
267
- "error",
268
- {
269
- "max": 1,
270
- "maxEOF": 0
271
- }
272
- ],
273
- "no-new": "error",
274
- "no-new-func": "error",
275
- "no-new-object": "error",
276
- "no-new-symbol": "error",
277
- "no-new-wrappers": "error",
278
- "no-obj-calls": "error",
279
- "no-octal": "error",
280
- "no-octal-escape": "error",
281
- "no-proto": "error",
282
- "no-redeclare": [
283
- "error",
284
- {
285
- "builtinGlobals": false
286
- }
287
- ],
288
- "no-regex-spaces": "error",
289
- "no-return-assign": [
290
- "error",
291
- "except-parens"
292
- ],
293
- "no-self-assign": [
294
- "error",
295
- {
296
- "props": true
297
- }
298
- ],
299
- "no-self-compare": "error",
300
- "no-sequences": "error",
301
- "no-shadow-restricted-names": "error",
302
- "no-sparse-arrays": "error",
303
- "no-tabs": "error",
304
- "no-template-curly-in-string": "error",
305
- "no-this-before-super": "error",
306
- "no-throw-literal": "error",
307
- "no-trailing-spaces": "error",
308
- "no-undef": "error",
309
- "no-undef-init": "error",
310
- "no-unexpected-multiline": "error",
311
- "no-unmodified-loop-condition": "error",
312
- "no-unneeded-ternary": [
313
- "error",
314
- {
315
- "defaultAssignment": false
316
- }
317
- ],
318
- "no-unreachable": "error",
319
- "no-unreachable-loop": "error",
320
- "no-unsafe-finally": "error",
321
- "no-unsafe-negation": "error",
322
- "no-unused-expressions": [
323
- "error",
324
- {
325
- "allowShortCircuit": true,
326
- "allowTernary": true,
327
- "allowTaggedTemplates": true
328
- }
329
- ],
330
- "no-unused-vars": [
331
- "error",
332
- {
333
- "args": "none",
334
- "caughtErrors": "none",
335
- "ignoreRestSiblings": true,
336
- "vars": "all"
337
- }
338
- ],
339
- "no-use-before-define": [
340
- "error",
341
- {
342
- "functions": false,
343
- "classes": false,
344
- "variables": false
345
- }
346
- ],
347
- "no-useless-call": "error",
348
- "no-useless-computed-key": "error",
349
- "no-useless-constructor": "error",
350
- "no-useless-escape": "error",
351
- "no-useless-rename": "error",
352
- "no-useless-return": "error",
353
- "no-void": "error",
354
- "no-whitespace-before-property": "error",
355
- "no-with": "error",
356
- "object-curly-newline": [
357
- "error",
358
- {
359
- "multiline": true,
360
- "consistent": true
361
- }
362
- ],
363
- "object-curly-spacing": [
364
- "error",
365
- "always"
366
- ],
367
- "object-property-newline": [
368
- "error",
369
- {
370
- "allowMultiplePropertiesPerLine": true
371
- }
372
- ],
373
- "one-var": [
374
- "error",
375
- {
376
- "initialized": "never"
377
- }
378
- ],
379
- "operator-linebreak": [
380
- "error",
381
- "after",
382
- {
383
- "overrides": {
384
- "?": "before",
385
- ":": "before",
386
- "|>": "before"
387
- }
388
- }
389
- ],
390
- "padded-blocks": [
391
- "error",
392
- {
393
- "blocks": "never",
394
- "switches": "never",
395
- "classes": "never"
396
- }
397
- ],
398
- "prefer-const": [
399
- "error",
400
- {
401
- "destructuring": "all"
402
- }
403
- ],
404
- "prefer-promise-reject-errors": "error",
405
- "prefer-regex-literals": [
406
- "error",
407
- {
408
- "disallowRedundantWrapping": true
409
- }
410
- ],
411
- "quote-props": [
412
- "error",
413
- "as-needed"
414
- ],
415
- "quotes": [
416
- "error",
417
- "single",
418
- {
419
- "avoidEscape": true,
420
- "allowTemplateLiterals": false
421
- }
422
- ],
423
- "rest-spread-spacing": [
424
- "error",
425
- "never"
426
- ],
427
- "semi-spacing": [
428
- "error",
429
- {
430
- "before": false,
431
- "after": true
432
- }
433
- ],
434
- "space-before-blocks": [
435
- "off",
436
- "always"
437
- ],
438
- "space-before-function-paren": [
439
- "off",
440
- "always"
441
- ],
442
- "space-in-parens": [
443
- "error",
444
- "never"
445
- ],
446
- "space-infix-ops": "error",
447
- "space-unary-ops": [
448
- "error",
449
- {
450
- "words": true,
451
- "nonwords": false
452
- }
453
- ],
454
- "spaced-comment": [
455
- "error",
456
- "always",
457
- {
458
- "line": {
459
- "markers": [
460
- "*package",
461
- "!",
462
- "/",
463
- ",",
464
- "="
465
- ]
466
- },
467
- "block": {
468
- "balanced": true,
469
- "markers": [
470
- "*package",
471
- "!",
472
- ",",
473
- ":",
474
- "::",
475
- "flow-include"
476
- ],
477
- "exceptions": [
478
- "*"
479
- ]
480
- }
481
- }
482
- ],
483
- "symbol-description": "error",
484
- "template-curly-spacing": [
485
- "error",
486
- "never"
487
- ],
488
- "template-tag-spacing": [
489
- "error",
490
- "never"
491
- ],
492
- "unicode-bom": [
493
- "error",
494
- "never"
495
- ],
496
- "use-isnan": [
497
- "error",
498
- {
499
- "enforceForSwitchCase": true,
500
- "enforceForIndexOf": true
501
- }
502
- ],
503
- "valid-typeof": [
504
- "error",
505
- {
506
- "requireStringLiterals": true
507
- }
508
- ],
509
- "wrap-iife": [
510
- "error",
511
- "any",
512
- {
513
- "functionPrototypeMethods": true
514
- }
515
- ],
516
- "yield-star-spacing": [
517
- "error",
518
- "both"
519
- ],
520
- "yoda": [
521
- "error",
522
- "never"
523
- ]
524
- }
525
- }
package/eslint.config.mjs DELETED
@@ -1,12 +0,0 @@
1
- import globals from "globals";
2
- import pluginJs from "@eslint/js";
3
- import tseslint from "typescript-eslint";
4
-
5
-
6
- /** @type {import('eslint').Linter.Config[]} */
7
- export default [
8
- {files: ["**/*.{js,mjs,cjs,ts}"]},
9
- {languageOptions: { globals: globals.browser }},
10
- pluginJs.configs.recommended,
11
- ...tseslint.configs.recommended,
12
- ];