Skip to content

Commit c99d8f9

Browse files
committed
chore(eslint): use new flat eslint config
1 parent c102033 commit c99d8f9

File tree

9 files changed

+24
-128
lines changed

9 files changed

+24
-128
lines changed

eslint.config.mjs

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

3-
export default [
4-
...baseConfig,
5-
{
6-
files: ['**/*.{js,mjs,cjs,ts}'],
7-
languageOptions: {
8-
ecmaVersion: 2023,
9-
sourceType: "module",
10-
parserOptions: {
11-
project: ["./tsconfig.json", "./tsconfig.jest.json"],
12-
},
13-
},
14-
}
15-
];
3+
export default defineScTsConfig({
4+
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
5+
})

packages/branch-utilities/tsconfig.jest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../tsconfig.jest.json",
33
"compilerOptions": {
4-
"baseUrl": "./",
5-
"paths": {}
4+
"baseUrl": "./"
65
},
76
"include": [
87
"src/**/*.spec.ts",
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

3-
export default [
4-
...baseConfig,
5-
{
6-
files: ['**/*.{js,mjs,cjs,ts}'],
7-
languageOptions: {
8-
ecmaVersion: 2023,
9-
sourceType: "module",
10-
parserOptions: {
11-
project: ["./tsconfig.json", "./tsconfig.jest.json"],
12-
},
13-
},
14-
}
15-
];
3+
export default defineScTsConfig({
4+
languageOptions: { parserOptions: { project: ['./tsconfig.json'] } },
5+
})
Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,5 @@
1-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

3-
export default [
4-
...baseConfig,
5-
{
6-
files: ['**/*.{js,mjs,cjs,ts}'],
7-
languageOptions: {
8-
ecmaVersion: 2023,
9-
sourceType: "module",
10-
parserOptions: {
11-
project: ["./tsconfig.json", "./tsconfig.jest.json"],
12-
},
13-
},
14-
rules: {
15-
"import/no-extraneous-dependencies": ["error", {
16-
devDependencies: true,
17-
}],
18-
},
19-
}
20-
];
21-
22-
// export default [{
23-
// languageOptions: {
24-
// ecmaVersion: 5,
25-
// sourceType: "script",
26-
27-
// parserOptions: {
28-
// project: ["./tsconfig.json", "./tsconfig.jest.json"],
29-
// },
30-
// },
31-
// }, {
32-
// files: ["**/*.ts"],
33-
// plugins: {
34-
// import: importPlugin,
35-
// },
36-
// rules: {
37-
// "import/no-extraneous-dependencies": ["error", {
38-
// devDependencies: true,
39-
// }],
40-
// },
41-
// }];
3+
export default defineScTsConfig({
4+
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
5+
})

packages/eslint-plugin-rules/tsconfig.jest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../tsconfig.jest.json",
33
"compilerOptions": {
4-
"baseUrl": ".",
5-
"paths": {}
4+
"baseUrl": "./"
65
},
76
"include": [
87
"src/**/*.spec.ts",
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

3-
export default [
4-
...baseConfig,
5-
{
6-
files: ['**/*.{js,mjs,cjs,ts}'],
7-
languageOptions: {
8-
ecmaVersion: 2023,
9-
sourceType: "module",
10-
parserOptions: {
11-
project: ["./tsconfig.json", "./tsconfig.jest.json"],
12-
},
13-
},
14-
}
15-
];
3+
export default defineScTsConfig({
4+
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
5+
})
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

3-
export default [
4-
...baseConfig,
5-
{
6-
files: ['**/*.{js,mjs,cjs,ts}'],
7-
languageOptions: {
8-
ecmaVersion: 2023,
9-
sourceType: "module",
10-
parserOptions: {
11-
project: ["./tsconfig.json", "./tsconfig.jest.json"],
12-
},
13-
},
14-
}
15-
];
3+
export default defineScTsConfig({
4+
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
5+
})
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"extends": "../../tsconfig.jest.json",
33
"compilerOptions": {
4-
"baseUrl": "./",
5-
"paths": {}
4+
"baseUrl": "./"
65
},
76
"include": [
87
"src/**/*.spec.ts",
98
"test/**/*.ts"
109
]
11-
}
10+
}

0 commit comments

Comments
 (0)