New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-xavdid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xavdid - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

8

CHANGELOG.md

@@ -0,1 +1,7 @@

## 3.0.0
_published `2021-09-15`_
- :exclamation: extracted React rules into `eslint-config-xavdid-with-react`. For react projects, version `1.0.0` of that is identical to `2.0.1` of this package.
## 2.0.1

@@ -12,3 +18,3 @@

- :exclamation: deps are now properly out of `peerDependencies`
- :exclamation updated plugins, which will likely mean changed rules
- :exclamation: updated plugins, which will likely mean changed rules

@@ -15,0 +21,0 @@ ## 1.0.0

27

index.js
module.exports = {
extends: [
"standard-with-typescript",
// this line prints a warning in non-react projects
// I think the extra log lines are worth not needing to configure anything
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",

@@ -14,25 +10,2 @@ "plugin:jest/style",

],
overrides: [
{
files: ["*.tsx"],
rules: {
// don't need return types on function components
// might tighten this to "allowTypedFunctionExpressions" per
// https://stackoverflow.com/a/56714344/1825390
// (though that's untested)
"@typescript-eslint/explicit-function-return-type": 0,
},
},
],
// `eslint-config-react` gives warnings if:
// * the below property isn't here
// * react isn't installed
// so there's basically always some warning if we ship with react plugin enabled
// lint is mostly in-editor and in CI, so that's fine
// it seems like in the future, "detect" will be the default and we may not need this
settings: {
react: {
version: "detect",
},
},
};
{
"name": "eslint-config-xavdid",
"version": "2.0.1",
"version": "3.0.0",
"description": "A custom eslint config, just how I like it",
"main": "index.js",
"files": [],
"scripts": {

@@ -11,2 +10,6 @@ "test": "echo cool",

},
"keywords": [
"eslint",
"eslintconfig"
],
"author": "David Brownman <beamneocube@gmail.com> (https://xavd.id)",

@@ -26,6 +29,4 @@ "license": "ISC",

"eslint-plugin-node": "^11",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.21.4",
"eslint-plugin-react-hooks": "^4.1.2"
"eslint-plugin-promise": "^5.1.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc