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

Commit a12979f

Browse files
committed
Add ignorePatterns
1 parent 4492acf commit a12979f

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const { defineConfig } = require('eslint-define-config');
33

44
module.exports = defineConfig({
5+
ignorePatterns: ['dist/', '.eslintrc.js'],
56
env: {
67
es6: true,
78
node: true

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { Settings } from './settings';
99
*/
1010
export interface EslintConfig {
1111
root?: boolean;
12+
ignorePatterns?: string[];
1213
env?: Env;
1314
extends?: string[];
1415
parser?: string;

src/parser-options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
*
33
*/
44
export interface ParserOptions {
5-
sourceType?: 'module' | '...';
65
ecmaVersion?: 2020;
6+
parser?: string;
77
project?: any;
8+
sourceType?: 'module' | '...';
89
warnOnUnsupportedTypeScriptVersion?: boolean;
910
}

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2018",
4-
"module": "CommonJS",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Node",
56
"inlineSourceMap": true,
6-
"lib": ["ES2018", "DOM"],
7+
"lib": ["ESNext"],
78
"outDir": "dist",
8-
"moduleResolution": "Node",
99
"rootDir": "src",
1010
"strict": true,
1111
"noUncheckedIndexedAccess": true,

tsconfig.lint.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2018",
4-
"module": "CommonJS",
5-
"lib": ["ES2018", "DOM"],
6-
"moduleResolution": "Node",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"lib": ["ESNext"],
76
"rootDir": ".",
87
"strict": true,
8+
"noUncheckedIndexedAccess": true,
99
"noEmit": true
1010
},
1111
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)