Skip to content

Commit

Permalink
Format eslintc (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia authored May 19, 2022
1 parent 580d968 commit cc75006
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
44 changes: 19 additions & 25 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": ["./tsconfig.json"] },
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/strict-boolean-expressions": [
2,
{ "allowString": false, "allowNumber": false }
],
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": ["./tsconfig.json"] },
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/strict-boolean-expressions": [
2,
{ "allowString" : false,
"allowNumber" : false
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"ignorePatterns": ["src/**/*.test.ts", "src/frontend/generated/*"]
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"ignorePatterns": ["src/**/*.test.ts", "src/frontend/generated/*"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test:e2e-desktop": "SCREEN=desktop npm run test:e2e",
"test:e2e-mobile": "SCREEN=mobile npm run test:e2e",
"lint": "eslint --max-warnings 0 --cache --cache-location node_modules/.cache/eslint 'src/frontend/**/*.ts*'",
"format": "prettier --write src/frontend",
"format-check": "prettier --check src/frontend",
"format": "prettier --write src/frontend .eslintrc.json",
"format-check": "prettier --check src/frontend .eslintrc.json",
"install-webdrivers": "selenium-standalone install --config ./selenium-standalone.config.js"
},
"devDependencies": {
Expand Down

0 comments on commit cc75006

Please sign in to comment.