-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prettier all the Javascript code & GitHub Action (#4433)
* Prettier all the JS files * Add GitHub Action to autoformat code pushed to master * Fix eslint violation due to formatting. * Remove GitHub actions for styling * Add restyled.io config
- Loading branch information
Showing
375 changed files
with
10,069 additions
and
9,198 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
enabled: true | ||
|
||
auto: false | ||
|
||
# Open Restyle PRs? | ||
pull_requests: true | ||
|
||
# Leave comments on the original PR linking to the Restyle PR? | ||
comments: true | ||
|
||
# Set commit statuses on the original PR? | ||
statuses: | ||
# Red status in the case of differences found | ||
differences: true | ||
# Green status in the case of no differences found | ||
no_differences: true | ||
# Red status if we encounter errors restyling | ||
error: true | ||
|
||
# Request review on the Restyle PR? | ||
# | ||
# Possible values: | ||
# | ||
# author: From the author of the original PR | ||
# owner: From the owner of the repository | ||
# none: Don't | ||
# | ||
# One value will apply to both origin and forked PRs, but you can also specify | ||
# separate values. | ||
# | ||
# request_review: | ||
# origin: author | ||
# forked: owner | ||
# | ||
request_review: author | ||
|
||
# Add labels to any created Restyle PRs | ||
# | ||
# These can be used to tell other automation to avoid our PRs. | ||
# | ||
labels: ["Skip CI"] | ||
|
||
# Labels to ignore | ||
# | ||
# PRs with any of these labels will be ignored by Restyled. | ||
# | ||
# ignore_labels: | ||
# - restyled-ignore | ||
|
||
# Restylers to run, and how | ||
restylers: | ||
- name: black: | ||
include: | ||
- redash | ||
- tests | ||
- migrations/versions | ||
- name: prettier: | ||
include: | ||
- client/app/**/*.js | ||
- client/app/**/*.jsx | ||
- client/cypress/**/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ module.exports = { | |
rules: { | ||
"jest/no-focused-tests": "off", | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { configure } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import { configure } from "enzyme"; | ||
import Adapter from "enzyme-adapter-react-16"; | ||
|
||
configure({ adapter: new Adapter() }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import MockDate from 'mockdate'; | ||
import MockDate from "mockdate"; | ||
|
||
const date = new Date('2000-01-01T02:00:00.000'); | ||
const date = new Date("2000-01-01T02:00:00.000"); | ||
|
||
MockDate.set(date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// ANGULAR_REMOVE_ME | ||
import { react2angular } from 'react2angular'; | ||
import { react2angular } from "react2angular"; | ||
|
||
import ColorPicker from '@/components/ColorPicker'; | ||
import ColorPicker from "@/components/ColorPicker"; | ||
|
||
import './color-box.less'; | ||
import "./color-box.less"; | ||
|
||
export default function init(ngModule) { | ||
ngModule.component('colorBox', react2angular(ColorPicker.Swatch)); | ||
ngModule.component("colorBox", react2angular(ColorPicker.Swatch)); | ||
} | ||
|
||
init.init = true; |
Oops, something went wrong.