Skip to content

Commit 084783e

Browse files
committed
incorrect peer dependency
1 parent e9a6e38 commit 084783e

File tree

7 files changed

+753
-647
lines changed

7 files changed

+753
-647
lines changed

book/1-end/.eslintrc.js

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
module.exports = {
2-
parser: 'babel-eslint',
3-
extends: ['airbnb', 'plugin:prettier/recommended'],
2+
parser: "babel-eslint",
3+
extends: ["airbnb", "plugin:prettier/recommended"],
44
env: {
55
browser: true,
6-
jest: true,
6+
jest: true
77
},
8-
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
8+
plugins: ["react", "jsx-a11y", "import", "prettier"],
99
rules: {
10-
'max-len': ['error', 100],
11-
'no-underscore-dangle': ['error', { allow: ['_id'] }],
12-
'no-mixed-operators': 'off',
13-
'prefer-destructuring': [
14-
'error',
10+
"max-len": ["error", 100],
11+
"no-underscore-dangle": ["error", { allow: ["_id"] }],
12+
"no-mixed-operators": "off",
13+
"prefer-destructuring": [
14+
"error",
1515
{
1616
VariableDeclarator: {
1717
array: false,
18-
object: true,
18+
object: true
1919
},
2020
AssignmentExpression: {
2121
array: true,
22-
object: false,
23-
},
22+
object: false
23+
}
2424
},
2525
{
26-
enforceForRenamedProperties: false,
27-
},
26+
enforceForRenamedProperties: false
27+
}
2828
],
29-
'import/prefer-default-export': 'off',
30-
'jsx-a11y/anchor-is-valid': 'off',
31-
'react/react-in-jsx-scope': 'off',
32-
'react/jsx-filename-extension': [
33-
'error',
29+
"import/prefer-default-export": "off",
30+
"jsx-a11y/anchor-is-valid": "off",
31+
"react/react-in-jsx-scope": "off",
32+
"react/jsx-filename-extension": [
33+
"error",
3434
{
35-
extensions: ['.js'],
36-
},
35+
extensions: [".js"]
36+
}
3737
],
38-
'prettier/prettier': [
39-
'error',
38+
"prettier/prettier": [
39+
"error",
4040
{
4141
singleQuote: true,
42-
trailingComma: 'all',
43-
arrowParens: 'always',
42+
trailingComma: "all",
43+
arrowParens: "always",
4444
printWidth: 100,
45-
},
46-
],
47-
},
45+
semi: true
46+
}
47+
]
48+
}
4849
};

book/2-begin/.eslintrc.js

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
module.exports = {
2-
parser: 'babel-eslint',
3-
extends: ['airbnb', 'plugin:prettier/recommended'],
2+
parser: "babel-eslint",
3+
extends: ["airbnb", "plugin:prettier/recommended"],
44
env: {
55
browser: true,
6-
jest: true,
6+
jest: true
77
},
8-
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
8+
plugins: ["react", "jsx-a11y", "import", "prettier"],
99
rules: {
10-
'max-len': ['error', 100],
11-
'no-underscore-dangle': ['error', { allow: ['_id'] }],
12-
'no-mixed-operators': 'off',
13-
'prefer-destructuring': [
14-
'error',
10+
"max-len": ["error", 100],
11+
"no-underscore-dangle": ["error", { allow: ["_id"] }],
12+
"no-mixed-operators": "off",
13+
"prefer-destructuring": [
14+
"error",
1515
{
1616
VariableDeclarator: {
1717
array: false,
18-
object: true,
18+
object: true
1919
},
2020
AssignmentExpression: {
2121
array: true,
22-
object: false,
23-
},
22+
object: false
23+
}
2424
},
2525
{
26-
enforceForRenamedProperties: false,
27-
},
26+
enforceForRenamedProperties: false
27+
}
2828
],
29-
'import/prefer-default-export': 'off',
30-
'jsx-a11y/anchor-is-valid': 'off',
31-
'react/react-in-jsx-scope': 'off',
32-
'react/jsx-filename-extension': [
33-
'error',
29+
"import/prefer-default-export": "off",
30+
"jsx-a11y/anchor-is-valid": "off",
31+
"react/react-in-jsx-scope": "off",
32+
"react/jsx-filename-extension": [
33+
"error",
3434
{
35-
extensions: ['.js'],
36-
},
35+
extensions: [".js"]
36+
}
3737
],
38-
'prettier/prettier': [
39-
'error',
38+
"prettier/prettier": [
39+
"error",
4040
{
4141
singleQuote: true,
42-
trailingComma: 'all',
43-
arrowParens: 'always',
42+
trailingComma: "all",
43+
arrowParens: "always",
4444
printWidth: 100,
45-
},
46-
],
47-
},
45+
semi: true
46+
}
47+
]
48+
}
4849
};

book/2-begin/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
},
2424
"devDependencies": {
2525
"babel-eslint": "10.0.2",
26-
"eslint": "6.0.1",
27-
"eslint-config-airbnb": "17.1.0",
28-
"eslint-config-prettier": "5.1.0",
29-
"eslint-plugin-import": "2.18.0",
30-
"eslint-plugin-jsx-a11y": "6.2.1",
31-
"eslint-plugin-prettier": "3.1.0",
32-
"eslint-plugin-react": "7.14.2",
26+
"eslint": "6.5.1",
27+
"eslint-config-airbnb": "18.0.1",
28+
"eslint-config-prettier": "6.4.0",
29+
"eslint-plugin-import": "2.18.2",
30+
"eslint-plugin-jsx-a11y": "6.2.3",
31+
"eslint-plugin-prettier": "3.1.1",
32+
"eslint-plugin-react": "7.16.0",
33+
"eslint-plugin-react-hooks": "^1.7.0",
3334
"nodemon": "1.19.1",
3435
"prettier": "1.18.2"
3536
}

0 commit comments

Comments
 (0)