|
| 1 | +module.exports = { |
| 2 | + extends: [ |
| 3 | + 'airbnb', |
| 4 | + 'plugin:flowtype/recommended', |
| 5 | + 'plugin:react/recommended', |
| 6 | + 'prettier', |
| 7 | + 'prettier/flowtype', |
| 8 | + 'prettier/react', |
| 9 | + ], |
| 10 | + plugins: ['flowtype', 'react', 'prettier', 'react-native'], |
| 11 | + parserOptions: { |
| 12 | + ecmaVersion: 2016, |
| 13 | + sourceType: 'module', |
| 14 | + ecmaFeatures: { |
| 15 | + jsx: true, |
| 16 | + }, |
| 17 | + }, |
| 18 | + env: { |
| 19 | + es6: true, |
| 20 | + node: true, |
| 21 | + }, |
| 22 | + rules: { |
| 23 | + 'comma-dangle': 0, |
| 24 | + 'consistent-return': 1, |
| 25 | + 'global-require': 0, |
| 26 | + 'import/extensions': [2, 'never'], |
| 27 | + 'import/no-extraneous-dependencies': 'off', |
| 28 | + 'import/no-unresolved': [2, { ignore: ['@'] }], |
| 29 | + 'import/prefer-default-export': 'off', |
| 30 | + 'import/no-named-as-default-member': 'off', |
| 31 | + 'no-case-declarations': 1, |
| 32 | + 'no-confusing-arrow': 0, |
| 33 | + 'no-console': 0, |
| 34 | + 'no-param-reassign': 0, |
| 35 | + 'no-return-assign': 1, |
| 36 | + 'no-shadow': 1, |
| 37 | + 'no-underscore-dangle': 0, |
| 38 | + 'no-use-before-define': 0, |
| 39 | + 'padded-blocks': 0, |
| 40 | + 'quote-props': 1, |
| 41 | + quotes: ['error', 'single'], |
| 42 | + 'react-native/no-unused-styles': 1, |
| 43 | + 'react-native/split-platform-components': 1, |
| 44 | + 'react/jsx-filename-extension': 0, |
| 45 | + 'react/no-array-index-key': 0, |
| 46 | + 'react/forbid-prop-types': [0, { forbid: ['any', 'array'] }], |
| 47 | + 'react/jsx-no-bind': 1, |
| 48 | + 'react/no-multi-comp': 1, |
| 49 | + 'react/prefer-stateless-function': 1, |
| 50 | + 'react/display-name': 0, |
| 51 | + 'react/prefer-stateless-function': 'off', |
| 52 | + }, |
| 53 | + globals: { |
| 54 | + it: false, |
| 55 | + describe: false, |
| 56 | + expect: false, |
| 57 | + }, |
| 58 | +}; |
0 commit comments