File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
packages/eslint-config/src Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- import nextConfig from '@packages/eslint-config/base .mjs'
1
+ import nextConfig from '@packages/eslint-config/next .mjs'
2
2
3
3
/** @type {import("eslint").Linter.Config } */
4
4
export default [
5
+ ...nextConfig ,
5
6
{
6
7
rules : {
7
8
'@typescript-eslint/no-unused-vars' : [ 'error' , { ignoreRestSiblings : true } ] ,
8
9
} ,
9
10
} ,
10
- ...nextConfig ,
11
11
]
Original file line number Diff line number Diff line change 1
- import nextConfig from '@packages/eslint-config/base .mjs'
1
+ import nextConfig from '@packages/eslint-config/next .mjs'
2
2
3
3
/** @type {import("eslint").Linter.Config } */
4
4
export default [
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export default [
6
6
{
7
7
ignores : [
8
8
'node_modules' ,
9
- './packages/*' ,
10
9
'./apps/*' ,
11
10
'./infrastructure/*' ,
12
11
'.lintstagedrc.mjs' ,
Original file line number Diff line number Diff line change 1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
1
import { Linter } from 'eslint'
3
- import { resolve } from 'path'
2
+ import { resolve , dirname } from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
4
import { FlatCompat } from '@eslint/eslintrc'
5
5
import js from '@eslint/js'
6
6
7
7
const project = resolve ( process . cwd ( ) , 'tsconfig.json' )
8
- const __dirname = new URL ( '.' , import . meta. url ) . pathname
8
+ const __filename = fileURLToPath ( import . meta. url )
9
+ const __dirname = dirname ( __filename )
9
10
10
11
const compat = new FlatCompat ( {
11
12
baseDirectory : __dirname ,
Original file line number Diff line number Diff line change 1
1
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2
2
import { Linter } from 'eslint'
3
- import { resolve } from 'node:path'
3
+ import { resolve , dirname } from 'node:path'
4
+ import { fileURLToPath } from 'node:url'
4
5
import { FlatCompat } from '@eslint/eslintrc'
5
6
import js from '@eslint/js'
6
7
7
8
const project = resolve ( process . cwd ( ) , 'tsconfig.json' )
8
- const __dirname = new URL ( '.' , import . meta. url ) . pathname
9
+ const __filename = fileURLToPath ( import . meta. url )
10
+ const __dirname = dirname ( __filename )
9
11
10
12
const compat = new FlatCompat ( {
11
13
baseDirectory : __dirname ,
You can’t perform that action at this time.
0 commit comments