26 lines
654 B
JavaScript
26 lines
654 B
JavaScript
// https://docs.expo.dev/guides/using-eslint/
|
|
const { defineConfig } = require("eslint/config");
|
|
const expoConfig = require("eslint-config-expo/flat");
|
|
const eslintConfigPrettier = require("eslint-config-prettier");
|
|
|
|
module.exports = defineConfig([
|
|
expoConfig,
|
|
// Turn off ESLint rules that conflict with Prettier. Keep this after expoConfig.
|
|
eslintConfigPrettier,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
ignores: ["dist/*", ".expo/*"],
|
|
},
|
|
]);
|