-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #789 from dodona-edu/dependabot/npm_and_yarn/eslin…
…t-be7977c65c Bump the eslint group across 1 directory with 2 updates
- Loading branch information
Showing
15 changed files
with
270 additions
and
315 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
import tseslint from "typescript-eslint"; | ||
import eslint from "@eslint/js"; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
"**/webpack.config.js", | ||
"**/tailwind.config.js", | ||
"**/postcss.config.js", | ||
"**/jest.config.js", | ||
"src/Translations.js", | ||
"scripts/ValidateTranslations.js", | ||
"**/dist", | ||
], | ||
}, | ||
eslint.configs.recommended, | ||
{ | ||
rules: { | ||
"arrow-parens": ["error", "as-needed"], | ||
"comma-dangle": ["error", { | ||
arrays: "only-multiline", | ||
objects: "only-multiline", | ||
imports: "only-multiline", | ||
exports: "only-multiline", | ||
functions: "never", | ||
}], | ||
indent: ["error", 4, { SwitchCase: 1 }], | ||
"no-invalid-this": "warn", | ||
"no-param-reassign": ["error", { props: false }], | ||
"object-curly-spacing": ["error", "always"], | ||
quotes: ["error", "double"], | ||
"space-before-function-paren": ["error", { | ||
anonymous: "always", | ||
named: "never", | ||
asyncArrow: "always", | ||
}], | ||
}, | ||
}, | ||
tseslint.configs.recommended, | ||
{ | ||
rules: { | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/explicit-function-return-type": ["error", { allowExpressions: true }], | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
} | ||
); |
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
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
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
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
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
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
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
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
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
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,4 +1,4 @@ | ||
/* eslint-disable max-len */ | ||
import { getElement } from "./Util"; | ||
import escapeHTML from "escape-html"; | ||
|
||
|
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
File renamed without changes.
Oops, something went wrong.