-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: support
eslint@9
and flat config
- Loading branch information
1 parent
799968c
commit 4d8d63d
Showing
17 changed files
with
138 additions
and
384 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
File renamed without changes.
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 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 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 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
20 changes: 0 additions & 20 deletions
20
packages/eslint-remote-tester/test/integration/base.config.cjs
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
packages/eslint-remote-tester/test/integration/base.config.js
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,26 @@ | ||
/** @type {import('../../src/config/types').Config} */ | ||
const config = { | ||
repositories: ['AriPerkkio/eslint-remote-tester-integration-test-target'], | ||
extensions: ['.js'], | ||
pathIgnorePattern: '(expected-to-be-excluded)', | ||
rulesUnderTesting: [ | ||
'no-unreachable', | ||
'no-undef', | ||
'no-empty', | ||
'getter-return', | ||
'no-compare-neg-zero', | ||
], | ||
eslintConfig: async function initialize() { | ||
const { default: js } = await eval(`import('@eslint/js')`); | ||
const { FlatCompat } = await eval(`import('@eslint/eslintrc')`); | ||
const compat = new FlatCompat({ baseDirectory: process.cwd() }); | ||
|
||
return [ | ||
js.configs.recommended, | ||
...compat.plugins('eslint-plugin-local-rules'), | ||
{ rules: { 'local-rules/some-unstable-rule': 'error' } }, | ||
]; | ||
}, | ||
}; | ||
|
||
export default config; |
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,20 @@ | ||
/** @type {import('../../src/config/types').Config} */ | ||
const config = { | ||
repositories: ['AriPerkkio/eslint-remote-tester-integration-test-target'], | ||
extensions: ['.js'], | ||
rulesUnderTesting: [ | ||
'local-rules/verbose-rule', | ||
'local-rules/verbose-rule-2', | ||
], | ||
eslintConfig: async function initialize() { | ||
const { FlatCompat } = await eval(`import('@eslint/eslintrc')`); | ||
const compat = new FlatCompat({ baseDirectory: process.cwd() }); | ||
|
||
return [ | ||
...compat.plugins('eslint-plugin-local-rules'), | ||
{ rules: { 'local-rules/verbose-rule': 'error' } }, | ||
]; | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.