Skip to content

Commit

Permalink
Fix setup for eslint-remote-tester for testing our rules against othe…
Browse files Browse the repository at this point in the history
…r repos (#1741)
  • Loading branch information
bmish committed May 21, 2023
1 parent 9233899 commit 6230ac6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ npm-debug.log
.vscode

# eslint-remote-tester
.cache-eslint-remote-tester
eslint-remote-tester-results
13 changes: 9 additions & 4 deletions eslint-remote-tester.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint filenames/match-regex:off */
const { getPathIgnorePattern } = require('eslint-remote-tester-repositories');
const fs = require('fs');

/** @type {import('eslint-remote-tester').Config} */
module.exports = {
/** Repositories to scan */
repositories: [
Expand All @@ -28,9 +28,6 @@ module.exports = {
'typed-ember/ember-cli-typescript',
],

/** Optional pattern used to exclude paths */
pathIgnorePattern: getPathIgnorePattern(),

/** Extensions of files under scanning */
extensions: ['js', 'ts'],

Expand All @@ -40,6 +37,7 @@ module.exports = {
/** ESLint configuration */
eslintrc: {
plugins: ['ember'],

// Enable all of our rules.
rules: Object.fromEntries(
fs
Expand All @@ -58,5 +56,12 @@ module.exports = {
return [ruleName, value];
})
),

overrides: [
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
},
],
},
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "^1.0.0",
"jest": "^29.1.2",
"jquery": "^3.5.1",
"jsdom": "^21.0.0",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2911,11 +2911,6 @@ eslint-plugin-unicorn@^46.0.0:
semver "^7.3.8"
strip-indent "^3.0.0"

eslint-remote-tester-repositories@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/eslint-remote-tester-repositories/-/eslint-remote-tester-repositories-1.0.1.tgz#2e5f15fa6bb631e72e817772867ff6771ed20b51"
integrity sha512-XL9PqGBDL4rORnQ74b/3tqbJUpMlPz9gzKSrmYFtakLBQ/ayBELB/HZvd6ZEl+mH0vBeSYtUH7E/rawBsf9Qzg==

eslint-remote-tester@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/eslint-remote-tester/-/eslint-remote-tester-3.0.0.tgz#aa9b357d65250245f1d6556b4decaf993e2c72f4"
Expand Down

0 comments on commit 6230ac6

Please sign in to comment.