File tree Expand file tree Collapse file tree 3 files changed +430
-1838
lines changed Expand file tree Collapse file tree 3 files changed +430
-1838
lines changed Original file line number Diff line number Diff line change 11// @ts -check
22
33import eslint from "@eslint/js"
4+ import { defineConfig , globalIgnores } from "eslint/config"
45import tseslint from "typescript-eslint"
56import globals from "globals"
67
7- export default tseslint . config (
8+ export default defineConfig ( [
9+ globalIgnores ( [
10+ "./dist/*" ,
11+ "./test/generated/*" ,
12+ ] ) ,
813 eslint . configs . recommended ,
9- ... tseslint . configs . recommended ,
14+ tseslint . configs . recommended ,
1015 {
1116 rules : {
1217 indent : [ "error" , 2 ] ,
@@ -26,7 +31,6 @@ export default tseslint.config(
2631 ...globals . browser
2732 }
2833 } ,
29- ignores : [ "dist/" ] ,
3034 } ,
3135 {
3236 files : [ "test/browser/**/*.js" ] ,
@@ -43,4 +47,4 @@ export default tseslint.config(
4347 "no-empty" : "off"
4448 }
4549 }
46- )
50+ ] )
You can’t perform that action at this time.
0 commit comments