feat: Add prettier to pre-commit workflow (#17134)

* save

* fix

* fix pre-commit
This commit is contained in:
Hugh A. Miles II 2021-10-20 20:53:52 -04:00 committed by GitHub
parent 029ed90afb
commit cd9e99402d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 13 deletions

View File

@ -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

View File

@ -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'

View File

@ -1,3 +1,3 @@
body{
body {
background: transparent;
}

View File

@ -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,

View File

@ -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"]

View File

@ -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."
}
]
}

View File

@ -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."
}
]

View File

@ -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,