
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.
@porscheofficial/eslint-config-porschedigital-react
Advanced tools
This package provides Porsche Digital's eslint-config as an extensible shared config.
This package provides the react eslint config as an extensible shared component.
@porscheofficial/eslint-config-porschedigital-base npm info "@porscheofficial/eslint-config-porschedigital-react" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "@porscheofficial/eslint-config-porschedigital-react"
/.eslintrc:{
"extends": "@porscheofficial/eslint-config-porschedigital-react"
}
yarn add --dev --exact prettier @porscheofficial/prettier-config-porschedigital
Update package.json:
{
"prettier": "@porscheofficial/prettier-config-porschedigital"
}
./package.json:"scripts": {
"eslint:ci": "eslint src/ --ext .js,.jsx,.tsx,.ts -f stylish",
"eslint:fix": "eslint src/ --fix --ext .js,.jsx,.tsx,.ts -f stylish --quiet",
"prettier:ci": "prettier --check ./",
"prettier:fix": "prettier --write ./"
}
if(ide === "vscode") update ./.vscode/settings.json:Requires Prettier Plugin
esbenp.prettier-vscodeRequires ESLint Plugin:dbaeumer.vscode-eslint
// .vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"html",
"javascript",
"typescript",
"typescript",
],
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
},
"[typescriptreact]": {
"editor.formatOnSave": false
}
}
ESLint couldn't find the plugin "eslint-plugin-jest"Unfortunately eslint doesn't officially support plugins as dependencies in shareable configs (See eslint#3458).
The result is, that eslint doesn't find these plugins.
However, we want this package to be as convient to use as possible, so we don't plan to add these plugins as peerDependencies.
If you see a complain like "eslint-plugin-jest", simply install this dependency explicitly:
yarn add --dev --exact eslint-plugin-jest
With more recent package managers, dependencies are installed in a flat way.
That means, that dependencies and secondary dependencies are installed directly in the top level node_modules directory (See how npm3 works).
Parsing error: Cannot read file [...]tsconfigReference directly to your .tsconfig.
//.eslintrc
{
// ...
"parserOptions": {
"project": "./tsconfig.json"
},
// ...
}
See LICENSE.
FAQs
This package provides Porsche Digital's eslint-config as an extensible shared config.
We found that @porscheofficial/eslint-config-porschedigital-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.