-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update configtest to use flat config
- Loading branch information
Showing
10 changed files
with
63 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
cd $(dirname "$0") | ||
set -eux | ||
eslint --max-warnings 0 src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export async function foo(): Promise<number> { | ||
const x = await Promise.resolve(42); | ||
return x; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
foo(); | ||
foo().catch((err) => { | ||
const msg = err.toString(); | ||
// eslint-disable-next-line no-console | ||
console.error(msg); | ||
}); | ||
|
||
import React from 'react'; | ||
|
||
export const Foo: React.FC = () => { | ||
return <h1>Hello</h1>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
"lib": ["esnext", "dom"], | ||
"esModuleInterop": true, | ||
"jsx": "react" | ||
}, | ||
"include": ["src/**/*"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import config from '@hatena/eslint-config-hatena/flat'; | ||
import globals from 'globals'; | ||
|
||
export default config({}, [ | ||
{ | ||
languageOptions: { | ||
globals: { ...globals.node }, | ||
}, | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import config from '@hatena/eslint-config-hatena/flat'; | ||
import globals from 'globals'; | ||
|
||
export default config({ react: true }, [ | ||
{ | ||
languageOptions: { | ||
globals: { ...globals.node }, | ||
}, | ||
}, | ||
]); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import config from '@hatena/eslint-config-hatena/flat'; | ||
import globals from 'globals'; | ||
|
||
export default config({}, [ | ||
{ | ||
languageOptions: { | ||
globals: { ...globals.node }, | ||
}, | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters