Skip to content

Commit

Permalink
Removed js-sdk-common. Ignored eslint import/named.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusinto committed Mar 5, 2022
1 parent 39094fd commit 4dbd465
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 52 deletions.
13 changes: 4 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'prettier'],
settings: {
react: {
version: 'detect',
Expand All @@ -27,7 +22,7 @@ module.exports = {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
ecmaVersion: 'latest', // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
Expand All @@ -45,7 +40,7 @@ module.exports = {
'react/display-name': 'off',

'import/no-unresolved': 'error',
'import/named': 'error',
'import/named': 'off',
'import/default': 'error',
'import/export': 'error',
'import/no-self-import': 'error',
Expand Down
21 changes: 2 additions & 19 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file removed .yarn/cache/uuid-npm-8.3.2-eca0baba53-5575a8a75c.zip
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"jest": "^27.5.1",
"launchdarkly-js-sdk-common": "^4.0.3",
"launchdarkly-js-client-sdk": "^2.20.2",
"launchdarkly-react-client-sdk": "^2.25.1",
"prettier": "^2.5.1",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jest.mock('launchdarkly-react-client-sdk', () => {
import kebabCase from 'lodash.kebabcase'
import camelCase from 'lodash.camelcase'
import snakeCase from 'lodash.snakecase'
import { LDFlagSet } from 'launchdarkly-js-sdk-common'
import { LDFlagSet } from 'launchdarkly-js-client-sdk'
import {
asyncWithLDProvider,
LDProvider,
Expand Down
24 changes: 2 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3709,7 +3709,7 @@ __metadata:
eslint-plugin-react: ^7.29.3
eslint-plugin-react-hooks: ^4.3.0
jest: ^27.5.1
launchdarkly-js-sdk-common: ^4.0.3
launchdarkly-js-client-sdk: ^2.20.2
launchdarkly-react-client-sdk: ^2.25.1
lodash.camelcase: ^4.3.0
lodash.kebabcase: ^4.1.1
Expand Down Expand Up @@ -4147,7 +4147,7 @@ __metadata:
languageName: node
linkType: hard

"launchdarkly-js-client-sdk@npm:2.20.2":
"launchdarkly-js-client-sdk@npm:2.20.2, launchdarkly-js-client-sdk@npm:^2.20.2":
version: 2.20.2
resolution: "launchdarkly-js-client-sdk@npm:2.20.2"
dependencies:
Expand All @@ -4168,17 +4168,6 @@ __metadata:
languageName: node
linkType: hard

"launchdarkly-js-sdk-common@npm:^4.0.3":
version: 4.0.3
resolution: "launchdarkly-js-sdk-common@npm:4.0.3"
dependencies:
base64-js: ^1.3.0
fast-deep-equal: ^2.0.1
uuid: ^8.0.0
checksum: 87a2f5e3d4365e82cadd55fa8c1c96720792da6ff0ede7697d629208c48d9b726e77b11889bb1938937a2622f1004d66a147e4303e7f9f829cfcd1b0ecd10162
languageName: node
linkType: hard

"launchdarkly-react-client-sdk@npm:^2.25.1":
version: 2.25.1
resolution: "launchdarkly-react-client-sdk@npm:2.25.1"
Expand Down Expand Up @@ -5961,15 +5950,6 @@ __metadata:
languageName: node
linkType: hard

"uuid@npm:^8.0.0":
version: 8.3.2
resolution: "uuid@npm:8.3.2"
bin:
uuid: dist/bin/uuid
checksum: 5575a8a75c13120e2f10e6ddc801b2c7ed7d8f3c8ac22c7ed0c7b2ba6383ec0abda88c905085d630e251719e0777045ae3236f04c812184b7c765f63a70e58df
languageName: node
linkType: hard

"v8-compile-cache@npm:^2.0.3":
version: 2.1.1
resolution: "v8-compile-cache@npm:2.1.1"
Expand Down

0 comments on commit 4dbd465

Please sign in to comment.