Files
self/app/.eslintrc.js
Justin Hernandez 3c51feafdf DX: Auto format on save (#526)
* save wip

* use elint instead of prettier to sort imports

* set imports to warn

* sync prettier settigns

* update prettier settings

* save working version

* fix export and disable mobile pipeline for now

* limit auto formatting to the app folder
2025-04-21 22:10:56 +02:00

30 lines
902 B
JavaScript

module.exports = {
root: true,
extends: ['@react-native', 'plugin:prettier/recommended'],
plugins: ['simple-import-sort', 'prettier'],
ignorePatterns: ['ios/', 'android/', 'deployments/', 'node_modules/'],
rules: {
// Import sorting rules
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
// Add prettier rule to show prettier errors as ESLint errors
'prettier/prettier': [
'warn',
{
// Fix for TypeScript union types indentation
typescriptBracketSpacing: true,
typeAssertionStyle: 'as',
},
{ usePrettierrc: true },
],
// Preserve project-specific rule exemptions
'react-native/no-inline-styles': 'off',
'react-hooks/exhaustive-deps': 'off',
// Override any ESLint rules that conflict with the TypeScript union type formatting
'@typescript-eslint/indent': 'off',
},
};