-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (44 loc) · 1 KB
/
eslint.config.js
File metadata and controls
47 lines (44 loc) · 1 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
const path = require('path');
const { FlatCompat } = require('@eslint/eslintrc');
const reactPlugin = require('eslint-plugin-react');
const prettierPlugin = require('eslint-plugin-prettier');
const compat = new FlatCompat({
baseDirectory: __dirname,
resolvePluginsRelativeTo: __dirname,
});
module.exports = [
{
ignores: [
'**/node_modules/**',
'**/lib/**',
'**/ios/**',
'**/android/**',
'**/coverage/**',
'**/*.config.js',
'**/babel.config.js',
'.yarn/**',
],
},
...compat.extends('@react-native', 'prettier'),
{
plugins: {
react: reactPlugin,
prettier: prettierPlugin,
},
rules: {
'react/react-in-jsx-scope': 'off',
'react-native/no-inline-styles': 'off',
'no-console': 'off',
'prettier/prettier': [
'error',
{
quoteProps: 'consistent',
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
},
],
},
},
];