23 lines
699 B
JavaScript
23 lines
699 B
JavaScript
// https://docs.expo.dev/guides/using-eslint/
|
|
const { defineConfig, globalIgnores } = require('eslint/config');
|
|
const expoConfig = require('eslint-config-expo/flat');
|
|
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
|
|
|
|
module.exports = defineConfig([
|
|
globalIgnores(['android/*', 'ios/*', 'coverage/*', '.expo/*', 'dist/*', 'web-build/*']),
|
|
expoConfig,
|
|
eslintPluginPrettierRecommended,
|
|
{
|
|
rules: {
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']],
|
|
'newlines-between': 'always',
|
|
alphabetize: { order: 'asc' },
|
|
},
|
|
],
|
|
},
|
|
},
|
|
]);
|