forked from react-native-admob/admob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.02 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
extends: ['@react-native-community'],
plugins: ['simple-import-sort', 'unused-imports'],
rules: {
'simple-import-sort/imports': [
'error',
{
groups: [
// Packages. `react` related packages come first.
['^react', '^@?\\w'],
// Side effect imports.
['^\\u0000'],
// Internal packages.
['^()(/.*|$)'],
// Parent imports. Put `..` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
// Other relative imports. Put same-folder imports and `.` last.
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
],
},
],
'unused-imports/no-unused-imports': 'error',
'react-native/no-inline-styles': 0,
'react-native/sort-styles': [
'error',
'asc',
{ ignoreClassNames: true, ignoreStyleProperties: false },
],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
},
parserOptions: {
project: ['./tsconfig.json', './example/tsconfig.json'],
},
};