Skip to content

Commit

Permalink
Merge pull request #183 from rainbow-me/bump-deps
Browse files Browse the repository at this point in the history
bump deps
  • Loading branch information
greg-schrammel authored Aug 28, 2023
2 parents d7c6452 + 6e28251 commit b1776fe
Show file tree
Hide file tree
Showing 5 changed files with 3,003 additions and 1,924 deletions.
114 changes: 59 additions & 55 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,92 @@
/** @type {import("eslint").ESLint.ConfigData} */
module.exports = {
env: {
es2022: true,
browser: true,
node: true,
},

parser: '@typescript-eslint/parser',
parser: "@typescript-eslint/parser",

parserOptions: {
sourceType: 'module',
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},

extends: [
'eslint:recommended',
'plugin:eslint-comments/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jest/recommended',
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",

/**
* For eslint-plugin-import
*
* @see https://github.com/import-js/eslint-plugin-import/blob/d45fe21bfa09f61402c68c3d271250d95f9c9ed3/README.md?plain=1#L156
*/
'plugin:import/recommended',
'plugin:import/typescript',
"plugin:import/recommended",
"plugin:import/typescript",

/**
* Last, must override thing
*/
'prettier',
"prettier",
],

settings: {
'react': {
version: 'detect',
react: {
version: "detect",
},
'import/resolver': {
'typescript': true,
'node': true,
'babel-module': true,
"import/resolver": {
typescript: true,
node: true,
"babel-module": true,
},
},

rules: {
'prefer-object-spread': 'error',
'no-duplicate-imports': 'error',
'no-multi-assign': 'error',
'no-prototype-builtins': 'warn', // this one is probably fine
'no-irregular-whitespace': 'warn', // not a big deal most of the time
'spaced-comment': 'warn', // TODO
'no-var': 'warn', // TODO
'prefer-const': 'warn', // TODO
'prefer-rest-params': 'warn', // TODO
'prefer-spread': 'warn', // TODO
'no-async-promise-executor': 'warn', // TODO
'no-await-in-loop': 'warn', // TODO
'no-promise-executor-return': 'warn', // TODO
'require-atomic-updates': 'warn', // TODO
'default-param-last': 'warn', // TODO
'no-param-reassign': 'warn', // TODO
'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }], // TODO
'no-nested-ternary': 'warn', // TODO
'no-unneeded-ternary': 'warn', // TODO
"prefer-object-spread": "error",
"no-duplicate-imports": "error",
"no-multi-assign": "error",
"no-prototype-builtins": "warn", // this one is probably fine
"no-irregular-whitespace": "warn", // not a big deal most of the time
"spaced-comment": "warn", // TODO
"no-var": "warn", // TODO
"prefer-const": "warn", // TODO
"prefer-rest-params": "warn", // TODO
"prefer-spread": "warn", // TODO
"no-async-promise-executor": "warn", // TODO
"no-await-in-loop": "warn", // TODO
"no-promise-executor-return": "warn", // TODO
"require-atomic-updates": "warn", // TODO
"default-param-last": "warn", // TODO
"no-param-reassign": "warn", // TODO
"no-plusplus": ["warn", { allowForLoopAfterthoughts: true }], // TODO
"no-nested-ternary": "warn", // TODO
"no-unneeded-ternary": "warn", // TODO

'import/no-default-export': 'warn', // TODO
"import/no-default-export": "warn", // TODO

'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-expect-error': 'allow-with-description' }], // TODO
'@typescript-eslint/no-explicit-any': 'warn', // TODO
'@typescript-eslint/no-inferrable-types': 'warn', // TODO
'@typescript-eslint/no-empty-function': 'warn', // TODO
'@typescript-eslint/no-var-requires': 'warn', // TODO
'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn', // TODO MUST FIX
"@typescript-eslint/ban-ts-comment": [
"warn",
{ "ts-expect-error": "allow-with-description" },
], // TODO
"@typescript-eslint/no-explicit-any": "warn", // TODO
"@typescript-eslint/no-inferrable-types": "warn", // TODO
"@typescript-eslint/no-empty-function": "warn", // TODO
"@typescript-eslint/no-var-requires": "warn", // TODO
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn", // TODO MUST FIX

'react/jsx-props-no-spreading': 'warn',
'react/prop-types': 'off',
'react/display-name': 'warn', // TODO easy fix
"react/jsx-props-no-spreading": "warn",
"react/prop-types": "off",
"react/display-name": "warn", // TODO easy fix

// mimic default eslint
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
"eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],

/**
* @see https://typescript-eslint.io/docs/linting/troubleshooting/#eslint-plugin-import
Expand All @@ -94,13 +98,13 @@ module.exports = {
* TypeScript, so we recommend that you only run them at CI/push time, to
* lessen the local performance burden."
*/
'import/named': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-named-as-default': 'off', // TODO
'import/no-cycle': 'off', // biggest offender, but see https://github.com/rainbow-me/eslint-config-rainbow/issues/3
'import/no-unused-modules': 'off', // TODO
'import/no-deprecated': 'off', // TODO
"import/named": "off",
"import/namespace": "off",
"import/default": "off",
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off", // TODO
"import/no-cycle": "off", // biggest offender, but see https://github.com/rainbow-me/eslint-config-rainbow/issues/3
"import/no-unused-modules": "off", // TODO
"import/no-deprecated": "off", // TODO
},
};
3 changes: 1 addition & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20

- name: install
run: yarn
Expand All @@ -34,4 +34,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: yarn semantic-release

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20

- name: install
run: yarn
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@
".eslintrc.js"
],
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.52.0",
"@typescript-eslint/parser": "5.52.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-babel-module": "5.3.1",
"eslint-import-resolver-typescript": "3.5.0",
"@typescript-eslint/eslint-plugin": "6.4.1",
"@typescript-eslint/parser": "6.4.1",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-babel-module": "5.3.2",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "26.8.7",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jest": "27.2.3",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0"
},
"devDependencies": {
"@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3",
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@semantic-release/git": "10.0.1",
"commitlint": "17.0.3",
"eslint": "8.22.0",
"husky": "8.0.1",
"commitlint": "17.7.1",
"eslint": "8.48.0",
"husky": "8.0.3",
"is-ci": "3.0.1",
"jest": "28.1.3",
"jest": "29.6.4",
"react": "18.2.0",
"semantic-release": "19.0.5",
"typescript": "4.9.5"
"semantic-release": "21.1.1",
"typescript": "5.1"
},
"peerDependencies": {
"eslint": "*",
Expand Down
Loading

0 comments on commit b1776fe

Please sign in to comment.