-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from HathorNetwork/dev
Release v0.20.0
- Loading branch information
Showing
98 changed files
with
5,502 additions
and
2,824 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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2020: true, | ||
node: true, | ||
}, | ||
extends: ['airbnb-base', 'plugin:react/recommended', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 11, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['react', 'prettier'], | ||
rules: { | ||
'react/prop-types': 'off', // Disable prop-types rule as this is used selectively in this repo | ||
'no-console': 'off', // Do not warn on console statements: they are expected on this application | ||
'react/react-in-jsx-scope': 'off', // React 17 specific jsx-runtime enabled, so React import is not required | ||
'prettier/prettier': 'error', // Add Prettier errors as ESLint errors | ||
'arrow-parens': ['error', 'as-needed'], | ||
'import/no-named-as-default': 0, | ||
'import/prefer-default-export': 0, | ||
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }], | ||
'comma-dangle': 0, | ||
'object-curly-newline': 'off', // This rule is better handled by prettier | ||
eqeqeq: [1, 'allow-null'], | ||
'no-continue': 0, | ||
'no-cond-assign': 1, | ||
'no-constant-condition': 0, | ||
'no-control-regex': 1, | ||
'no-debugger': 1, | ||
'no-dupe-keys': 1, | ||
'no-ex-assign': 1, | ||
'no-extra-boolean-cast': 1, | ||
'no-func-assign': 1, | ||
'no-regex-spaces': 1, | ||
'no-unreachable': 1, | ||
'no-fallthrough': 1, | ||
'no-lone-blocks': 1, | ||
'no-delete-var': 1, | ||
'no-shadow': 'warn', | ||
'no-shadow-restricted-names': 1, | ||
'no-undef': 2, | ||
'no-undef-init': 1, | ||
'no-use-before-define': 0, | ||
'no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
varsIgnorePattern: '^_', // Allow variables starting with _ to be unused | ||
argsIgnorePattern: '^_', // Allow parameters starting with _ to be unused | ||
}, | ||
], | ||
'no-underscore-dangle': 0, | ||
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'], | ||
'no-await-in-loop': 'off', | ||
'no-plusplus': 'off', | ||
'guard-for-in': 'off', | ||
'no-bitwise': 'off', | ||
'import/extensions': [ | ||
'error', | ||
'ignorePackages', | ||
{ | ||
js: 'never', | ||
}, | ||
], | ||
'jest/no-disabled-tests': 'off', // It's useful to have skipped tests on our suites | ||
|
||
camelcase: 'off', // Conflicts with variables obtained directly from the fullnode endpoints | ||
'import/no-named-as-default-member': 'off', // This will require a more complex refactor to fix | ||
'react/no-string-refs': 'off', // This rule will be enforced only when the screens are refactored as functional components | ||
'class-methods-use-this': 'off', // This rule will be enforced only when the screens are refactored as functional components | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}; |
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
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 @@ | ||
v18.17.0 | ||
v20 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid" | ||
} |
Oops, something went wrong.