Skip to content

Commit

Permalink
Merge pull request #120 from elsoul/fix/eslint
Browse files Browse the repository at this point in the history
add nextjs webapp to expo packages
  • Loading branch information
KishiTheMechanic authored Sep 10, 2023
2 parents a0d8609 + a29f4b7 commit 355f9d5
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 355f9d5

Please sign in to comment.