Skip to content

Commit

Permalink
feat: do not extend eslint-config-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
john-d-pelingo committed Dec 2, 2020
1 parent 217f183 commit 18fc7ec
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
29 changes: 28 additions & 1 deletion packages/eslint-config-typescript-react/.eslintrc.js
Expand Up @@ -7,11 +7,38 @@ const config = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'jsx-a11y', 'react-hooks'],
extends: [
'@jdp-dev/eslint-config-typescript',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:import/typescript',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-var-requires': 'off',
'import/no-default-export': 'error',
'import/no-deprecated': 'warn',
'import/order': [
'error',
{
pathGroupsExcludedImportTypes: ['builtin'],
groups: [
'builtin',
'external',
'internal',
'unknown',
'parent',
'sibling',
'index',
],
'newlines-between': 'always',
alphabetize: { order: 'asc' },
},
],
'import/prefer-default-export': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config-typescript-react/package.json
Expand Up @@ -40,7 +40,6 @@
"typescript": "^4.1.2"
},
"dependencies": {
"@jdp-dev/eslint-config-typescript": "^0.0.5",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"eslint": "^7.14.0",
Expand Down

0 comments on commit 18fc7ec

Please sign in to comment.