feat: Add prettier to pre-commit workflow (#17134)
* save * fix * fix pre-commit
This commit is contained in:
parent
029ed90afb
commit
cd9e99402d
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
if: steps.check.outcome == 'failure'
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: "16"
|
||||
- name: Install dependencies
|
||||
if: steps.check.outcome == 'failure'
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
|
|
|
|||
|
|
@ -48,3 +48,8 @@ repos:
|
|||
hooks:
|
||||
- id: black
|
||||
language_version: python3
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.2.1 # Use the sha or tag you want to point at
|
||||
hooks:
|
||||
- id: prettier
|
||||
files: 'superset-frontend'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
body{
|
||||
body {
|
||||
background: transparent;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@
|
|||
"numTestsKeptInMemory": 0,
|
||||
"experimentalFetchPolyfill": true,
|
||||
"requestTimeout": 10000,
|
||||
"ignoreTestFiles": [
|
||||
"**/!(*.test.js|*.test.ts)"
|
||||
],
|
||||
"ignoreTestFiles": ["**/!(*.test.js|*.test.ts)"],
|
||||
"video": false,
|
||||
"videoUploadOnPasses": false,
|
||||
"viewportWidth": 1280,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"lib": ["es2019", "DOM"],
|
||||
"types": ["cypress"],
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"files": ["cypress/support/index.d.ts"],
|
||||
"include": ["node_modules/cypress", "cypress/**/*.ts"]
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
{
|
||||
"paths": [
|
||||
{
|
||||
"name": "@superset-ui/core",
|
||||
"importNames": ["supersetTheme"],
|
||||
"message": "Please use the theme directly from the ThemeProvider rather than importing supersetTheme."
|
||||
"name": "@superset-ui/core",
|
||||
"importNames": ["supersetTheme"],
|
||||
"message": "Please use the theme directly from the ThemeProvider rather than importing supersetTheme."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@
|
|||
"paths": [
|
||||
{
|
||||
"name": "@superset-ui/core",
|
||||
"importNames": [
|
||||
"supersetTheme"
|
||||
],
|
||||
"importNames": ["supersetTheme"],
|
||||
"message": "Please use the theme directly from the ThemeProvider rather than importing supersetTheme."
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"forceConsistentCasingInFileNames": true,
|
||||
"importHelpers": false,
|
||||
"jsx": "preserve",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noImplicitAny": true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue