-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Update
eslint-remote-tester
to v4 (#2376)
- Loading branch information
1 parent
2616ce3
commit 1490bb6
Showing
4 changed files
with
69 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,63 @@ | ||
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} */ | ||
const config = { | ||
/** Repositories to scan */ | ||
repositories: getRepositories({randomize: true}), | ||
|
||
/** Optional pattern used to exclude paths */ | ||
pathIgnorePattern: getPathIgnorePattern(), | ||
|
||
/** Extensions of files under scanning */ | ||
extensions: ['js', 'cjs', 'mjs', 'ts', 'cts', 'mts', 'jsx', 'tsx', 'vue'], | ||
|
||
/** 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: [], | ||
}, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default config; |