Skip to content

Commit

Permalink
add nextjs webapp to expo packages
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Sep 10, 2023
1 parent a0d8609 commit a29f4b7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/templates/init/eslintrc.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,40 @@ export const eslintrcJson = async (appName: string, template: string) => {
],
},
},
{
files: ['./webapp/**/*.ts', './webapp/**/*.tsx'],
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
env: {
browser: true,
es2021: true,
},
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-ts-comment': [
'off',
{
'ts-ignore': 'allow-with-description',
},
],
},
},
],
}
} else if (
Expand Down

0 comments on commit a29f4b7

Please sign in to comment.