52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import js from "@eslint/js";
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"**/dist/**",
|
|
"**/node_modules/**",
|
|
"**/playwright-report/**",
|
|
"**/test-results/**",
|
|
"**/android/**",
|
|
"**/ios/**"
|
|
]
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.{ts,tsx,mts}"],
|
|
ignores: ["**/dist/**", "**/node_modules/**"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: false,
|
|
ecmaVersion: 2022,
|
|
sourceType: "module"
|
|
}
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin
|
|
},
|
|
rules: {
|
|
"no-undef": "off",
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
|
|
}
|
|
},
|
|
{
|
|
files: ["scripts/**/*.mjs"],
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
globals: {
|
|
process: "readonly",
|
|
console: "readonly",
|
|
fetch: "readonly",
|
|
Buffer: "readonly",
|
|
setTimeout: "readonly"
|
|
}
|
|
}
|
|
}
|
|
];
|