-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update
eslint-remote-tester
to v4
- Loading branch information
1 parent
2616ce3
commit ddf91ba
Showing
4 changed files
with
67 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { | ||
getRepositories, | ||
getPathIgnorePattern, | ||
} from "eslint-remote-tester-repositories"; | ||
import typescriptParser from "@typescript-eslint/parser"; | ||
import vueParser from "vue-eslint-parser"; | ||
import eslintPluginUnicorn from "../../index.js"; | ||
|
||
/** @type {import('eslint-remote-tester').Config} */ | ||
export default { | ||
/** Repositories to scan */ | ||
repositories: getRepositories({ randomize: true }), | ||
Check failure on line 12 in test/smoke/eslint-remote-tester.config.mjs GitHub Actions / lint-test (ubuntu-latest)
|
||
|
||
/** Optional pattern used to exclude paths */ | ||
pathIgnorePattern: getPathIgnorePattern(), | ||
|
||
/** Extensions of files under scanning */ | ||
extensions: ["js", "cjs", "mjs", "ts", "cts", "mts", "jsx", "tsx", "vue"], | ||
Check failure on line 18 in test/smoke/eslint-remote-tester.config.mjs GitHub Actions / lint-test (ubuntu-latest)
Check failure on line 18 in test/smoke/eslint-remote-tester.config.mjs GitHub Actions / lint-test (ubuntu-latest)
|
||
|
||
/** Maximum amount of tasks ran concurrently */ | ||
concurrentTasks: 3, | ||
|
||
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defaults to true. */ | ||
cache: false, | ||
|
||
/** Optional setting for log level. Valid values are verbose, info, warn, error. Defaults to verbose. */ | ||
logLevel: "info", | ||
|
||
/** ESLint configuration */ | ||
eslintConfig: [ | ||
eslintPluginUnicorn.configs["flat/all"], | ||
{ | ||
rules: { | ||
// This rule crashing on replace string inside `jsx` or `Unicode escape sequence` | ||
"unicorn/string-content": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"], | ||
languageOptions: { | ||
parser: typescriptParser, | ||
parserOptions: { | ||
project: [], | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.vue"], | ||
languageOptions: { | ||
parser: vueParser, | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
project: [], | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |