Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
Upgrade React to 17.
Upgrade Webpack to v5.
  • Loading branch information
hannut91 committed May 16, 2021
1 parent 5a970f8 commit 7a0bfef
Show file tree
Hide file tree
Showing 19 changed files with 27,228 additions and 10,769 deletions.
24 changes: 13 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
module.exports = {
env: {
browser: true,
es6: true,
es2021: true,
jest: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
context: 'readonly',
Feature: 'readonly',
Scenario: 'readonly',
actor: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
actor: 'readonly',
Feature: 'readonly',
Scenario: 'readonly',
context: 'readonly',
},
rules: {
indent: ['error', 2],
'no-trailing-spaces': 'error',
Expand All @@ -48,7 +48,9 @@ module.exports = {
'key-spacing': ['error', { mode: 'strict' }],
'arrow-spacing': ['error', { before: true, after: true }],
'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }],
'react/prop-types': 'off',
'linebreak-style': 'off',

'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
},
};
8 changes: 8 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ module.exports = {
],
'@babel/preset-react',
],
plugins: [
[
'@babel/plugin-transform-react-jsx',
{
runtime: 'automatic',
},
],
],
};
1 change: 1 addition & 0 deletions codecept.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const { setHeadlessWhen } = require('@codeceptjs/configure');

// turn on headless mode when running with HEADLESS=true environment variable
Expand Down

0 comments on commit 7a0bfef

Please sign in to comment.