a8a0b7db1b
* wip * wip * wip * format * wip(mobile): lint and format * cleanup * nits * nits * idiomatic react * nit * format all root files
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/*'],
|
|
},
|
|
]);
|