module.exports = { root: true, parser: 'babel-eslint', env: { browser: true, node: true, es6: true, }, parserOptions: { ecmaVersion: 6, ecmaFeatures: { jsx: true, }, }, extends: [ '@react-native-community', 'airbnb', 'prettier', 'prettier/react', 'plugin:jest/recommended', ], plugins: ['react', 'jsx-a11y', 'import', 'prettier'], globals: { __DEV__: true, global: true, $styles: true, $colors: true, $loading: true, $toast: true, $services: true, $navigation: true, $store: true, $ws: true, $udp: true, $storage: true, isNaN: true, $codepush: true, $apis: true, $http: true, $i18n: true, Platform: true, }, rules: { 'react-native/no-inline-styles': 'off', 'react/no-unescaped-entities': 'off', 'react/no-access-state-in-setstate': 'off', 'arrow-parens': 'off', 'no-unused-vars': 'off', // "sort-imports": "error", 'no-param-reassign': 'off', 'global-require': 'off', 'import/prefer-default-export': 'off', 'no-console': 'off', 'no-mixed-operators': 'off', 'no-use-before-define': 'off', radix: 'off', 'react/destructuring-assignment': 'off', 'react/jsx-filename-extension': 'off', 'react-hooks/exhaustive-deps': 'off', 'react/require-default-props': 'off', 'react/no-array-index-key': 'off', 'react/prop-types': 'off', 'jsx-a11y/label-has-for': 'off', camelcase: [ 1, { properties: 'always', }, ], 'react/forbid-prop-types': [ 0, { forbid: 'object', }, ], 'no-unused-expressions': 'off', 'no-nested-ternary': 'off', 'no-underscore-dangle': 'off', 'class-methods-use-this': 'warn', 'react/state-in-constructor': ['off'], 'react/static-property-placement': ['warn'], 'prefer-destructuring': 'off', // "import/no-extraneous-dependencies":["error", {"devDependencies":true}] }, }