Skip to content

Commit 7c3341b

Browse files
committed
refactor: fix eslint
1 parent 51106e9 commit 7c3341b

34 files changed

Lines changed: 196 additions & 273 deletions

File tree

e2e/ci-e2e/eslint.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);

e2e/cli-e2e/eslint.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);

e2e/nx-plugin-e2e/eslint.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
const resolvedBaseConfig = await (typeof baseConfig === 'function'
5-
? baseConfig()
6-
: baseConfig);
7-
8-
export default tseslint.config(...resolvedBaseConfig, {
9-
files: ['**/*.ts'],
10-
languageOptions: {
11-
parserOptions: {
12-
projectService: true,
13-
tsconfigRootDir: import.meta.dirname,
4+
export default tseslint.config(
5+
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6+
{
7+
files: ['**/*.ts'],
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname,
12+
},
1413
},
1514
},
16-
});
15+
);

0 commit comments

Comments
 (0)