Skip to content

Commit

Permalink
Fixed eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov committed Apr 11, 2020
1 parent 9a8b038 commit ef6ff11
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ module.exports = {
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
'prettier/react',
'prettier/@typescript-eslint'
'prettier/@typescript-eslint',
],
env: {
browser: true,
es6: true
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: path.resolve(__dirname, './tsconfig.test.json'),
sourceType: 'module'
sourceType: 'module',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
ignorePatterns: ['/generated.tsx', 'node_modules/'],
plugins: ['prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': 'error',
'prettier/prettier': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
Expand Down Expand Up @@ -57,8 +57,8 @@ module.exports = {
argsIgnorePattern: '^_',
ignoreRestSiblings: false,
ignoreRestSiblings: true,
caughtErrorsIgnorePattern: '^ignore'
}
caughtErrorsIgnorePattern: '^ignore',
},
],
'arrow-parens': ['off', 'as-needed'],
camelcase: 'off',
Expand Down Expand Up @@ -94,8 +94,8 @@ module.exports = {
{
blankLine: 'always',
prev: '*',
next: 'return'
}
next: 'return',
},
],
'prefer-const': 'error',
'prefer-template': 'error',
Expand Down Expand Up @@ -138,15 +138,15 @@ module.exports = {
'everything-else',
'/^on.+$/',
'/^handle.+$/',
'rendering'
'rendering',
],
groups: {
rendering: ['/^render.+$/', 'render']
}
}
rendering: ['/^render.+$/', 'render'],
},
},
],

'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/alt-text': 'off'
}
'jsx-a11y/alt-text': 'off',
},
}

1 comment on commit ef6ff11

@vercel
Copy link

@vercel vercel bot commented on ef6ff11 Apr 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.