
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@shinnn/eslint-config
Advanced tools
shinnn's ESLint sharable config
catch
binding, and more experimental ones when babel-eslint is installed.cjs
and .mjs
file extension by default to support ECMAScript modules--fix
flag
--no-fix
flag.coverage/
, tmp/
and dist/
process.exit()
to be used only inside executablesInstall eslint
and this package with npm.
npm install --save-dev eslint @shinnn/eslint-config
Then add the following configuration to your project's package.json
.
"eslintConfig": {
"extends": "@shinnn"
}
When babel-eslint
is installed, this config automatically uses it as a parser. There is no need to add "parser": "babel-eslint"
to the package.json
explicitly.
npm install --save-dev babel-eslint
babel-eslint
lets ESLint parse experimental ECMAScript syntax the default parser doesn't support, for example class fields and BigInt
.
When eslint-plugin-svelte3
is installed, this config also makes ESLint validate .svelte
files.
npm install --save-dev eslint-plugin-svelte3
# No need to explicitly add `--cache`, `--cache-location`, `--ext`, `--fix` and `--format` flags
$ eslint .
const {CLIEngine} = require('eslint');
const cli = new CLIEngine({
// For programmatic usage via API and build tool integrations like Webpack eslint-loader,
// options for example `fix: true` and `cache: true` are still needed to set them explicitly.
});
cli.executeOnText('var foo=true;'); //=> {results: [ ... ], errorCount: ... }
ISC License © 2017 - 2019 Watanabe Shinnosuke
FAQs
shinnn's ESLint config
The npm package @shinnn/eslint-config receives a total of 0 weekly downloads. As such, @shinnn/eslint-config popularity was classified as not popular.
We found that @shinnn/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.