Skip to content

Commit

Permalink
eslint-config 0.2.0
Browse files Browse the repository at this point in the history
- Update to ES2021
- Allow shadowing of `name`. Useful in browser environments where `window.name` is a thing

Signed-off-by: Phoenix35 <phoenix35.npm-public@yahoo.com>
  • Loading branch information
Phoenix35 committed Nov 16, 2020
1 parent 0f249a7 commit 1ab2007
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
"es2020": true
},
"parserOptions": {
"ecmaVersion": 2020
"ecmaVersion": 2021
},
"plugins": [
"jsdoc"
Expand All @@ -23,7 +23,7 @@ module.exports = {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"rules": {
"rules":{
// Changes to eslint:recommended
"no-inner-declarations": "off",
"no-empty": [
Expand Down Expand Up @@ -230,7 +230,10 @@ module.exports = {
],
"no-shadow": [
"error",
{ "builtinGlobals": true }
{
"builtinGlobals": true,
"allow": ["name"] // because of `window.name`
}
],
"no-undef-init": "error",
"no-use-before-define": [
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phoenix35/eslint-config",
"version": "0.1.0",
"version": "0.2.0",
"description": "Complete ESLint shareable config for beginners",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,6 @@
"url": "git+https://github.com/Phoenix35/eslint-config.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com",
"access": "public"
},
"keywords": [
Expand All @@ -23,17 +22,17 @@
"url": "https://github.com/Phoenix35/eslint-config/issues"
},
"peerDependencies": {
"eslint": ">= 7.3.0",
"eslint-plugin-jsdoc": "^27.1.2",
"eslint": ">=7.13.0",
"eslint-plugin-jsdoc": "^30.7.8",
"eslint-plugin-node": "^11.1.0"
},
"devDependencies": {
"eslint": "^7.3.0",
"eslint-plugin-jsdoc": "^27.1.2",
"eslint": "^7.13.0",
"eslint-plugin-jsdoc": "^30.7.8",
"eslint-plugin-node": "^11.1.0"
},
"engines": {
"node": ">= 12.18.1"
"node": ">= 12.19.0"
},
"author": "Phoenix35",
"license": "MPL-2.0"
Expand Down

0 comments on commit 1ab2007

Please sign in to comment.