forked from react-native-netinfo/react-native-netinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New API with full backward compatibility (react-native-netinfo#84)
See the README for full details. BREAKING CHANGE
- Loading branch information
1 parent
e72c5a0
commit e2849df
Showing
75 changed files
with
2,846 additions
and
1,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ typings | |
node_modules | ||
example/android-bundle.js | ||
example/ios-bundle.js | ||
|
||
# generated by bob | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,46 @@ | ||
module.exports = { extends: "@react-native-community" }; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
const typescriptEslintRecommended = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.json'); | ||
const typescriptEslintPrettier = require('eslint-config-prettier/@typescript-eslint'); | ||
|
||
module.exports = { | ||
extends: ['@react-native-community'], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
// Apply the recommended Typescript defaults and the prettier overrides to all Typescript files | ||
rules: Object.assign( | ||
typescriptEslintRecommended.rules, | ||
typescriptEslintPrettier.rules, | ||
{ | ||
'@typescript-eslint/explicit-member-accessibility': 'off', | ||
}, | ||
), | ||
}, | ||
{ | ||
files: ['example/**/*.ts', 'example/**/*.tsx'], | ||
rules: { | ||
// Turn off rules which are useless and annoying for the example files files | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'react-native/no-inline-styles': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.ts', '**/*.spec.ts'], | ||
env: { | ||
jest: true, | ||
}, | ||
rules: { | ||
// Turn off rules which are useless and annoying for unit test files | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.