Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@curve-technology/webapp-scripts
Advanced tools
Tooling, configuration and build-related scripts for Curve web apps
Install @curve-technology/webapp-scripts
and its peerDependencies
yarn add --dev @curve-technology/webapp-scripts jest eslint
To use this config, create an .babelrc
file in the root of your package and add:
{
"extends": "@curve-technology/webapp-scripts/babel/nextjs"
}
There are four eslint configs available, pick the one most appropriate for your project:
./node_modules/@curve-technology/webapp-scripts/eslint/eslint-js
./node_modules/@curve-technology/webapp-scripts/eslint/eslint-js-react
./node_modules/@curve-technology/webapp-scripts/eslint/eslint-ts
./node_modules/@curve-technology/webapp-scripts/eslint/eslint-ts-react
To use this config, create an .eslintrc
file in the root of your package and reference one of the mentioned config options.
.eslintrc
Using a configuration file
The extends property value can be an absolute or relative path to a base configuration file. ESLint resolves a relative path to a base configuration file relative to the configuration file that uses it.
Example of a configuration file in JSON format:
{
"extends": [
"./node_modules/@curve-technology/webapp-scripts/eslint/eslint-ts-react"
],
"rules": {
"eqeqeq": "warn"
}
}
This config assumes you're using jest.
To use this config, create an jest.config.js
file in the root of your package and add:
module.exports = {
...require('@curve-technology/webapp-scripts/jest'),
}
If you need to add or override this config, use something like this:
const jestConfig = require('@curve-technology/webapp-scripts/jest')
// add an item to `setupFilesAfterEnv`
jestConfig.setupFilesAfterEnv.push('<rootDir>src/testUtils/mocks.js')
module.exports = Object.assign(jestConfig, {
// your overrides here
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
setupFiles: ['dotenv/config'],
snapshotSerializers: ['jest-emotion'],
})
To use this config, create an .prettierrc.js
file in the root of your package and add:
module.exports = {
...require('@curve-technology/webapp-scripts/prettier'),
}
To use this config, create an .huskyrc.js
file in the root of your package and add:
module.exports = {
...require('@curve-technology/webapp-scripts/husky'),
}
To use this config, create an .commitlintrc.js
file in the root of your package and add:
module.exports = {
...require('@curve-technology/webapp-scripts/commitlint'),
}
To use this config, create an tsconfig.json
file in the root of your repo and add:
{
"extends": "@curve-technology/webapp-scripts/tsconfig/tsconfig.base",
"exclude": ["node_modules", "./.storybook/**/*"],
"include": ["next-env.d.ts", "src/**/*.ts", "src/**/*.tsx"]
}
Made by Curve's web scientists 👨🔬
FAQs
Tooling, configuration and build-related scripts for Curve web apps
The npm package @curve-technology/webapp-scripts receives a total of 1 weekly downloads. As such, @curve-technology/webapp-scripts popularity was classified as not popular.
We found that @curve-technology/webapp-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.