Skip to content

Commit e100b00

Browse files
committed
feat: packages/react-native eslint 적용
1 parent 927e7c0 commit e100b00

File tree

14 files changed

+913
-79
lines changed

14 files changed

+913
-79
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.workingDirectories": [{ "pattern": "./packages/*/" }]
3+
}

.yarn/install-state.gz

179 KB
Binary file not shown.

packages/react-native/.eslintrc.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
module.exports = {
22
root: true,
3-
extends: '@react-native',
3+
extends: [
4+
'eslint:recommended',
5+
'airbnb',
6+
'airbnb/hooks',
7+
'plugin:@typescript-eslint/recommended',
8+
'plugin:prettier/recommended',
9+
],
10+
parser: '@typescript-eslint/parser',
11+
parserOptions: {
12+
requireConfigFile: false,
13+
},
14+
plugins: ['jest'],
15+
rules: {
16+
'react/react-in-jsx-scope': 'off',
17+
'import/extensions': 'off',
18+
'react/jsx-filename-extension': 'off',
19+
'import/no-unresolved': 'off',
20+
'react-hooks/exhaustive-deps': 'warn',
21+
},
22+
ignorePatterns: [
23+
'index.js',
24+
'metro.config.js',
25+
'babel.config.js',
26+
'tailwind.config.js',
27+
],
428
};

packages/react-native/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ yarn-error.log
7272
!.yarn/releases
7373
!.yarn/sdks
7474
!.yarn/versions
75+
76+
.cache

packages/react-native/.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "all",
6+
"printWidth": 80,
7+
"endOfLine": "auto"
8+
}

packages/react-native/.prettierrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-native/__tests__/App.test.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/react-native/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {babelConfig} = require('tailwind-config');
1+
const { babelConfig } = require('tailwind-config');
22

33
module.exports = {
44
...babelConfig,

packages/react-native/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/**
2-
* @format
3-
*/
4-
5-
import {AppRegistry} from 'react-native';
6-
import App from './App';
7-
import {name as appName} from './app.json';
1+
import { AppRegistry } from 'react-native';
2+
import App from './src/App';
3+
import { name as appName } from './app.json';
84

95
AppRegistry.registerComponent(appName, () => App);

packages/react-native/metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
2+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
33
const config = {
44
watchFolders: [path.resolve(__dirname, '../../')],
55
};

0 commit comments

Comments
 (0)