33 lines
571 B
JavaScript
33 lines
571 B
JavaScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.strictTypeChecked,
|
|
tseslint.configs.stylisticTypeChecked,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
"test/**.ts",
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
}
|
|
},
|
|
{
|
|
ignores: [
|
|
"lib",
|
|
"eslint.config.js",
|
|
],
|
|
}
|
|
)
|