Skip to content

Commit

Permalink
run prettier v2
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyab authored and kof committed Dec 8, 2021
1 parent 61d5427 commit 95c40f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions packages/jss-plugin-nested/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ export default function jssNested() {

warning(
false,
`[JSS] Could not find the referenced rule "${key}" in "${container.options.meta ||
container.toString()}".`
`[JSS] Could not find the referenced rule "${key}" in "${
container.options.meta || container.toString()
}".`
)
return key
}
Expand Down
4 changes: 1 addition & 3 deletions packages/jss/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {Properties as CSSProperties} from 'csstype'
//
// TODO: refactor to only include Observable types if plugin is installed.
export interface MinimalObservable<T> {
subscribe(
nextOrObserver: ((value: T) => void) | {next: (value: T) => void}
): {
subscribe(nextOrObserver: ((value: T) => void) | {next: (value: T) => void}): {
unsubscribe: () => void
}
}
Expand Down
6 changes: 2 additions & 4 deletions packages/jss/tests/integration/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Integration: sheet', () => {
it('should have no selector in stringified rule when id gnerator is called', () => {
let css
// Simulate cache based id generator.
const generateId = rule => {
const generateId = (rule) => {
css = rule.toString()
return css
}
Expand Down Expand Up @@ -302,9 +302,7 @@ describe('Integration: sheet', () => {
let id
const options = {
generateId: () => {
id = `c${Math.random()
.toString()
.substr(2)}`
id = `c${Math.random().toString().substr(2)}`
return id
}
}
Expand Down

0 comments on commit 95c40f3

Please sign in to comment.