Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@misk/prettier
Advanced tools
This package provides shared Prettier config across Misk tab repos.
$ yarn add @misk/prettier
Add the following key to your package.json
.
{
"prettier": "@misk/prettier"
}
0.1.13
15 Jul 2019 12:29:37 GMT
SimpleReduxSaga
type to alias the type of a rootSaga
in a tab's src/ducks/index.ts
to support bumping redux-sagas
library. It looks as follows.
export function* rootSaga(): SimpleReduxSaga {
yield all([
fork(watchPaletteSagas),
...
2019-02-21: First stable release of @misk/simpleredux
at 0.1.4
.
2019-02-20: Move ducks
out of @misk/common
and @misk/core
into @misk/simpleredux
for better centralized, isolated functionality. Effective as of @misk/*@0.1.4-4^
.
2019-02-20: All interfaces, functions, colors, and code in @misk/common
has been moved to @misk/core
. @misk/common
now only has styles and vendors library creation. Update any broken references to point to @misk/core
. Effective as of @misk/*@0.1.4-3^
.
2019-02-14: simpleNetworkResponse
renamed to getSimpleNetwork
. Many other potential breaking changes in refactor and release of SimpleNetworkDucks
and SimpleFormDucks
. API not stable and may be changed in upcoming releases for simplicity. Effective as of @misk/core@0.1.4-2^
.
2019-02-07: response
in simpleNetwork
library renamed to simpleNetworkResponse
for less ambiguity when devs call it and to match prefixed function idiom established in 0.1.3-15
. Effective as of @misk/core@0.1.3-18^
.
2019-02-07: simpleNetwork
library functions in props are now all prefixed such that this.props.get
is now this.props.simpleNetworkGet
to prevent collisions with other dispatcher objects. Effective as of @misk/core@0.1.3-15^
.
2018-11-30: @misk/components
renamed to @misk/core
. All versions and Docker at 0.1.0
.
2018-11-08: @misk/common@0.0.61
, @misk/core@0.0.77
, @misk/dev@0.0.64
. Import styles as a css file instead of JS. New version required parameter in package.json:miskTab.
Update src/index.html
to include the following
<!-- Misk Libraries -->
<link rel="stylesheet" type="text/css" href="/@misk/common/styles.css" />
<script type="text/javascript" src="/@misk/common/vendors.js" preload></script>
<script type="text/javascript" src="/@misk/common/common.js" preload></script>
<script type="text/javascript" src="/@misk/core/components.js" preload></script>
2018-11-05: @misk/common@^0.0.59
, @misk/core@^0.0.76
, @misk/dev@^0.0.60
, @misk/tslint^@0.0.10
. Revert back to StyledComponents because of difficulties in downstream migrations. Upgrade to connected-react-router@^5.0.0
.
Replace all imports of react-emotion
with styled-components
.
In src/ducks/index.ts
update rootReducer
and IState
to the following
import {
connectRouter,
LocationChangeAction,
RouterState
} from "connected-react-router"
import { History } from "history"
import { combineReducers, Reducer } from "redux"
...
export interface IState {
loader: ILoaderState
router: Reducer<RouterState, LocationChangeAction>
}
...
export const rootReducer = (history: History) =>
combineReducers({
loader: LoaderReducer,
router: connectRouter(history)
})
2018-11-01: @misk/dev@^0.0.47
and @misk/common@^0.0.52
. Prettier integration, Slug now injected into index.html
.
Replace src/index.html
with the following:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
</head>
<body>
<div id="<%= htmlWebpackPlugin.options.slug %>"></div>
<!-- Misk Libraries -->
<script type="text/javascript" src="/@misk/common/styles.js" async></script>
<script type="text/javascript" src="/@misk/common/vendors.js" preload></script>
<script type="text/javascript" src="/@misk/common/common.js" preload></script>
<script type="text/javascript" src="/@misk/core/components.js" preload></script>
</body>
</html>
Create a file prettier.config.js
with the following:
const { createPrettierConfig } = require("@misk/dev")
module.exports = createPrettierConfig()
This was reverted on 2018-11-05: Replace all imports of styled-components
with react-emotion
.
Add the following to package.json
and add it as a prerequisite to build
and start
steps.
"lint": "prettier --write --config prettier.config.js \"./src/**/*.{md,css,sass,less,json,js,jsx,ts,tsx}\"",
Change miskTabBuilder
to createTabWebpack
in webpack.config.js
.
Change makeExternals
to createExternals
in webpack.config.js
.
2018-10-28: @misk/common@^0.0.52
. createApp()
and createIndex()
Replace src/index.tsx
with the following:
import { createApp, createIndex } from "@misk/core"
import * as Ducks from "./ducks"
import routes from "./routes"
export * from "./components"
export * from "./containers"
createIndex("config", createApp(routes), Ducks)
Delete src/App.tsx
.
FAQs
Misk-Web Prettier Config
The npm package @misk/prettier receives a total of 1,062 weekly downloads. As such, @misk/prettier popularity was classified as popular.
We found that @misk/prettier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.