UNPKG

flipper-plugin-react-native-mmkv-storage

Version:

Developer tools for React Native MMKV Storage

66 lines (65 loc) 1.6 kB
module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', sourceType: 'module', ecmaVersion: 2020, ecmaFeatures: { jsx: true, }, }, plugins: ['@typescript-eslint', 'prettier', 'react', 'import'], extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', ], rules: { 'react/jsx-sort-props': [ 'warn', { callbacksLast: true, shorthandFirst: true, ignoreCase: true, reservedFirst: true, }, ], 'no-console': 'off', 'object-shorthand': 1, '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/no-misused-promises': 'off', 'class-methods-use-this': 'off', 'no-use-before-define': 'off', 'prettier/prettier': 'error', 'import/order': [ 'error', { groups: [ 'builtin', 'internal', 'external', 'parent', 'sibling', 'index', 'type', ], alphabetize: { order: 'asc', }, }, ], 'sort-imports': ['error', {ignoreDeclarationSort: true}], }, settings: { react: { version: 'detect', }, }, ignorePatterns: ['/*.*'], };