Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LeroyBG committed Oct 31, 2023
2 parents 5cea60d + 9b60e2f commit 3b89050
Show file tree
Hide file tree
Showing 8 changed files with 2,192 additions and 773 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,29 @@ module.exports = {
'jest/no-commented-out-tests': 'off',
},
},
{
extends: ['airbnb-typescript'],
files: ['**/*.{ts,tsx}'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
project: './tsconfig.json',
warnOnUnsupportedTypeScriptVersion: false,
},
rules: {
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'arrow-body-style': 'off',
},
},
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:jest/recommended',
'prettier',
'airbnb',
'plugin:import/typescript',
],
parser: 'babel-eslint',
parserOptions: {
Expand All @@ -41,6 +57,18 @@ module.exports = {
},
plugins: ['import', 'react', 'jest'],
rules: {
// ignore file extensions when importing
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],

'linebreak-style': ['error', 'unix'],

'no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
Expand Down
Loading

0 comments on commit 3b89050

Please sign in to comment.