mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
* 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
30 lines
902 B
JavaScript
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',
|
|
},
|
|
};
|