Eslint
This commit is contained in:
parent
0539f876f6
commit
edb7d67547
3 changed files with 1105 additions and 3 deletions
11
.eslintrc.cjs
Normal file
11
.eslintrc.cjs
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* eslint-env node */
|
||||
module.exports = {
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint'],
|
||||
root: true,
|
||||
ignorePatterns: ["babel.config.js", "jest.config.js", "node_modules/"],
|
||||
rules: {
|
||||
"@typescript-eslint/explicit-function-return-type": "error"
|
||||
}
|
||||
};
|
1089
package-lock.json
generated
1089
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -6,7 +6,8 @@
|
|||
"start": "expo start",
|
||||
"android": "expo start --android",
|
||||
"ios": "expo start --ios",
|
||||
"web": "expo start --web"
|
||||
"web": "expo start --web",
|
||||
"lint": "tsc --noEmit && eslint --ext .js,.jsx,.ts,.tsx ./"
|
||||
},
|
||||
"dependencies": {
|
||||
"expo": "~49.0.15",
|
||||
|
@ -17,7 +18,10 @@
|
|||
"devDependencies": {
|
||||
"@babel/core": "^7.20.0",
|
||||
"@types/react": "~18.2.14",
|
||||
"typescript": "^5.1.3"
|
||||
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||
"@typescript-eslint/parser": "^6.14.0",
|
||||
"eslint": "^8.55.0",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue