-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EPMGCIP-179: Configure linters #31
Open
Dzmitry-Yaniuk
wants to merge
14
commits into
main
Choose a base branch
from
feature/EPMGCIP-179
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,061
−880
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a563a1b
EPMGCIP-179: Install Typescript ESLint plugins, extend existing config
Dzmitry-Yaniuk 65db864
EPMGCIP-179: Adjust config for Prettier, add ignore files for ESLint …
Dzmitry-Yaniuk 6bde603
EPMGCIP-179: Replace ".eslintignore" with "ignorePatterns" due to red…
Dzmitry-Yaniuk 8829cac
EPMGCIP-179: Add some ESLint plugins for better imports management
Dzmitry-Yaniuk 0e5b7f1
EPMGCIP-179: Apply some common rules for using React and TypeScript
Dzmitry-Yaniuk cad5d82
EPMGCIP-179: Include ".idea" and ".vscode" folders into .gitignore
Dzmitry-Yaniuk 7d4e5d4
EPMGCIP-179: Resolve warnings related to incorrect order of object pr…
Dzmitry-Yaniuk 857bc52
EPMGCIP-179: Add aliases to "messages" folder in root level, update u…
Dzmitry-Yaniuk 1fbcba9
EPMGCIP-179: Added Visual Studio settings as ignored files in ".gitig…
Dzmitry-Yaniuk 99eef80
EPMGCIP-179: Adjust basic ruleset for ".eslintrc.json", add small enh…
Dzmitry-Yaniuk 4aed9dd
EPMGCIP-179: Extend max nesting to 2 level in ".eslintrc.json"
Dzmitry-Yaniuk ac08edb
EPMGCIP-179: Add useful ESLint plugins for Jest and React hooks, upda…
Dzmitry-Yaniuk 552bd71
EPMGCIP-179: Add AQA classname for "ImageGallery" root component, upd…
Dzmitry-Yaniuk 690ccef
EPMGCIP-179: Decrease allowed amount of ESLint warnings from 30 to 20
Dzmitry-Yaniuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,6 +1,21 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "prettier"], | ||
"root": true, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"eslint:recommended", | ||
"prettier", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"project": "./tsconfig.json", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@next/next/no-img-element": 0 | ||
"@next/next/no-img-element": "off" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we also used this plugins:
'plugin:jest/recommended',
'plugin:react-hooks/recommended',
'airbnb',
'airbnb/hooks',
'airbnb-typescript'
Maybe there is a sense to add them as well. What do you think about that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there are existing
eslint:recommended
andprettier
plugins I assumeairbnb
related plugins might be a little redundant (quite rules in common). What do you think?