infra: add linting and formatting for js projects (#230)
* wip * wip * wip * format * wip(mobile): lint and format * cleanup * nits * nits * idiomatic react * nit * format all root files
This commit was merged in pull request #230.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// 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/*'],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user