Skip to content

Commit 8d7fe3c

Browse files
authored
Merge pull request #163 from OneSignal/cd_update
sync with web-shim-codegen v3.0.2
2 parents ddc7df3 + 3b559f8 commit 8d7fe3c

19 files changed

+2516
-14860
lines changed

.eslintrc.cjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
settings: {
8+
'import/resolver': {
9+
node: {
10+
paths: ['src'],
11+
extensions: ['.js', '.ts', '.jsx', '.tsx'],
12+
},
13+
},
14+
},
15+
extends: ['plugin:react/recommended'],
16+
parser: '@typescript-eslint/parser',
17+
parserOptions: {
18+
ecmaFeatures: {
19+
jsx: true,
20+
},
21+
ecmaVersion: 2018,
22+
sourceType: 'module',
23+
},
24+
plugins: ['react', '@typescript-eslint'],
25+
rules: {
26+
'react/jsx-filename-extension': [1, { extensions: ['.tsx', '.jsx'] }],
27+
'react/jsx-props-no-spreading': 0,
28+
'prefer-destructuring': 0,
29+
'no-param-reassign': 0,
30+
'import/extensions': 0,
31+
'dot-notation': 0,
32+
'no-continue': 0,
33+
'no-unused-vars': 'off',
34+
'@typescript-eslint/no-unused-vars': ['error'],
35+
'no-unused-expressions': [
36+
'error',
37+
{ allowShortCircuit: true, allowTernary: true },
38+
],
39+
},
40+
};

.eslintrc.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ node_modules
55

66
# builds
77
build
8-
dist
98
.rpt2_cache
9+
dist
1010

1111
# misc
1212
.DS_Store
@@ -16,4 +16,6 @@ dist
1616
.env.test.local
1717
.env.production.local
1818

19-
npm-debug.log*
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can find more information on OneSignal [here](https://onesignal.com/).
2525

2626
### Migration Guides
2727

28-
Versions 3.0 were recently released and include breaking changes. See the [Migration Guide](https://github.com/OneSignal/react-onesignal/blob/main/MigrationGuide.md) to update your implementation.
28+
Version 3.0 was recently released and includes breaking changes. See the [Migration Guide](https://github.com/OneSignal/react-onesignal/blob/main/MigrationGuide.md) to update your implementation.
2929

3030
## Contents
3131

dist/index.d.ts

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)