forked from platinumazure/eslint-plugin-qunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint-remote-tester.config.js
57 lines (50 loc) · 1.67 KB
/
eslint-remote-tester.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"use strict";
const fs = require("node:fs");
const { basename, extname } = require("node:path");
/** @type {import('eslint-remote-tester').Config} */
module.exports = {
/** Repositories to scan */
repositories: [
// A few dozen top repositories using QUnit or this plugin.
"DevExpress/DevExtreme",
"adopted-ember-addons/ember-data-model-fragments",
"balanced/balanced-dashboard",
"ember-intl/ember-intl",
"emberjs/ember.js",
"getsentry/sentry-javascript",
"glimmerjs/glimmer-vm",
"hashicorp/boundary-ui",
"hotwired/stimulus",
"jashkenas/backbone",
"jquery/jquery",
"js-cookie/js-cookie",
"l10n-tw/canvas-lms",
"rust-lang/crates.io",
"simonihmig/ember-responsive-image",
"videojs/video.js",
],
/** Extensions of files under scanning */
extensions: ["js", "mjs", "cjs", "ts", "mts", "cts"],
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defaults to true. */
cache: false,
/** ESLint configuration */
eslintrc: {
plugins: ["qunit"],
// Enable all of our rules.
rules: Object.fromEntries(
fs
.readdirSync(`${__dirname}/lib/rules`)
.map(
(filename) =>
`qunit/${basename(filename, extname(filename))}`,
)
.map((ruleName) => [ruleName, "error"]),
),
overrides: [
{
files: ["*.ts", "*.mts", "*.cts"],
parser: "@typescript-eslint/parser",
},
],
},
};