Skip to content

Commit

Permalink
refactor: migrate lint to expo lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jul 15, 2024
1 parent 6788b83 commit d972b32
Show file tree
Hide file tree
Showing 6 changed files with 695 additions and 471 deletions.
6 changes: 2 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ const path = require('path');

module.exports = {
root: true,
extends: [
'@dooboo/eslint-config-react-native',
'plugin:i18n-json/recommended',
],
extends: ['expo', 'prettier', 'plugin:i18n-json/recommended'],
plugins: ['prettier'],
rules: {
'eslint-comments/no-unlimited-disable': 0,
'eslint-comments/no-unused-disable': 0,
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@dooboo/eslint-config-react-native": "^1.4.3",
"@emotion/babel-plugin": "^11.11.0",
"@mmomtchev/expo-android-localized-app-name": "^1.0.1",
"@testing-library/jest-native": "^5.4.3",
Expand All @@ -85,6 +84,8 @@
"commitlint-plugin-function-rules": "^4.0.0",
"dotenv-cli": "^7.4.2",
"eslint": "^8.57.0",
"eslint-config-expo": "^7.1.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-i18n-json": "^4.0.0",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down
1 change: 0 additions & 1 deletion test/src/apis/sample.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('testing sample api', () => {
const onResponse = jest.fn();
const onError = jest.fn();

// eslint-disable-next-line jest/valid-expect-in-promise
sample({})
.then(onResponse)
.catch(onError)
Expand Down
1 change: 0 additions & 1 deletion test/testSetupAfterEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ import {cleanup} from '@testing-library/react-native';
afterEach(cleanup);

process.on('unhandledRejection', (err) => {
// eslint-disable-next-line jest/no-jasmine-globals
fail(err);
});
Loading

0 comments on commit d972b32

Please sign in to comment.