Skip to content

Commit

Permalink
Cleanup dependencies and fixed eslint (#21)
Browse files Browse the repository at this point in the history
* Cleanup dependencies and fixed eslint

* Fix eslint config

* Fix tests

* Fix eslint

* Fixed tests

* Fix lockfile issue

* Fix tests
  • Loading branch information
ajmaln authored Nov 29, 2023
1 parent db82b8a commit 62e11ff
Show file tree
Hide file tree
Showing 8 changed files with 1,524 additions and 11,130 deletions.
35 changes: 15 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
module.exports = {
ignorePatterns: [
"!.scripts",
"initializers.*js",
"react-utils.*js",
"cypress-utils.*js",
"cypress-commands.*js",
"utils.*js",
"pure.*js",
"node_modules",
],
overrides: [
{
files: [".scripts/**/*"],
rules: {
"no-console": "off",
"import/extensions": "off",
},
const defaultConfigurations = require("@bigbinary/neeto-commons-frontend/configs/nanos/eslint/index.js");
const { mergeDeepLeft } = require("ramda");

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",
},
],
};
},
defaultConfigurations
);
2 changes: 1 addition & 1 deletion .neetoci/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ global_job_config:
- checkout
- neetoci-version node 18.12.0
- cache restore
- yarn install
- yarn install --frozen-lockfile
- cache store
jobs:
- name: CiChecks
Expand Down
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ module.exports = function (api) {
modules: false,
},
],
["@babel/preset-react", { development: isDevelopmentEnv || isTestEnv }],
].filter(Boolean),
plugins: [
"babel-plugin-macros",
Expand Down
2 changes: 1 addition & 1 deletion configs/scripts/jsdoc-builder/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "path";
import * as babelParser from "@babel/parser";
import { curry, __, mergeLeft } from "ramda";
import remarkParse from "remark-parse";
import unified from "unified";
import { unified } from "unified";

import {
ASTERISK,
Expand Down
1 change: 0 additions & 1 deletion jest-setup.js

This file was deleted.

3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ module.exports = {
clearMocks: true,
collectCoverage: false,
coverageDirectory: "coverage",
setupFilesAfterEnv: ["./jest-setup.js"],
testEnvironment: "jsdom",
testURL: "http://test.com",
moduleFileExtensions: [...defaults.moduleFileExtensions, "svg"],
moduleNameMapper: {
"^src(.*)$": path.resolve(__dirname, "src/$1"),
Expand Down
56 changes: 9 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,18 @@
"@babel/generator": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "7.17.10",
"@babel/preset-react": "7.16.7",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.19.0",
"@babel/types": "^7.20.7",
"@bigbinary/eslint-plugin-neeto": "^1.1.35",
"@bigbinary/neeto-cist": "^1.0.5",
"@bigbinary/neeto-commons-frontend": "^3.0.6",
"@honeybadger-io/react": "2.0.1",
"@rails/actioncable": "^7.0.3",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "6.5.16",
"@svgr/rollup": "^6.2.1",
"@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "12.1.3",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "13.5.0",
"antd": "4.24.3",
"autoprefixer": "^10.4.13",
"axios": "0.27.2",
"babel-jest": "27.0.6",
"babel-loader": "^8.2.5",
"babel-plugin-dynamic-import-node": "^2.3.3",
Expand All @@ -81,10 +67,8 @@
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"babel-preset-react": "6.24.1",
"babel-preset-typescript": "^7.0.0-alpha.19",
"css-loader": "4.3.0",
"cypress": "11.2.0",
"dayjs": "1.11.1",
"dompurify": "3.0.3",
"eslint": "8.14.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-cypress": "2.12.1",
Expand All @@ -95,50 +79,28 @@
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.5.0",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-unused-imports": "2.0.0",
"formik": "^2.2.9",
"eslint-plugin-xss": "^0.1.12",
"glob": "^10.3.10",
"husky": "^7.0.4",
"i18next": "22.5.1",
"i18next-browser-languagedetector": "^7.1.0",
"immer": "^10.0.3",
"jest": "27.5.1",
"js-logger": "^1.6.1",
"lint-staged": "^12.3.7",
"mixpanel-browser": "^2.45.0",
"mousetrap": "^1.6.5",
"mousetrap-global-bind": "^1.1.0",
"nock": "^13.3.2",
"platform": "1.3.6",
"postcss": "^8.4.17",
"postcss-import": "^15.0.0",
"postcss-loader": "^7.0.1",
"postcss-preset-env": "7.8.2",
"prettier": "2.6.2",
"prettier-plugin-tailwindcss": "0.1.10",
"qs": "^6.11.0",
"ramda": "^0.29.0",
"react": "^17.0.2",
"react-dom": "17.0.2",
"react-helmet": "^6.1.0",
"react-i18next": "12.3.1",
"react-query": "^3.39.2",
"react-router-dom": "5.3.1",
"react-toastify": "8.0.2",
"remark-parse": "^10.0.1",
"rollup": "^2.76.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-styles": "^4.0.0",
"sass": "^1.58.1",
"sass-loader": "10.0.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
"uuid": "^9.0.0",
"yup": "^0.32.11",
"zustand": "4.3.2"
"rollup-plugin-peer-deps-external": "^2.2.4"
},
"peerDependencies": {
"@bigbinary/neeto-commons-frontend": "^3.0.6",
"ramda": "^0.29.0"
}
}
Loading

0 comments on commit 62e11ff

Please sign in to comment.