Skip to content

Commit 45722a6

Browse files
authored
Merge pull request #23 from algorithms-in-action/fix/deployment-configuration
Fix: Upgrade Project To Adjust Configuration
2 parents eb2113f + 99da41e commit 45722a6

File tree

21 files changed

+23778
-15384
lines changed

21 files changed

+23778
-15384
lines changed

.eslintrc.js

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
es6: true,
5-
node: true
6-
},
7-
extends: ["plugin:react/recommended", "airbnb", "airbnb/hooks"],
8-
globals: {
9-
Atomics: "readonly",
10-
SharedArrayBuffer: "readonly"
11-
},
12-
parserOptions: {
13-
ecmaFeatures: {
14-
jsx: true
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true
156
},
16-
ecmaVersion: 2018,
17-
sourceType: "module"
18-
},
19-
plugins: ["react"],
20-
rules: {
21-
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
22-
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
23-
"no-continue": 0,
24-
"no-case-declarations": 0,
25-
"no-underscore-dangle": 0,
26-
"linebreak-style": 0
27-
}
28-
};
7+
extends: [
8+
"eslint:recommended",
9+
"plugin:react/recommended",
10+
"plugin:jsx-a11y/recommended",
11+
"plugin:import/errors",
12+
"plugin:import/warnings",
13+
],
14+
parserOptions: {
15+
ecmaFeatures: {
16+
jsx: true
17+
},
18+
ecmaVersion: 12,
19+
sourceType: "module"
20+
},
21+
settings: {
22+
react: {
23+
version: "17.0.2"
24+
}
25+
},
26+
plugins: [
27+
"react",
28+
"jsx-a11y",
29+
"import"
30+
],
31+
rules: {
32+
"no-unused-vars": "off",
33+
"react/jsx-key": "off",
34+
"react/no-unknown-property": "off"
35+
}
36+
};

0 commit comments

Comments
 (0)