
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@volvo-cars/vcc-scripts
Advanced tools
Build, lint, test and format your frontend code with Volvo Cars default configurations
Wraps build, test, lint and formatting tools and keeps them up to date for you.
yarn add @volvo-cars/vcc-scripts
{
"main": "lib/index.js",
"module": "es/index.js",
"files": ["lib", "es"],
"scripts": {
"build": "vcc-scripts build",
"lint": "vcc-scripts lint",
"format": "vcc-scripts format",
"test": "vcc-scripts test"
},
"devDependencies": {
"vcc-scripts": "^0.0.5"
}
}
Runs Babel on a package, using fields from package.json as configuration. See vcc-scripts build --help for more information.
src/ to CommonJS modules to the dirname of package.json#main.src/ to ES modules to the dirname of package.json#module, if it exists.src/ to ES modules for modern browsers to the dirname of package.json#esnext, if it exists.package.json#types, if it exists and the package has a tsconfig.json.@volvo-cars/babel-preset-react-app is used as the Babel configuration. You can add your own plugins with a .babelrc file that will be merged into the default configuration, but please send a pull request to the Babel preset if your change might benefit others.
To avoid including duplicated helper functions in your compiled code, run yarn add @babel/runtime to use the shared Babel runtime and vcc-scripts will adjust the Babel config.
{
"main": "lib/index.js",
"module": "es/index.js",
"esnext": "esnext/index.js",
"types": "types/index.d.ts",
"files": ["lib", "es", "esnext", "types"],
"scripts": {
"build": "vcc-scripts build",
"build:watch": "vcc-scripts build --watch"
},
"dependencies": {
"@babel/runtime": "^7.4.0"
}
}
Runs Jest with a default configuration. See vcc-scripts test --help for more information.
Any additional arguments will be passed through to the Jest cli.
Commonly used setup scripts are added automatically, such as a Google Analytics global and @testing-library/jest-dom/extend-expect. To add your own setup scripts, use the --setupFiles or --setupFilesAfterEnv options.
{
"scripts": {
"test": "vcc-scripts test --coverage --setupFiles ./testing/setup.js",
"test:watch": "vcc-scripts test --watch --setupFiles .//testing/setup.js"
}
}
Runs eslint with the official Volvo Cars eslint configurations without having to install eslint or configurations separately. See vcc-scripts lint --help for more information.
Any additional arguments will be passed through to the eslint cli.
You can add your own configuration with custom .eslintrc files in sub-folders.
For your editor plugins to pick up the correct eslint config, create an .eslintrc.js in the root of your project with
module.exports = require('@volvo-cars/vcc-scripts/config/eslint.js');
{
"scripts": {
"lint": "vcc-scripts lint",
"lint:fix": "vcc-scripts lint --fix"
}
}
Runs prettier with the official Volvo Cars configuration without having to install prettier or configuration separately.
For your editor to pick up the correct prettier config, create a .prettierrc file with "@volvo-cars/prettier-config" in your project root.
{
"scripts": {
"format": "vcc-scripts format",
"format:check": "vcc-scripts format --dry-run"
}
}
FAQs
Build, lint, test and format your frontend code with Volvo Cars default configurations
The npm package @volvo-cars/vcc-scripts receives a total of 46 weekly downloads. As such, @volvo-cars/vcc-scripts popularity was classified as not popular.
We found that @volvo-cars/vcc-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.