-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.js
11 lines (11 loc) · 1023 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['@react-native-community', 'plugin:@typescript-eslint/recommended', 'prettier'],
rules: {
'@typescript-eslint/array-type': ['error', { default: 'generic' }], // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md
'@typescript-eslint/consistent-type-imports': 'error', // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md
'react/no-unescaped-entities': 'off', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
'react/react-in-jsx-scope': 'off', // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
'react/no-unstable-nested-components': ['error', { allowAsProps: true }], // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
},
};