diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index fda49f7..bfcc560 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -10,38 +10,38 @@ extends:
- plugin:react-hooks/recommended
- plugin:jest/recommended
- plugin:jest-dom/recommended
-parser: "@babel/eslint-parser"
+parser: '@babel/eslint-parser'
plugins:
- - "@babel"
+ - '@babel'
- jest
- react
- react-hooks
- testing-library
overrides:
- files:
- - "**/__tests__/**/*.[jt]s?(x)"
- - "**/?(*.)+(spec|test).[jt]s?(x)"
+ - '**/__tests__/**/*.[jt]s?(x)'
+ - '**/?(*.)+(spec|test).[jt]s?(x)'
extends:
- - "plugin:testing-library/react"
+ - 'plugin:testing-library/react'
- files:
- - "**/*.ts?(x)"
- parser: "@typescript-eslint/parser"
+ - '**/*.ts?(x)'
+ parser: '@typescript-eslint/parser'
parserOptions:
- tsconfigRootDir: .
- project: ['./tsconfig.json']
+ tsconfigRootDir: .
+ project: ['./tsconfig.json']
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
- "@typescript-eslint/no-unused-vars":
+ '@typescript-eslint/no-unused-vars':
- error
- - varsIgnorePattern: "^_"
- argsIgnorePattern: "^_"
+ - varsIgnorePattern: '^_'
+ argsIgnorePattern: '^_'
# For compat with jest: https://typescript-eslint.io/rules/unbound-method/
- "@typescript-eslint/unbound-method": "off"
- "jest/unbound-method": "error"
+ '@typescript-eslint/unbound-method': 'off'
+ 'jest/unbound-method': 'error'
rules:
quotes:
- error
diff --git a/README.md b/README.md
index 3677847..bc8495c 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,6 @@
---
-
React features to enhance using Rollbar.js in React Applications.
This SDK provides a wrapper around the base [Rollbar.js] SDK in order to provide an
@@ -18,12 +17,12 @@ SDK that matches the intention of how to build React Apps with a declarative API
hooks and ErrorBoundaries, as well as simplify using Rollbar within a React SPA.
## Key benefits of using Rollbar React are:
+
- **Telemetry:** The telemetry timeline provides a list of “breadcrumbs” events that can help developers understand and fix problems in their client-side javascript. Learn more about telemetry.
- **Automatic error grouping:** Rollbar aggregates Occurrences caused by the same error into Items that represent application issues. Learn more about reducing log noise.
- **Advanced search:** Filter items by many different properties. Learn more about search.
- **Customizable notifications:** Rollbar supports several messaging and incident management tools where your team can get notified about errors and important events by real-time alerts. Learn more about Rollbar notifications.
-
### In Beta
It is currently in a public Beta release right now as we push towards a 1.0 release that will have all of the features
@@ -143,21 +142,17 @@ The simplest way to use the `Provider` is to provide a configuration as the `con
instance of Rollbar for you and provide that to its child tree:
```javascript
-import React from 'react';
-import { Provider } from '@rollbar/react';
+import React from 'react'
+import { Provider } from '@rollbar/react'
// same configuration you would create for the Rollbar.js SDK
const rollbarConfig = {
accessToken: 'POST_CLIENT_ITEM_ACCESS_TOKEN',
environment: 'production',
-};
+}
export function App(props) {
- return (
-
{error.toString()}