Skip to content

Commit

Permalink
Removed eslint package
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmathew900 committed Sep 22, 2024
1 parent 3c7fcf5 commit 0b231b2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 48 deletions.
32 changes: 3 additions & 29 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
const { mergeLeft, mergeDeepLeft } = require("ramda");
const { mergeDeepLeft } = require("ramda");

const commonConfiguration = require("./configs/eslint");

const nanosConfiguration = {
extends: [
"plugin:cypress/recommended",
"plugin:json/recommended",
"eslint:recommended",
"plugin:react/recommended",
`./configs/eslint/globals`,
`./configs/eslint/overrides`,
`./configs/eslint/imports/enforced`,
`./configs/eslint/react`,
`./configs/eslint/promise`,
"prettier",
],
};

const defaultConfigurations = mergeLeft(
nanosConfiguration,
commonConfiguration
);
const defaultConfigurations = require("./configs/eslint");

module.exports = mergeDeepLeft(
{
extends: [...defaultConfigurations.extends, "plugin:storybook/recommended"],
rules: {
"@bigbinary/neeto/no-missing-localization": "off",
"@bigbinary/neeto/file-name-and-export-name-standards": "off",
"@bigbinary/neeto/no-axios-import-outside-apis": "off",
"@bigbinary/neeto/use-neetoui-classes": "error",
"import/extensions": "off",
},
rules: { "import/extensions": "off" },
},
defaultConfigurations
);
13 changes: 5 additions & 8 deletions configs/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ module.exports = {
* unless you're sure of it.
*/
extends: [
"plugin:@bigbinary/neeto/recommended",
"plugin:cypress/recommended",
"plugin:json/recommended",
"eslint:recommended",
"plugin:react/recommended",
"./configs/eslint/globals",
"./configs/eslint/imports/order",
"./configs/eslint/overrides",
"./configs/eslint/imports/enforced",
"./configs/eslint/react",
"./configs/eslint/promise",
`./configs/eslint/globals`,
`./configs/eslint/overrides`,
`./configs/eslint/imports/enforced`,
`./configs/eslint/react`,
`./configs/eslint/promise`,
"prettier",
],
settings: {
Expand Down Expand Up @@ -52,7 +50,6 @@ module.exports = {
"sonarjs",
"security",
"xss",
"@bigbinary/neeto",
],
rules: {
// auto-fixable: Respect all Prettier rules and apply it.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"@babel/runtime": "^7.19.0",
"@babel/types": "^7.20.7",
"@bigbinary/babel-preset-neeto": "^1.0.7",
"@bigbinary/eslint-plugin-neeto": "^1.1.35",
"@bigbinary/neeto-cist": "^1.0.5",
"@honeybadger-io/react": "2.0.1",
"@rollup/plugin-alias": "^3.1.9",
Expand Down
4 changes: 2 additions & 2 deletions src/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export const _humanize = /*#__PURE__*/ nullSafe(humanize);
export const _snakeToCamelCase = /*#__PURE__*/ nullSafe(snakeToCamelCase);
export const _camelToSnakeCase = /*#__PURE__*/ nullSafe(camelToSnakeCase);
export const _capitalize = /*#__PURE__*/ nullSafe(capitalize);
// eslint-disable-next-line @bigbinary/neeto/use-camel-case-or-pascal-case-for-function-names

export const _hyphenate = (string, length) =>
isNil(string) ? string : hyphenate(string, length);
// eslint-disable-next-line @bigbinary/neeto/use-camel-case-or-pascal-case-for-function-names

export const _truncate = (string, length) =>
isNil(string) ? string : truncate(string, length);
36 changes: 28 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,6 @@
"@bigbinary/neeto-commons-frontend" "^2.0.63"
ramda "^0.29.0"

"@bigbinary/eslint-plugin-neeto@^1.1.35":
version "1.1.35"
resolved "https://registry.yarnpkg.com/@bigbinary/eslint-plugin-neeto/-/eslint-plugin-neeto-1.1.35.tgz#9cb41c8a2b9f31b0bea24a17c41f4b0038075b69"
integrity sha512-b4o3CriRAmUlfLooe8bJFg0z7JL4iT9W8CyHr9EqQxkvougJaVOh8SQFtRFxxByUdhQ9ZQzYTxuR7qHjzvmymA==

"@bigbinary/neeto-cist@^1.0.4", "@bigbinary/neeto-cist@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@bigbinary/neeto-cist/-/neeto-cist-1.0.5.tgz#726e13f9bacb67d407532be51469dadf05bcf55a"
Expand Down Expand Up @@ -5453,7 +5448,16 @@ string-length@^4.0.1:
char-regex "^1.0.2"
strip-ansi "^6.0.0"

"string-width-cjs@npm:string-width@^4.2.0", [email protected], string-width@^4.1.0, string-width@^4.2.0, string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2:
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

[email protected], string-width@^4.1.0, string-width@^4.2.0, string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -5504,7 +5508,14 @@ string.prototype.trimstart@^1.0.7:
define-properties "^1.2.0"
es-abstract "^1.22.1"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -6003,7 +6014,7 @@ which@^2.0.1:
dependencies:
isexe "^2.0.0"

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand All @@ -6021,6 +6032,15 @@ wrap-ansi@^6.2.0:
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
Expand Down

0 comments on commit 0b231b2

Please sign in to comment.