-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cf0543
commit 8983c7c
Showing
34 changed files
with
7,722 additions
and
1,387 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,45 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'eslint:recommended', | ||
'standard-with-typescript' | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], // Your TypeScript files extension | ||
|
||
// As mentioned in the comments, you should extend TypeScript plugins here, | ||
// instead of extending them outside the `overrides`. | ||
// If you don't want to extend any rules, you don't need an `extends` attribute. | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking' | ||
], | ||
|
||
parserOptions: { | ||
project: ['./tsconfig.json'] // Specify it only for TypeScript files | ||
} | ||
} | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
plugins: [ | ||
'react' | ||
], | ||
rules: { | ||
'no-use-before-define': 'off', | ||
'max-len': ['error', { code: 120 }], | ||
'react/react-in-jsx-scope': 'off', | ||
'@typescript-eslint/no-use-before-define': ['error'], | ||
'react/jsx-indent': ['error', 2] | ||
} | ||
} |
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
Oops, something went wrong.