Skip to content

Commit b0dd11b

Browse files
committed
fixing eslint errors;regenerate package-lock.json;fix payment method prop error message
1 parent 40da635 commit b0dd11b

File tree

10 files changed

+19996
-7683
lines changed

10 files changed

+19996
-7683
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

src/reactapp/.eslintrc.js

+30-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
module.exports = {
2-
extends: ['react-app', 'plugin:prettier/recommended'],
3-
overrides: [
4-
{
5-
files: ["**/*.js?(x)"],
6-
rules: {
7-
'arrow-body-style': [2, 'as-needed'],
8-
'import/prefer-default-export': 0,
9-
'no-underscore-dangle': 0,
10-
'react/jsx-props-no-spreading': 0,
11-
'no-console': ['error', { allow: ['warn', 'error'] }],
12-
'react/forbid-prop-types': [
13-
'error',
14-
{
15-
forbid: ['any', 'array'],
16-
checkContextTypes: true,
17-
checkChildContextTypes: true,
18-
},
19-
],
20-
'react/no-danger': 0,
2+
parser: '@babel/eslint-parser',
3+
extends: ['airbnb', 'plugin:prettier/recommended'],
4+
env: {
5+
es6: true,
6+
node: true,
7+
jest: true,
8+
browser: true,
9+
},
10+
parserOptions: {
11+
ecmaVersion: 6,
12+
sourceType: 'module',
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
},
17+
rules: {
18+
'arrow-body-style': [2, 'as-needed'],
19+
'import/prefer-default-export': 0,
20+
'no-underscore-dangle': 0,
21+
'react/jsx-props-no-spreading': 0,
22+
'no-console': ['error', { allow: ['warn', 'error'] }],
23+
'react/forbid-prop-types': [
24+
'error',
25+
{
26+
forbid: ['any', 'array'],
27+
checkContextTypes: true,
28+
checkChildContextTypes: true,
2129
},
22-
}
23-
]
30+
],
31+
'react/no-danger': 0,
32+
},
2433
};

0 commit comments

Comments
 (0)