UNPKG

create-automaticgpt-template

Version:

AutomaticGPT - A production-ready Expo template with AI chat, authentication, conversation management, analytics, and sharing features

42 lines (40 loc) 1.13 kB
// https://docs.expo.dev/guides/using-eslint/ const { defineConfig } = require('eslint/config'); const expoConfig = require('eslint-config-expo/flat'); const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended'); const eslintPluginReanimated = require('eslint-plugin-reanimated'); module.exports = defineConfig([ expoConfig, eslintPluginPrettierRecommended, { ignores: ['dist/*'], }, { files: ['**/*.{js,jsx,ts,tsx}'], plugins: { reanimated: eslintPluginReanimated, }, rules: { 'reanimated/js-function-in-worklet': 'error', }, }, { files: ['**/*.test.{js,ts,tsx}', '**/__tests__/**/*', 'jest.setup.js', 'jest.config.js'], languageOptions: { globals: { jest: 'readonly', expect: 'readonly', test: 'readonly', describe: 'readonly', it: 'readonly', beforeEach: 'readonly', afterEach: 'readonly', beforeAll: 'readonly', afterAll: 'readonly', }, }, rules: { 'import/no-unresolved': 'off', // Allow unresolved imports in test files }, }, ]);