-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
141 changed files
with
5,538 additions
and
2,468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
/src/style/typography.js | ||
**/*.ts | ||
**/*.tsx | ||
/src/style/typography.js |
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,106 +1,44 @@ | ||
module.exports = { | ||
extends: ['plugin:@typescript-eslint/recommended', 'wix/react-native', 'plugin:react-hooks/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
// plugins: ['@typescript-eslint'], | ||
rules: { | ||
/* Disabled rules for typescript */ | ||
'no-dupe-class-members': 'off', | ||
/* Other Rules */ | ||
'no-unused-expressions': 'off', | ||
'arrow-parens': 'off', | ||
// TODO: remove after migration of legacy lifecycle methods | ||
camelcase: 'off', | ||
'comma-dangle': ['error', 'never'], | ||
'no-mixed-operators': ['off'], | ||
'no-trailing-spaces': 'off', | ||
'operator-linebreak': 'off', | ||
'max-len': ['warn', {code: 120}], | ||
'max-len': ['warn', {code: 120, ignoreComments: true, ignoreStrings: true}], | ||
'react/jsx-no-bind': [ | ||
'warn', | ||
'off', | ||
{ | ||
ignoreRefs: true, | ||
allowArrowFunctions: false, | ||
allowBind: false, | ||
}, | ||
allowBind: false | ||
} | ||
], | ||
'function-paren-newline': ['warn', 'never'], | ||
'new-cap': ['off'], // TODO: fix this in colors.js and remove this | ||
'default-case': ['off'], | ||
"@typescript-eslint/no-use-before-define": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/member-delimiter-style": 0, | ||
// "@typescript-eslint/no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}], | ||
"@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^ | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/explicit-member-accessibility": 0, | ||
"@typescript-eslint/prefer-optional-chain": "error", | ||
"@typescript-eslint/ban-ts-ignore": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/camelcase": 0, | ||
"@typescript-eslint/indent": 0 | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/member-delimiter-style': 0, | ||
'@typescript-eslint/no-unused-vars': [2, {args: 'all', argsIgnorePattern: '^_'}], | ||
// "@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^ | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/prefer-optional-chain': 'error', | ||
'@typescript-eslint/ban-ts-ignore': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/indent': 0 | ||
} | ||
}; | ||
|
||
// OLD ESlint configuration | ||
// const validColors = require('./src/style/colorsPalette').colorsPalette; | ||
// const extraFixColorsMap = require('./src/style/colorsPalette').extraFixColorsMap; | ||
// const assetsDepJson = require('./eslint-rules/tests/assets_deprecation.json'); | ||
// const deprecationsJson = require('./eslint-rules/tests/component_deprecation.json'); | ||
|
||
// module.exports = { | ||
// parser: 'babel-eslint', | ||
// extends: 'wix/react-native', | ||
// // plugins: ['react', 'react-native', 'uilib'], | ||
// // extends: ['airbnb'], | ||
// rules: { | ||
// 'arrow-body-style': 'off', | ||
// 'arrow-parens': 'off', | ||
// // TODO: remove after migration of legacy lifecycle methods | ||
// 'camelcase': 'off', | ||
// 'class-methods-use-this': 'off', | ||
// 'consistent-return': 'off', | ||
// 'comma-dangle': 'off', | ||
// 'global-require': 'off', | ||
// 'max-len': [2, 130, 4, {ignoreUrls: true}], | ||
// 'no-nested-ternary': 'off', | ||
// 'no-else-return': 'off', | ||
// 'no-mixed-operators': ['off'], | ||
// 'no-param-reassign': ['warn'], | ||
// 'no-plusplus': 'off', | ||
// 'no-return-assign': 'off', | ||
// 'no-trailing-spaces': 'off', | ||
// 'no-use-before-define': 'off', | ||
// 'no-unneeded-ternary': 'off', | ||
// 'no-mixed-operators': 'off', | ||
// 'no-underscore-dangle': ['error', {'allowAfterThis': true}], | ||
// 'object-curly-spacing': 'off', | ||
// 'operator-linebreak': 'off', | ||
// 'react/forbid-prop-types': 'off', | ||
// 'react/jsx-filename-extension': 'off', | ||
// 'react/jsx-space-before-closing': 'off', | ||
// 'react/jsx-tag-spacing': 'off', | ||
// 'react/prefer-stateless-function': 'off', | ||
// 'react/prop-types': ['error', {ignore: ['children', 'style', 'testID']}], | ||
// 'react/require-default-props': 'off', | ||
// "react/sort-comp": ['warn'], | ||
// 'react/jsx-no-bind': [ | ||
// 'warn', | ||
// { | ||
// ignoreRefs: true, | ||
// allowArrowFunctions: false, | ||
// allowBind: false, | ||
// }, | ||
// ], | ||
// 'import/prefer-default-export': 'off' | ||
// }, | ||
// env: { | ||
// browser: true, | ||
// node: true, | ||
// jest: true, | ||
// }, | ||
// settings: { | ||
// 'import/resolver': { | ||
// node: { | ||
// extensions: ['.js', '.ios.js', '.android.js'], | ||
// }, | ||
// }, | ||
// }, | ||
// }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25 Bytes
(100%)
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+130 Bytes
(100%)
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-25 Bytes
(98%)
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+77 Bytes
(100%)
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+87 Bytes
(100%)
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+249 Bytes
(110%)
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+74 Bytes
(100%)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+425 Bytes
(110%)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+206 Bytes
(100%)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+568 Bytes
(110%)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.