Skip to content
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

feat: add eslint ci, fix eslint errors #97

Merged
merged 6 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"root": true,
"extends": [
"@gravity-ui/eslint-config",
"@gravity-ui/eslint-config/prettier"
],
// These files are generated, so they don't have to be linted
"ignorePatterns": ["**/*AutocompleteParser.js", "src/generator/dist/**/*"],
"rules": {
"array-callback-return": "off",
"consistent-return": "off",
"no-negated-condition": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"object-shorthand": "error",
"no-implicit-globals": "off"
},
"overrides": [
{
"files": "*.js",
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
},
{
"files": ["**/parser-extension.js", "src/parsing/lib/parsing.js"],
"rules": {
// Parser is extended via reassignment, so this rule doesn't make sense
"no-param-reassign": "off"
}
}
]
}
Loading
Loading