
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@iadvize-oss/eslint-config
Advanced tools
Opiniated eslint config based on airbnb config and prettier.
Add this dependency to your repository with its peer-dependency:
npm add --save-dev @iadvize-oss/eslint-config eslint
Create a .eslintrc file in your project root with this content
{
"extends": [
"@iadvize-oss/eslint-config",
// or
"@iadvize-oss/eslint-config/one-config"
]
}
The package provide multiple configs whether you need simple javascript linting of full typescript + javascript + react linting with type-aware rules.
The details are here:
config | javascript | react | typescript | with types |
---|---|---|---|---|
@iadvize-oss/eslint-config/javascript | ✔️ | |||
@iadvize-oss/eslint-config/javascript-react | ✔️ | ✔️ | ||
@iadvize-oss/eslint-config/light-typescript | ✔️ | ✔️ | ||
@iadvize-oss/eslint-config/light-typescript-react | ✔️ | ✔️ | ✔️ | |
@iadvize-oss/eslint-config/typescript | ✔️ | ✔️ | ✔️ | |
@iadvize-oss/eslint-config/typescript-react | ✔️ | ✔️ | ✔️ | ✔️ |
The @iadvize-oss/eslint-config
links to @iadvize-oss/eslint-config/typescript-react
.
Note that all configs can be used on JSON files too.
You will need to install a peer-dependency @typescript-eslint/parser
as it is required by eslint-plugin-import
internally.
We lint typescript files with @typescript-eslint/eslint-plugin that provide rules that replace default eslint ones.
Some of these rules are
type-aware and use tsc
under the hood to compile each file before lint.
As this can drastically affect performance for big code base, we provide
light-typescript
configs that do not use type-aware rules.
If you decide to give @iadvize-oss/eslint-config/typescript
or
@iadvize-oss/eslint-config/typescript-react
a try, you will need a
tsconfig.json
file at the root of your project for type-aware rules to work.
Because we also lint JSON files, you need to include them like so:
"include": [
"**/*",
"**/*.json"
],
"exclude": ["node_modules"]
It's probably better for you to define one special .eslint.tsconfig.json
like
so:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": [
"**/*",
"**/*.json"
]
}
Then, in you .eslintrc
"parserOptions": {
"project": "./.eslint.tsconfig.json"
}
The lib also provide a workaround for https://github.com/eslint/eslint/issues/3458
When needed, start by requiring the patch in your config entry point.
require('@iadvize-oss/eslint-config/patch');
module.exports = {
extends: [
'eslint-config-airbnb-base',
...
FAQs
iAdvize javascript eslint rules, based on airbnb
The npm package @iadvize-oss/eslint-config receives a total of 78 weekly downloads. As such, @iadvize-oss/eslint-config popularity was classified as not popular.
We found that @iadvize-oss/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.