Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@amedia/eslint-config-typescript
Advanced tools
ESLint TypeScript configuration to be used by developers at Amedia
Common ESLint/Prettier configuration for TypeScript Extends (https://www.npmjs.com/package/eslint-config-airbnb-typescript)[Airbnb's typescript configuration].
To test this package :
Install the package with (change the version to the version in package.json)
With npm 5+
This is a cool tool that installs all dependencies you need in peerDependencies
to get going.
npx install-peerdeps --dev @amedia/eslint-config-typescript
OR
If you want a prefer manual approach then install the correct versions of each peerDependency package, which are listed by the command:
npm info "@amedia/eslint-config-typescript" peerDependencies
npm install --save-dev @amedia/eslint-config-typescript
yarn add @amedia/eslint-config-typescript -D
Install the correct versions of each peerDependency package, which are listed by the command:
npm info "@amedia/eslint-config-typescript" peerDependencies
There are a few ways to include the eslint config in your project.
Make sure you dont have any other settings for eslint or prettier already in your editor workspace or global.
Restart your editor if you dont see it working immediately (known issue for VS Code)
Select one of the options below:
Using package.json
:
{
"eslintConfig": {
"extends": "@amedia/eslint-config-typescript"
}
}
Using .eslintrc
:
{
"extends": "@amedia/eslint-config-typescript"
}
or .eslintrc.js
:
module.exports = {
extends: '@amedia/eslint-config-typescript',
};
You also need to set ut .prettierrc
and tsconfig.json
.
This is how you use or extend the @amedia/eslint-config-base
prettier config in your
app. Select on of the following:
Add a line to the package.json
file.
{
"prettier": "@amedia/eslint-config-base/prettier.config"
}
Creating a file named .prettierrc
.
"@amedia/eslint-config-base/prettier.config"
Or create a file named prettier.config.js
Again, remove other prettier config files locally in your project or editor.
module.exports = require('@amedia/eslint-config-base/prettier.config');
Create a file tsconfig.json
and add the following and add:
{
"extends": "@amedia/eslint-config-typescript/tsconfig.json",
"compilerOptions": {
"outDir": "./build/",
"rootDir": "./src",
"typeRoots": ["./node_modules/@types"]
},
"exclude": ["node_modules", "src/test"],
"include": ["src/**/*"]
}
FAQs
ESLint TypeScript configuration to be used by developers at Amedia
The npm package @amedia/eslint-config-typescript receives a total of 1,187 weekly downloads. As such, @amedia/eslint-config-typescript popularity was classified as popular.
We found that @amedia/eslint-config-typescript 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.