@luxfi/eslint-config 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/native.js +2 -2
- package/package.json +2 -1
- package/restrictedImports.js +4 -4
package/native.js
CHANGED
|
@@ -122,7 +122,7 @@ module.exports = {
|
|
|
122
122
|
],
|
|
123
123
|
// React Plugin
|
|
124
124
|
// Overrides rules from @react-native-community:
|
|
125
|
-
// https://github.com/facebook/react-native/blob/3cf0291008dfeed4d967ebb95bdccbe2d52c5b81/
|
|
125
|
+
// https://github.com/facebook/react-native/blob/3cf0291008dfeed4d967ebb95bdccbe2d52c5b81/pkgs/eslint-config-react-native-community/index.js#L287
|
|
126
126
|
'react/jsx-sort-props': [
|
|
127
127
|
2,
|
|
128
128
|
{
|
|
@@ -135,7 +135,7 @@ module.exports = {
|
|
|
135
135
|
],
|
|
136
136
|
// React-Native Plugin
|
|
137
137
|
// Overrides rules from @react-native-community:
|
|
138
|
-
// https://github.com/facebook/react-native/blob/3cf0291008dfeed4d967ebb95bdccbe2d52c5b81/
|
|
138
|
+
// https://github.com/facebook/react-native/blob/3cf0291008dfeed4d967ebb95bdccbe2d52c5b81/pkgs/eslint-config-react-native-community/index.js#L313
|
|
139
139
|
'react-native/no-unused-styles': 'error',
|
|
140
140
|
'react-native/sort-styles': 'error',
|
|
141
141
|
|
package/package.json
CHANGED
package/restrictedImports.js
CHANGED
|
@@ -17,7 +17,7 @@ const sharedRules = {
|
|
|
17
17
|
{
|
|
18
18
|
name: 'utilities/src/telemetry/analytics/analytics',
|
|
19
19
|
message:
|
|
20
|
-
'Please only use this for initialization, tests, flushing, and internal usage. Otherwise use `
|
|
20
|
+
'Please only use this for initialization, tests, flushing, and internal usage. Otherwise use `pkgs/lux/src/features/telemetry`',
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
name: '@uniswap/analytics',
|
|
@@ -84,7 +84,7 @@ const sharedRules = {
|
|
|
84
84
|
{
|
|
85
85
|
name: 'lux/src/features/chains/chainInfo',
|
|
86
86
|
importNames: ['UNIVERSE_CHAIN_INFO'],
|
|
87
|
-
message: 'Use useChainInfo or helpers in
|
|
87
|
+
message: 'Use useChainInfo or helpers in pkgs/lux/src/features/chains/utils.ts when possible!',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
name: 'lux/src/features/settings/selectors',
|
|
@@ -135,7 +135,7 @@ const nativeRules = {
|
|
|
135
135
|
name: '@ethersproject',
|
|
136
136
|
message: "Please import from 'ethers' directly to support tree-shaking.",
|
|
137
137
|
},
|
|
138
|
-
// Native specific
|
|
138
|
+
// Native specific pkgs/restrictions
|
|
139
139
|
{
|
|
140
140
|
name: 'statsig-react-native',
|
|
141
141
|
message: 'Import from internal module lux/src/features/gating instead',
|
|
@@ -164,7 +164,7 @@ const nativeRules = {
|
|
|
164
164
|
{
|
|
165
165
|
name: 'expo-haptics',
|
|
166
166
|
message:
|
|
167
|
-
"Use our internal `HapticFeedback` wrapper instead: `import { HapticFeedback } from '
|
|
167
|
+
"Use our internal `HapticFeedback` wrapper instead: `import { HapticFeedback } from 'pkgs/lux/src/features/settings/useHapticFeedback/types'`",
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
name: 'react-router',
|