@ajaysidhu/react-native-template
Version:
It is a minimalist React Native template with preconfigured common set of packages to start a new app.
53 lines (52 loc) • 1.07 kB
JavaScript
module.exports = {
root: true,
extends: '@react-native',
plugins: ['import'],
rules: {
'import/first': 1,
'import/newline-after-import': 1,
'import/no-cycle': 2,
'import/no-duplicates': 1,
'import/no-unresolved': 2,
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
pathGroups: [
{
pattern: '~/**',
group: 'internal',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
warnOnUnassignedImports: true,
},
],
},
env: {
'jest/globals': true,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
};