Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@ps73/eslint-config
Advanced tools
This package provides a shared ESLint configuration for my projects. It includes typescript, prettier and react configurations.
npm install @ps73/eslint-config -D
To lint .ts
, .js
, .mjs
and .cjs
files add the following to your .eslintrc.cjs
file:
module.exports = {
root: true,
extends: ['@ps73/eslint-config'],
};
Add to your package.json
{
"prettier": "@ps73/eslint-config/prettier.json"
}
By default the configuration uses ES2022. If you want to use a different version, add the following to your .eslintrc.cjs
file:
module.exports = {
root: true,
extends: ['@ps73/eslint-config'],
parserOptions: {
ecmaVersion: 2023, // or 2022, 2021, 2020, 2019, ...
},
// when using react
overrides: [
{
files: ['*.tsx', '*.jsx'],
env: {
es2023: true, // or 2022, 2021, 2020, 2019, ...
},
},
],
};
To lint .ts
, .tsx
, .js
, .jsx
, .mjs
and .cjs
files use the react configuration:
module.exports = {
root: true,
extends: ['@ps73/eslint-config/react'],
};
To lint .ts
, .tsx
, .js
, .jsx
, .mjs
and .cjs
files use the react configuration:
module.exports = {
root: true,
extends: ['@ps73/eslint-config/react-native'],
};
Install ESLint Extension and Prettier Extension.
Add to .vscode/settings.json:
{
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
},
"eslint.enable": true,
"eslint.options": { "reportUnusedDisableDirectives": "error" },
"eslint.codeAction.disableRuleComment": {
"enable": true,
"location": "separateLine",
"commentStyle": "line",
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
}
FAQs
Simple yet opinionated eslint setup for my projects.
We found that @ps73/eslint-config 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.