Correct ES Lint.
This commit is contained in:
24
.eslintrc.js
24
.eslintrc.js
@@ -1,24 +0,0 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2021: true,
|
||||
"react-native/react-native": true,
|
||||
},
|
||||
extends: ["eslint:recommended", "plugin:react/recommended"],
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
ecmaVersion: 12,
|
||||
sourceType: "module",
|
||||
},
|
||||
plugins: ["react", "react-native"],
|
||||
rules: {
|
||||
"react-native/no-unused-styles": 2,
|
||||
"react-native/split-platform-components": 2,
|
||||
//"react-native/no-inline-styles": 2,
|
||||
"react-native/no-color-literals": 2,
|
||||
"react-native/no-raw-text": 2,
|
||||
"react/prop-types": 0,
|
||||
},
|
||||
};
|
||||
10
eslint.config.js
Normal file
10
eslint.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// https://docs.expo.dev/guides/using-eslint/
|
||||
const { defineConfig } = require('eslint/config');
|
||||
const expoConfig = require("eslint-config-expo/flat");
|
||||
|
||||
module.exports = defineConfig([
|
||||
expoConfig,
|
||||
{
|
||||
ignores: ["dist/*"],
|
||||
}
|
||||
]);
|
||||
6394
package-lock.json
generated
6394
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -13,7 +13,8 @@
|
||||
"build:test:local:ios": "eas build --profile test --platform ios --local",
|
||||
"build:test:local:android": "eas build --profile test --platform android --local",
|
||||
"build:production:local:ios": "eas build --profile production --platform ios --local",
|
||||
"build:production:local:android": "eas build --profile production --platform android --local"
|
||||
"build:production:local:android": "eas build --profile production --platform android --local",
|
||||
"lint": "expo lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "^3.12.11",
|
||||
@@ -94,15 +95,14 @@
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-persist": "^6.0.0",
|
||||
"redux-saga": "^1.3.0",
|
||||
"reselect": "^5.1.1",
|
||||
"rxjs": "^7.8.2"
|
||||
"reselect": "^5.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.28.4",
|
||||
"babel-preset-expo": "~54.0.3",
|
||||
"eslint": "^9.36.0",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-native": "^5.0.0"
|
||||
"eslint": "^9.0.0",
|
||||
"eslint-config-expo": "~10.0.0",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"private": true,
|
||||
"name": "imexmobile",
|
||||
|
||||
Reference in New Issue
Block a user