Skip to content

Commit 6230ac6

Browse files
authored
Fix setup for eslint-remote-tester for testing our rules against other repos (#1741)
1 parent 9233899 commit 6230ac6

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ npm-debug.log
1313
.vscode
1414

1515
# eslint-remote-tester
16-
.cache-eslint-remote-tester
1716
eslint-remote-tester-results

eslint-remote-tester.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint filenames/match-regex:off */
2-
const { getPathIgnorePattern } = require('eslint-remote-tester-repositories');
32
const fs = require('fs');
43

4+
/** @type {import('eslint-remote-tester').Config} */
55
module.exports = {
66
/** Repositories to scan */
77
repositories: [
@@ -28,9 +28,6 @@ module.exports = {
2828
'typed-ember/ember-cli-typescript',
2929
],
3030

31-
/** Optional pattern used to exclude paths */
32-
pathIgnorePattern: getPathIgnorePattern(),
33-
3431
/** Extensions of files under scanning */
3532
extensions: ['js', 'ts'],
3633

@@ -40,6 +37,7 @@ module.exports = {
4037
/** ESLint configuration */
4138
eslintrc: {
4239
plugins: ['ember'],
40+
4341
// Enable all of our rules.
4442
rules: Object.fromEntries(
4543
fs
@@ -58,5 +56,12 @@ module.exports = {
5856
return [ruleName, value];
5957
})
6058
),
59+
60+
overrides: [
61+
{
62+
files: ['*.ts'],
63+
parser: '@typescript-eslint/parser',
64+
},
65+
],
6166
},
6267
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"eslint-plugin-prettier": "^4.0.0",
9797
"eslint-plugin-unicorn": "^46.0.0",
9898
"eslint-remote-tester": "^3.0.0",
99-
"eslint-remote-tester-repositories": "^1.0.0",
10099
"jest": "^29.1.2",
101100
"jquery": "^3.5.1",
102101
"jsdom": "^21.0.0",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,11 +2911,6 @@ eslint-plugin-unicorn@^46.0.0:
29112911
semver "^7.3.8"
29122912
strip-indent "^3.0.0"
29132913

2914-
eslint-remote-tester-repositories@^1.0.0:
2915-
version "1.0.1"
2916-
resolved "https://registry.yarnpkg.com/eslint-remote-tester-repositories/-/eslint-remote-tester-repositories-1.0.1.tgz#2e5f15fa6bb631e72e817772867ff6771ed20b51"
2917-
integrity sha512-XL9PqGBDL4rORnQ74b/3tqbJUpMlPz9gzKSrmYFtakLBQ/ayBELB/HZvd6ZEl+mH0vBeSYtUH7E/rawBsf9Qzg==
2918-
29192914
eslint-remote-tester@^3.0.0:
29202915
version "3.0.0"
29212916
resolved "https://registry.yarnpkg.com/eslint-remote-tester/-/eslint-remote-tester-3.0.0.tgz#aa9b357d65250245f1d6556b4decaf993e2c72f4"

0 commit comments

Comments
 (0)