Skip to content

Commit

Permalink
Merge pull request #2 from bitcoinvault/2-add-more-strict-eslint-rule…
Browse files Browse the repository at this point in the history
…s-and-fix-all-linting-issues

Configure linter, prettier and husky precommit
  • Loading branch information
mateuszpmroz committed Apr 2, 2020
2 parents 0d7d85c + 39c19a3 commit a9fa6c2
Show file tree
Hide file tree
Showing 131 changed files with 14,853 additions and 9,298 deletions.
85 changes: 70 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,76 @@
{
"parser": "babel-eslint",
"env": {
"jest": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
"prettier/react"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "2019",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react", "prettier"
"@typescript-eslint",
"react",
"react-native",
"react-hooks",
"import",
"prettier"
],
"extends": ["standard", "standard-react", "prettier"],
"rules": {
'prettier/prettier': [
'warn',
{
singleQuote: true,
printWidth: 140,
trailingComma: 'all'
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
]
},
"env":{
"es6": true
}
},
"globals": { "fetch": false }
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/class-name-casing": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-empty-function": "warn",
"no-async-promise-executor": "warn",
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-undef": "warn",
"no-redeclare": "warn",
"no-var": "warn",
"require-atomic-updates": "off",
"prettier/prettier": "error",
"prefer-const": "warn",
"react/display-name": "off",
"react/prop-types": "warn",
"react/no-unescaped-entities": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-native/no-color-literals": "warn",
"react-native/no-raw-text": "warn",
"react-native/no-single-element-style-arrays": "warn",
"react-native/no-unused-styles": "warn",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}
Loading

0 comments on commit a9fa6c2

Please sign in to comment.