Skip to content

Commit

Permalink
chore(repo): add playwright eslint rules to config
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Aug 4, 2024
1 parent 9ece2b1 commit d372f11
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
6 changes: 0 additions & 6 deletions eslint.config.js

This file was deleted.

12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import antfu from '@antfu/eslint-config'
import playwright from 'eslint-plugin-playwright'

export default antfu(
{
formatters: true,
react: true,
},
{
...playwright.configs['flat/recommended'],
},
)
37 changes: 26 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,31 @@
"compilerOptions": {
"incremental": true,
"target": "es2022",

"jsx": "preserve",
/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"lib": [
"dom",
"dom.iterable",
"ES2022"
],
"moduleDetection": "force",

/* Path Aliases */
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
"~/*": ["./src/*"],
"@/*": ["./src/*"],
"@root/*": ["./*"]
"~/*": [
"./src/*"
],
"@/*": [
"./src/*"
],
"@root/*": [
"./*"
]
},
"resolveJsonModule": true,
"allowJs": true,

"checkJs": true,
/* Strictness */
"strict": true,
Expand All @@ -29,7 +36,11 @@
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true,
"plugins": [{ "name": "next" }]
"plugins": [
{
"name": "next"
}
]
},
"include": [
".eslintrc.cjs",
Expand All @@ -40,7 +51,11 @@
"**/*.js",
".next/types/**/*.ts",
"postcss.config.cjs",
"next.config.mjs"
, ".map.ts" ],
"exclude": ["node_modules"]
"next.config.mjs",
".map.ts",
"eslint.config.mjs"
],
"exclude": [
"node_modules"
]
}

0 comments on commit d372f11

Please sign in to comment.