Skip to content

Commit

Permalink
Allow parser and parserOptions to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 6, 2022
1 parent f8bf93a commit 193593a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = defineConfig({
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
Expand Down
15 changes: 15 additions & 0 deletions src/overrides.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Environments } from './env';
import type { Extends } from './extends';
import type { Parser, ParserOptions } from './parser-options';
import type { Rules } from './rules';

/**
Expand All @@ -19,6 +20,20 @@ export interface Override {
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
*/
extends?: Extends;
/**
* Parser.
*
* @see [Working with Custom Parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers)
* @see [Specifying Parser](https://eslint.org/docs/user-guide/configuring/plugins#specifying-parser)
*/
parser?: Parser;
/**
* Parser Options.
*
* @see [Working with Custom Parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers)
* @see [Specifying Parser Options](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options)
*/
parserOptions?: ParserOptions;
/**
* Specifying Processor.
*
Expand Down

0 comments on commit 193593a

Please sign in to comment.