feat: babel eslint

This commit is contained in:
cha0s 2021-03-20 08:20:22 -05:00
parent e7e8b53176
commit ed3a74d85a
5 changed files with 103 additions and 6 deletions

View File

@ -35,6 +35,15 @@
semver "^5.4.1"
source-map "^0.5.0"
"@babel/eslint-parser@^7.13.10":
version "7.13.10"
resolved "http://npm.cha0sdev/@babel%2feslint-parser/-/eslint-parser-7.13.10.tgz#e272979914f36bb6cea144c14c32bb51632696dd"
integrity sha512-/I1HQ3jGPhIpeBFeI3wO9WwWOnBYpuR0pX0KlkdGcRQAVX9prB/FCS2HBpL7BiFbzhny1YCiBH8MTZD2jJa7Hg==
dependencies:
eslint-scope "5.1.0"
eslint-visitor-keys "^1.3.0"
semver "^6.3.0"
"@babel/generator@^7.12.13", "@babel/generator@^7.12.15":
version "7.12.15"
resolved "http://npm.cha0sdev/@babel%2fgenerator/-/generator-7.12.15.tgz#4617b5d0b25cc572474cc1aafee1edeaf9b5368f"
@ -901,9 +910,12 @@
"@latus/build@1.x":
version "1.0.0"
resolved "http://npm.cha0sdev/@latus%2fbuild/-/build-1.0.0.tgz#901f5d311b38f8a1ffa2842f040e277d69d8200a"
integrity sha512-O8AggmKwlg7Q/ZhPt8PMA5+r9XkdHS+M5pdGXH9pTNRwJaghCt+vQ36bfR7ZUPPIEWF7SfrZjwpgWhKZ5NruLw==
resolved "http://npm.cha0sdev/@latus%2fbuild/-/build-1.0.0.tgz#6575bcdc7623866d16252b5e85c68895ff782ff4"
integrity sha512-U3kwiq5Zi6WdID5mYdo35x63VpNxUJU25wBvu7UAgF0hrdxbM15w6ankagq6oX9rykGQ5VLvi5Glh6Ul/3csGg==
dependencies:
"@babel/eslint-parser" "^7.13.10"
"@babel/plugin-proposal-class-properties" "^7.12.13"
"@babel/plugin-proposal-private-methods" "^7.12.13"
"@neutrinojs/airbnb" "^9.4.0"
"@neutrinojs/banner" "^9.4.0"
"@neutrinojs/copy" "^9.4.0"
@ -3529,6 +3541,14 @@ eslint-rule-composer@^0.3.0:
resolved "http://npm.cha0sdev/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
eslint-scope@5.1.0:
version "5.1.0"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-scope@^4.0.3:
version "4.0.3"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"

View File

@ -23,6 +23,9 @@
"test.js.map"
],
"dependencies": {
"@babel/eslint-parser": "^7.13.10",
"@babel/plugin-proposal-class-properties": "^7.12.13",
"@babel/plugin-proposal-private-methods": "^7.12.13",
"@neutrinojs/airbnb": "^9.4.0",
"@neutrinojs/banner": "^9.4.0",
"@neutrinojs/copy": "^9.4.0",

View File

@ -8,6 +8,16 @@ const config = {
'/*',
'!/src',
],
parser: "@babel/eslint-parser",
parserOptions: {
requireConfigFile: false,
babelOptions: {
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
],
},
},
rules: {
'babel/object-curly-spacing': 'off',
'brace-style': ['error', 'stroustrup'],

View File

@ -30,6 +30,15 @@
semver "^5.4.1"
source-map "^0.5.0"
"@babel/eslint-parser@^7.13.10":
version "7.13.10"
resolved "http://npm.cha0sdev/@babel%2feslint-parser/-/eslint-parser-7.13.10.tgz#e272979914f36bb6cea144c14c32bb51632696dd"
integrity sha512-/I1HQ3jGPhIpeBFeI3wO9WwWOnBYpuR0pX0KlkdGcRQAVX9prB/FCS2HBpL7BiFbzhny1YCiBH8MTZD2jJa7Hg==
dependencies:
eslint-scope "5.1.0"
eslint-visitor-keys "^1.3.0"
semver "^6.3.0"
"@babel/generator@^7.12.13", "@babel/generator@^7.12.15":
version "7.12.15"
resolved "http://npm.cha0sdev/@babel%2fgenerator/-/generator-7.12.15.tgz#4617b5d0b25cc572474cc1aafee1edeaf9b5368f"
@ -39,6 +48,17 @@
jsesc "^2.5.1"
source-map "^0.5.0"
"@babel/helper-create-class-features-plugin@^7.12.13":
version "7.12.16"
resolved "http://npm.cha0sdev/@babel%2fhelper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.16.tgz#955d5099fd093e5afb05542190f8022105082c61"
integrity sha512-KbSEj8l9zYkMVHpQqM3wJNxS1d9h3U9vm/uE5tpjMbaj3lTp+0noe3KPsV5dSD9jxKnf9jO9Ip9FX5PKNZCKow==
dependencies:
"@babel/helper-function-name" "^7.12.13"
"@babel/helper-member-expression-to-functions" "^7.12.16"
"@babel/helper-optimise-call-expression" "^7.12.13"
"@babel/helper-replace-supers" "^7.12.13"
"@babel/helper-split-export-declaration" "^7.12.13"
"@babel/helper-function-name@^7.12.13":
version "7.12.13"
resolved "http://npm.cha0sdev/@babel%2fhelper-function-name/-/helper-function-name-7.12.13.tgz#93ad656db3c3c2232559fd7b2c3dbdcbe0eb377a"
@ -55,7 +75,7 @@
dependencies:
"@babel/types" "^7.12.13"
"@babel/helper-member-expression-to-functions@^7.12.13":
"@babel/helper-member-expression-to-functions@^7.12.13", "@babel/helper-member-expression-to-functions@^7.12.16":
version "7.12.16"
resolved "http://npm.cha0sdev/@babel%2fhelper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.16.tgz#41e0916b99f8d5f43da4f05d85f4930fa3d62b22"
integrity sha512-zYoZC1uvebBFmj1wFAlXwt35JLEgecefATtKp20xalwEK8vHAixLBXTGxNrVGEmTT+gzOThUgr8UEdgtalc1BQ==
@ -148,6 +168,22 @@
resolved "http://npm.cha0sdev/@babel%2fparser/-/parser-7.12.16.tgz#cc31257419d2c3189d394081635703f549fc1ed4"
integrity sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw==
"@babel/plugin-proposal-class-properties@^7.12.13":
version "7.12.13"
resolved "http://npm.cha0sdev/@babel%2fplugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.13.tgz#3d2ce350367058033c93c098e348161d6dc0d8c8"
integrity sha512-8SCJ0Ddrpwv4T7Gwb33EmW1V9PY5lggTO+A8WjyIwxrSHDUyBw4MtF96ifn1n8H806YlxbVCoKXbbmzD6RD+cA==
dependencies:
"@babel/helper-create-class-features-plugin" "^7.12.13"
"@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-proposal-private-methods@^7.12.13":
version "7.12.13"
resolved "http://npm.cha0sdev/@babel%2fplugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.13.tgz#ea78a12554d784ecf7fc55950b752d469d9c4a71"
integrity sha512-sV0V57uUwpauixvR7s2o75LmwJI6JECwm5oPUY5beZB1nBl2i37hc7CJGqB5G+58fur5Y6ugvl3LRONk5x34rg==
dependencies:
"@babel/helper-create-class-features-plugin" "^7.12.13"
"@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-transform-modules-commonjs@^7.12.1":
version "7.12.13"
resolved "http://npm.cha0sdev/@babel%2fplugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.13.tgz#5043b870a784a8421fa1fd9136a24f294da13e50"
@ -1709,6 +1745,14 @@ eslint-rule-composer@^0.3.0:
resolved "http://npm.cha0sdev/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
eslint-scope@5.1.0:
version "5.1.0"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-scope@^4.0.3:
version "4.0.3"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"
@ -3845,7 +3889,7 @@ schema-utils@^2.6.5:
resolved "http://npm.cha0sdev/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
semver@^6.0.0:
semver@^6.0.0, semver@^6.3.0:
version "6.3.0"
resolved "http://npm.cha0sdev/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==

View File

@ -35,6 +35,15 @@
semver "^5.4.1"
source-map "^0.5.0"
"@babel/eslint-parser@^7.13.10":
version "7.13.10"
resolved "http://npm.cha0sdev/@babel%2feslint-parser/-/eslint-parser-7.13.10.tgz#e272979914f36bb6cea144c14c32bb51632696dd"
integrity sha512-/I1HQ3jGPhIpeBFeI3wO9WwWOnBYpuR0pX0KlkdGcRQAVX9prB/FCS2HBpL7BiFbzhny1YCiBH8MTZD2jJa7Hg==
dependencies:
eslint-scope "5.1.0"
eslint-visitor-keys "^1.3.0"
semver "^6.3.0"
"@babel/generator@^7.12.13", "@babel/generator@^7.12.15":
version "7.12.15"
resolved "http://npm.cha0sdev/@babel%2fgenerator/-/generator-7.12.15.tgz#4617b5d0b25cc572474cc1aafee1edeaf9b5368f"
@ -841,9 +850,12 @@
"@latus/build@1.x":
version "1.0.0"
resolved "http://npm.cha0sdev/@latus%2fbuild/-/build-1.0.0.tgz#901f5d311b38f8a1ffa2842f040e277d69d8200a"
integrity sha512-O8AggmKwlg7Q/ZhPt8PMA5+r9XkdHS+M5pdGXH9pTNRwJaghCt+vQ36bfR7ZUPPIEWF7SfrZjwpgWhKZ5NruLw==
resolved "http://npm.cha0sdev/@latus%2fbuild/-/build-1.0.0.tgz#6575bcdc7623866d16252b5e85c68895ff782ff4"
integrity sha512-U3kwiq5Zi6WdID5mYdo35x63VpNxUJU25wBvu7UAgF0hrdxbM15w6ankagq6oX9rykGQ5VLvi5Glh6Ul/3csGg==
dependencies:
"@babel/eslint-parser" "^7.13.10"
"@babel/plugin-proposal-class-properties" "^7.12.13"
"@babel/plugin-proposal-private-methods" "^7.12.13"
"@neutrinojs/airbnb" "^9.4.0"
"@neutrinojs/banner" "^9.4.0"
"@neutrinojs/copy" "^9.4.0"
@ -2970,6 +2982,14 @@ eslint-rule-composer@^0.3.0:
resolved "http://npm.cha0sdev/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
eslint-scope@5.1.0:
version "5.1.0"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-scope@^4.0.3:
version "4.0.3"
resolved "http://npm.cha0sdev/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"