
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
eslint-plugin-fpcs
Advanced tools
FPCS eslint style rules.
yarn add --dev eslint-plugin-fpcsnpx check-peer-dependencies --yarn --installyarn add --dev @babel/eslint-parser@^7.22.15 eslint-plugin-babel@5.3.1yarn add --dev @typescript-eslint/eslint-plugin@7.14.1 @typescript-eslint/parser@7.14.1 eslint-import-resolver-typescript@3.6.1yarn add --dev eslint-config-airbnb@19.0.4 eslint-plugin-jsx-a11y@6.9.0 eslint-plugin-react@7.34.3 eslint-plugin-react-hooks@4.6.2yarn add --dev eslint-plugin-vue@9.26.0npx check-peer-dependencies --yarn"eslint-plugin-fpcs": "^2.0.0"yarnIf you use babel, you will need to add "plugin:fpcs/babel" to the extends section of your .eslintrc file. Make sure to place it directly after base, before any other configs like typescript or react.
prefer-default-export removed in favor of opposite no-default-exportFPCS has decided to move to always using named exports. See discussion in style guide.
To use v2 you will need to do one of the following:
eslint-disable import/no-default-export for every default export in your codebase.rules: {
'import/no-default-export': 'off',
'import/prefer-default-export': 'warn',
'no-restricted-exports': 'off',
}
Alternatively, you may stay on v1.x, but future updates may not be applied to the v1.x tree.
Add desired config sets to the extends section of your .eslintrc or .eslintrc.js configuration file.
plugin:fpcs/baseplugin:fpcs/babelplugin:fpcs/reactplugin:fpcs/react-typescriptplugin:fpcs/typescriptplugin:fpcs/vue{
"extends": [ "plugin:fpcs/base" ],
}
{
"extends": [
"plugin:fpcs/base",
"plugin:fpcs/typescript",
],
}
{
"extends": [
"plugin:fpcs/base",
"plugin:fpcs/react",
],
}
{
"extends": [
"plugin:fpcs/base",
"plugin:fpcs/react-typescript",
],
}
{
"extends": [
"plugin:fpcs/base",
"plugin:fpcs/vue",
],
}
Typically used on a React app that gets transpiled by babel.
{
"extends": [
"plugin:fpcs/base",
"plugin:fpcs/babel",
...if you extend other configs place them here, AFTER babel...
],
}
Add desired config sets to the rules section of your .eslintrc or .eslintrc.js configuration file.
"rules": {
"@typescript-eslint/consistent-type-assertions": "off",
},
fpcs/no-gremlin-chars (automatically set to 'error' when using base config)fpcs/prefer-early-return (automatically set to 'error' when using base config)To develop on this package, I strongly recommended that you use yalc. Yalc solves issues related to peer dependencies not symlinking correctly when using yarn link on local. Just run yalc publish in this repo and then yalc add eslint-plugin-fpcs && yarn in the user repo after every change.
FAQs
FPCS eslint plugin including configs and custom rules.
We found that eslint-plugin-fpcs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.