Skip to content

Commit

Permalink
fix: reinstall node modules and update eslint config
Browse files Browse the repository at this point in the history
- to resolve failed deployment
- resolves react/no-unknown-property for "jsx" and "global"

Ref: vercel/next.js#40269
  • Loading branch information
mohitb35 committed Jan 25, 2023
1 parent 96d87d6 commit 6a89747
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 597 deletions.
59 changes: 32 additions & 27 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,48 @@ module.exports = {
es2020: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
// 'airbnb',
],
parser: '@typescript-eslint/parser',
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module',
sourceType: "module",
},
plugins: [
'react',
'@typescript-eslint',
'i18next'
],
plugins: ["react", "@typescript-eslint", "i18next"],
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'no-use-before-define': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }],
'react/jsx-indent': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'react/jsx-no-literals': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty-pattern': 'off',
'react/display-name': 'off',
'react/no-find-dom-node': 'off',
'i18next/no-literal-string': 'off'
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"no-use-before-define": "off",
"react/jsx-filename-extension": [
1,
{ extensions: [".js", ".jsx", ".tsx"] },
],
"react/jsx-indent": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"react/jsx-no-literals": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"no-empty-pattern": "off",
"react/display-name": "off",
"react/no-find-dom-node": "off",
"i18next/no-literal-string": "off",
"react/no-unknown-property": [
2,
{
ignore: ["jsx", "global"],
},
],
},
globals: {
React: 'writable',
React: "writable",
},
};
Loading

0 comments on commit 6a89747

Please sign in to comment.