eslint-config-xavdid
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -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" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10
2353
10
1
- Removedeslint-plugin-react@^7.21.4
- Removedeslint-plugin-react-hooks@^4.1.2
- Removedarray.prototype.findlast@1.2.5(transitive)
- Removedarray.prototype.tosorted@1.1.4(transitive)
- Removedes-iterator-helpers@1.2.1(transitive)
- Removedeslint-plugin-react@7.37.4(transitive)
- Removedeslint-plugin-react-hooks@4.6.2(transitive)
- Removediterator.prototype@1.1.5(transitive)
- Removedjsx-ast-utils@3.3.5(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject.entries@1.1.8(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedresolve@2.0.0-next.5(transitive)
- Removedstring.prototype.matchall@4.0.12(transitive)
- Removedstring.prototype.repeat@1.0.0(transitive)