Skip to content

Commit

Permalink
fix(config): replace old eslint-plugin-babel with new @babel/eslint-p…
Browse files Browse the repository at this point in the history
…lugin
  • Loading branch information
dackmin committed Nov 2, 2020
1 parent 124986c commit 2fe9311
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/eslint-parser": "7.12.1",
"@babel/eslint-plugin": "7.12.1",
"eslint": "7.12.1",
"eslint-config-standard": "16.0.1",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
Expand Down
7 changes: 3 additions & 4 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
sourceType: 'module',
},
plugins: [
'babel',
'@babel',
'@poool/eslint-plugin',
],
rules: {
Expand Down Expand Up @@ -47,6 +47,7 @@ module.exports = {
'arrow-parens': [WARNING, 'as-needed'],
'multiline-ternary': OFF,
'default-param-last': OFF,
camelcase: OFF,
indent: [ERROR, 2, {
SwitchCase: 1,
VariableDeclarator: 1,
Expand All @@ -65,10 +66,8 @@ module.exports = {
}],

// ES6 fixes
camelcase: OFF,
'babel/camelcase': OFF,
'no-unused-expressions': OFF,
'babel/no-unused-expressions': [WARNING, {
'@babel/no-unused-expressions': [WARNING, {
allowShortCircuit: true,
allowTernary: true,
}],
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
"peerDependencies": {
"@babel/core": "^7.2.0",
"@babel/eslint-parser": "^7.2.0",
"@babel/eslint-plugin": "^7.2.0",
"@poool/eslint-plugin": "^1.2.4",
"eslint": "^7.2.0",
"eslint-config-standard": "^15.0.0 || ^16.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1"
},
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/eslint-parser": "7.12.1",
"@babel/eslint-plugin": "7.12.1",
"@poool/eslint-plugin": "^1.3.1",
"eslint": "7.12.1",
"eslint-config-standard": "16.0.1",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1"
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
eslint-visitor-keys "^1.3.0"
semver "^6.3.0"

"@babel/eslint-plugin@7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/eslint-plugin/-/eslint-plugin-7.12.1.tgz#67626a16312dfe7c5dd7685a1a8af7b03c43985b"
integrity sha512-rOjrD5yupTYCO4x0kEbQmi/NsaD+VGOD/9Cvso64WMVPY2y6o5Nvw2sqFWdeSEBdR1Dsa07YjplBs067x5YbXg==
dependencies:
eslint-rule-composer "^0.3.0"

"@babel/generator@^7.10.1", "@babel/generator@^7.10.2":
version "7.10.2"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.10.2.tgz#0fa5b5b2389db8bfdfcc3492b551ee20f5dd69a9"
Expand Down Expand Up @@ -3186,13 +3193,6 @@ eslint-module-utils@^2.6.0:
debug "^2.6.9"
pkg-dir "^2.0.0"

eslint-plugin-babel@5.3.1:
version "5.3.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-5.3.1.tgz#75a2413ffbf17e7be57458301c60291f2cfbf560"
integrity sha512-VsQEr6NH3dj664+EyxJwO4FCYm/00JhYb3Sk3ft8o+fpKuIfQ9TaW6uVUfvwMXHcf/lsnRIoyFPsLMyiWCSL/g==
dependencies:
eslint-rule-composer "^0.3.0"

eslint-plugin-es@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.0.tgz#98cb1bc8ab0aa807977855e11ad9d1c9422d014b"
Expand Down

0 comments on commit 2fe9311

Please sign in to comment.