|
| 1 | +--- |
| 2 | +# docs at: https://eslint.org/docs/latest/use/configure/configuration-files |
| 3 | +env: |
| 4 | + browser: true |
| 5 | + es2021: true |
| 6 | + react-native/react-native: true |
| 7 | +extends: |
| 8 | + - airbnb |
| 9 | + - airbnb-typescript |
| 10 | + - airbnb/hooks |
| 11 | + - eslint:recommended |
| 12 | + - plugin:@typescript-eslint/recommended |
| 13 | + - plugin:eslint-comments/recommended |
| 14 | + - plugin:import/errors |
| 15 | + - plugin:import/recommended |
| 16 | + - plugin:import/typescript |
| 17 | + - plugin:import/warnings |
| 18 | + - plugin:jsdoc/recommended |
| 19 | + - plugin:json/recommended |
| 20 | + - plugin:jsx-a11y/recommended |
| 21 | + - plugin:react-hooks/recommended |
| 22 | + - plugin:react-native/all |
| 23 | + - plugin:react/recommended |
| 24 | + - prettier |
| 25 | +globals: |
| 26 | + JSX: true |
| 27 | +parser: '@typescript-eslint/parser' |
| 28 | +parserOptions: |
| 29 | + ecmaFeatures: |
| 30 | + jsx: true |
| 31 | + ecmaVersion: latest |
| 32 | + project: ./tsconfig.json |
| 33 | + sourceType: module |
| 34 | +plugins: |
| 35 | + - '@typescript-eslint' |
| 36 | + - eslint-comments |
| 37 | + - eslint-plugin-json |
| 38 | + - import |
| 39 | + - jsdoc |
| 40 | + - jsx-a11y |
| 41 | + - react |
| 42 | + - react-hooks |
| 43 | + - react-native |
| 44 | +rules: |
| 45 | + '@typescript-eslint/explicit-function-return-type': error |
| 46 | + '@typescript-eslint/explicit-module-boundary-types': error |
| 47 | + '@typescript-eslint/no-explicit-any': |
| 48 | + - error |
| 49 | + - fixToUnknown: false |
| 50 | + ignoreRestArgs: false |
| 51 | + '@typescript-eslint/no-shadow': error |
| 52 | + '@typescript-eslint/no-use-before-define': error |
| 53 | + camelcase: error |
| 54 | + comma-dangle: |
| 55 | + - error |
| 56 | + - always-multiline |
| 57 | + comma-style: |
| 58 | + - error |
| 59 | + - last |
| 60 | + import/extensions: |
| 61 | + - error |
| 62 | + - never |
| 63 | + import/no-unresolved: error |
| 64 | + jsdoc/check-indentation: error |
| 65 | + jsdoc/no-bad-blocks: error |
| 66 | + jsdoc/require-description: error |
| 67 | + jsdoc/require-file-overview: error |
| 68 | + jsdoc/require-throws: error |
| 69 | + jsx-quotes: |
| 70 | + - error |
| 71 | + - prefer-single |
| 72 | + linebreak-style: |
| 73 | + - error |
| 74 | + - unix |
| 75 | + max-lines: |
| 76 | + - error |
| 77 | + - 300 |
| 78 | + max-lines-per-function: |
| 79 | + - error |
| 80 | + - max: 20 |
| 81 | + no-duplicate-imports: error |
| 82 | + no-multi-spaces: error |
| 83 | + no-shadow: error |
| 84 | + no-template-curly-in-string: error |
| 85 | + no-trailing-spaces: error |
| 86 | + no-undef: error |
| 87 | + no-use-before-define: warn |
| 88 | + react-native/no-inline-styles: warn |
| 89 | + react/jsx-filename-extension: |
| 90 | + - error |
| 91 | + - extensions: |
| 92 | + - .ts |
| 93 | + - .tsx |
| 94 | + - .js |
| 95 | + - .jsx |
| 96 | + react/prop-types: error |
| 97 | + sort-imports: error |
| 98 | + sort-keys: |
| 99 | + - error |
| 100 | + - asc |
| 101 | + - caseSensitive: true |
| 102 | + minKeys: 2 |
| 103 | + natural: true |
0 commit comments