Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 193593a

Browse files
committed
Allow parser and parserOptions to be overridden
1 parent f8bf93a commit 193593a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = defineConfig({
3030
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
3131
'@typescript-eslint/interface-name-prefix': 'off',
3232
'@typescript-eslint/member-ordering': 'off',
33+
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
3334
'@typescript-eslint/no-explicit-any': 'off',
3435
'@typescript-eslint/no-inferrable-types': 'off',
3536
'@typescript-eslint/no-non-null-assertion': 'off',

src/overrides.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Environments } from './env';
22
import type { Extends } from './extends';
3+
import type { Parser, ParserOptions } from './parser-options';
34
import type { Rules } from './rules';
45

56
/**
@@ -19,6 +20,20 @@ export interface Override {
1920
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
2021
*/
2122
extends?: Extends;
23+
/**
24+
* Parser.
25+
*
26+
* @see [Working with Custom Parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers)
27+
* @see [Specifying Parser](https://eslint.org/docs/user-guide/configuring/plugins#specifying-parser)
28+
*/
29+
parser?: Parser;
30+
/**
31+
* Parser Options.
32+
*
33+
* @see [Working with Custom Parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers)
34+
* @see [Specifying Parser Options](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options)
35+
*/
36+
parserOptions?: ParserOptions;
2237
/**
2338
* Specifying Processor.
2439
*

0 commit comments

Comments
 (0)