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.
@opuscapita/eslint-config-opuscapita-bnapp
Advanced tools
OpusCapita Eslint andariel config, following our styleguide
This package is created for andariel services for same eslint settings in services.
Use consistency style for all andariel services.
This eslint-config package handles node.js
+ browser
+ React
and Typescript
.
Requires node >= 12.x
Open andariel service
Just put to CLI:
npm i --save-dev eslint@8.20 @opuscapita/eslint-config-opuscapita-bnapp@latest
npm i --save-dev @babel/core@^7.18.9 @babel/preset-env@^7.18.9 @babel/eslint-parser@^7.18.9
npm i --save-dev eslint-plugin-react@^7.32.2 eslint-plugin-react-hooks@latest@^4.6.0 @babel/preset-react@^7.18.6
npm i --save-dev @typescript-eslint/eslint-plugin@^5.41.0 @typescript-eslint/parser@^5.41.0
npm uninstall @opuscapita/eslint-config
npm uninstall eslint-config-opuscapita
create .eslintrc
file and paste it:
{
"extends": ["@opuscapita/opuscapita-bnapp"]
}
npx eslint src --ext .js,.jsx
- check .js and .jsx files with eslint (src = folderName)
npx eslint src --ext .js,.jsx,.ts,.tsx
- check also .ts and .tsx files with eslint (src = folderName)
npx eslint src --ext .js,.jsx --fix
- check & fix(overwrite) .js and .jsx files with eslint
npx eslint src --ext .js,.jsx,.ts,.tsx --fix
- check & fix(overwrite) also .ts and .tsx files with eslint
remmember to check and test changes!
install Eslint >= 2.2.6
in settings.json
set
"eslint.workingDirectories": [{ "mode": "auto" }],
"eslint.runtime": "",
"eslint.alwaysShowStatus": true,
"eslint.debug": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.nodeEnv": "",
"eslint.useESLintClass": true,
"eslint.onIgnoredFiles": "warn",
"eslint.execArgv": null,
"eslint.validate": [
"javascript",
"javascriptreact",
]
rule handling:
2 = "error"
1 = "warning"
0 = "off"
This repo is inspired by the OpusCapita/eslint-config
FAQs
OpusCapita Eslint andariel config, following our styleguide
The npm package @opuscapita/eslint-config-opuscapita-bnapp receives a total of 206 weekly downloads. As such, @opuscapita/eslint-config-opuscapita-bnapp popularity was classified as not popular.
We found that @opuscapita/eslint-config-opuscapita-bnapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.