Update prettier@2.8.2 (#1112)
# What this PR does Updated prettier to `2.8.2` to fix linter issue on CI
This commit is contained in:
parent
b3d81646e6
commit
db2e4f4018
4 changed files with 20 additions and 9 deletions
|
|
@ -8,7 +8,8 @@ repos:
|
|||
- id: isort
|
||||
name: isort - pd-migrator
|
||||
files: ^tools/pagerduty-migrator
|
||||
args: [--settings-file=tools/pagerduty-migrator/.isort.cfg, --filter-files]
|
||||
args:
|
||||
[--settings-file=tools/pagerduty-migrator/.isort.cfg, --filter-files]
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.3.0
|
||||
|
|
@ -33,7 +34,12 @@ repos:
|
|||
files: ^tools/pagerduty-migrator
|
||||
# Make sure config is compatible with black
|
||||
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
|
||||
args: [--max-line-length=88, "--select=C,E,F,W,B,B950", "--extend-ignore=E203,E501"]
|
||||
args:
|
||||
[
|
||||
--max-line-length=88,
|
||||
"--select=C,E,F,W,B,B950",
|
||||
"--extend-ignore=E203,E501",
|
||||
]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||
rev: v8.25.0
|
||||
|
|
@ -56,12 +62,12 @@ repos:
|
|||
types_or: [css, javascript, jsx, ts, tsx]
|
||||
files: ^grafana-plugin/src
|
||||
additional_dependencies:
|
||||
- prettier@^2.7.1
|
||||
- prettier@2.8.2
|
||||
- id: prettier
|
||||
name: prettier - json
|
||||
types_or: [json]
|
||||
additional_dependencies:
|
||||
- prettier@^2.7.1
|
||||
- prettier@2.8.2
|
||||
|
||||
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
||||
rev: v13.13.1
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@
|
|||
"eslint-plugin-import": "^2.25.4",
|
||||
"mobx": "5.13.0",
|
||||
"mobx-react": "6.1.1",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "^2.8.2",
|
||||
"rc-table": "^7.17.1",
|
||||
"react-copy-to-clipboard": "^5.0.2",
|
||||
"react-draggable": "^4.4.5",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const tzs = [
|
||||
const tzs: string[] = [
|
||||
'Africa/Abidjan',
|
||||
'Africa/Accra',
|
||||
'Africa/Addis_Ababa',
|
||||
|
|
@ -591,6 +591,6 @@ const tzs = [
|
|||
'W-SU',
|
||||
'WET',
|
||||
'Zulu',
|
||||
] as const;
|
||||
];
|
||||
|
||||
export type Timezone = typeof tzs[number];
|
||||
export type Timezone = (typeof tzs)[number];
|
||||
|
|
|
|||
|
|
@ -10913,11 +10913,16 @@ prettier-linter-helpers@^1.0.0:
|
|||
dependencies:
|
||||
fast-diff "^1.1.2"
|
||||
|
||||
prettier@2.7.1, prettier@^2.7.1:
|
||||
prettier@2.7.1:
|
||||
version "2.7.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
|
||||
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
|
||||
|
||||
prettier@^2.8.2:
|
||||
version "2.8.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.2.tgz#c4ea1b5b454d7c4b59966db2e06ed7eec5dfd160"
|
||||
integrity sha512-BtRV9BcncDyI2tsuS19zzhzoxD8Dh8LiCx7j7tHzrkz8GFXAexeWFdi22mjE1d16dftH2qNaytVxqiRTGlMfpw==
|
||||
|
||||
pretty-error@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-4.0.0.tgz#90a703f46dd7234adb46d0f84823e9d1cb8f10d6"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue