-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
67 lines (64 loc) · 1.87 KB
/
eslint.config.mjs
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// import globals from 'globals';
// import pluginJs from '@eslint/js';
// import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
// export default [
// { languageOptions: { globals: globals.node } },
// pluginJs.configs.recommended,
// pluginReactConfig,
// ];
// To address temporary errors of pushing initial skeleton frontend code, May 13th 9:30PM
import globals from 'globals';
import pluginJs from '@eslint/js';
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
export default [
{
languageOptions: {
globals: globals.node,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
},
pluginJs.configs.recommended,
pluginReactConfig,
{
settings: {
react: {
version: 'detect', // automatically detect the React version
},
},
},
{
files: [
'App.js',
'src/components/CustomPicker.js',
'src/navigator/Navigator.js',
'src/screens/community/ViewCommunity.js',
'src/screens/profile/HealthHabitReport.js',
'src/screens/profile/HealthHabitReportDetails.js',
'src/screens/profile/Profile.js',
'src/screens/profile/SavedPost.js',
'src/screens/profile/UpdateFavoriteBook.js',
'src/screens/profile/UpdateFavoriteFood.js',
'src/screens/profile/UpdateProfile.js',
'src/screens/profile/UserCommunity.js',
'src/screens/profile/UserHabit.js',
'src/screens/profile/UserProfile.js',
'src/screens/profile/HealthHabitReportUtils.js',
],
rules: {
'no-unused-vars': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'no-undef': 'off',
'react/no-unescaped-entities': 'off',
'no-empty': 'off',
'no-dupe-keys': 'off',
'no-warning-comments': 'off',
},
},
];