Skip to content

Commit

Permalink
Merge branch 'nakrovati-improve-design'
Browse files Browse the repository at this point in the history
  • Loading branch information
krausest committed Mar 6, 2024
2 parents 7461087 + 38ee787 commit 982e689
Show file tree
Hide file tree
Showing 59 changed files with 1,645 additions and 1,038 deletions.
66 changes: 25 additions & 41 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,7 @@ export default [
ignores: ["**/dist", "**/results", "**/node_modules", "css", "**/csv_export.js"],
},
{
files: ["**/*.{ts,tsx}"],
plugins: { "@typescript-eslint": ts },
languageOptions: { parser: tsParser },
rules: ts.configs["recommended"].rules,
},
/**
* Root
*/
{
files: ["*.js", "utils/**/*", "cli/**/*.js"],
languageOptions: { globals: { ...globals.node } },
rules: {
"no-unused-vars": "warn",
},
},
/**
* Server
*/
{
files: ["server/**/*"],
languageOptions: { globals: { ...globals.node } },
},
/**
* Webdriver
*/
{
files: ["webdriver-ts/**/*.ts"],
plugins: { unicorn },
languageOptions: {
parserOptions: { project: ["./webdriver-ts/tsconfig.eslint.json"] },
globals: { ...globals.node },
},
rules: {
...unicorn.configs.recommended.rules,
// no:
Expand All @@ -71,7 +40,24 @@ export default [
"unicorn/prefer-dom-node-text-content": "off",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",

},
languageOptions: { globals: { ...globals.node } },
},
{
files: ["**/*.{ts,tsx}"],
plugins: { "@typescript-eslint": ts },
languageOptions: { parser: tsParser },
rules: ts.configs["recommended"].rules,
},
/**
* Webdriver
*/
{
files: ["webdriver-ts/**/*.ts"],
languageOptions: {
parserOptions: { project: ["./webdriver-ts/tsconfig.eslint.json"] },
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
"require-await": "error",
"@typescript-eslint/no-floating-promises": "error",
Expand All @@ -82,7 +68,13 @@ export default [
* Web
*/
{
files: ["webdriver-ts-results/**/*.tsx"],
files: ["webdriver-ts-results/**/*"],
rules: {
"@typescript-eslint/no-loss-of-precision": "off",
},
},
{
files: ["webdriver-ts-results/src/**/*.{js,ts,jsx,tsx}"],
plugins: {
react,
"react-refresh": reactRefresh,
Expand All @@ -99,12 +91,4 @@ export default [
settings: { react: { version: "detect" } },
languageOptions: { globals: { ...globals.browser } },
},
{
files: ["webdriver-ts-results/**/*"],
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: {
"@typescript-eslint/no-loss-of-precision": "off",
"no-debugger": "off",
},
},
];
Loading

0 comments on commit 982e689

Please sign in to comment.