Skip to content

Commit c318dd5

Browse files
committed
build: extend gts base config in flat configs and remove redundant ignores
1 parent 051574e commit c318dd5

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

handwritten/eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
import path from 'node:path';
2+
import { fileURLToPath } from 'node:url';
3+
import { FlatCompat } from '@eslint/eslintrc';
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = path.dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
112
export default [
13+
...compat.extends('gts'),
214
{
315
ignores: [
4-
"**/node_modules/**",
516
"**/build/**",
617
"**/coverage/**",
718
"**/.nyc_output/**"

packages/eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
import path from 'node:path';
2+
import { fileURLToPath } from 'node:url';
3+
import { FlatCompat } from '@eslint/eslintrc';
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = path.dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
112
export default [
13+
...compat.extends('gts'),
214
{
315
ignores: [
4-
"**/node_modules/**",
516
"**/.coverage/**",
617
"**/build/**",
718
"**/docs/**",

0 commit comments

Comments
 (0)