Skip to content

Commit 0b0dd56

Browse files
committed
코드 린트, typescript 설정, 라이브러리 세팅
1 parent d4757d9 commit 0b0dd56

6 files changed

+6173
-0
lines changed

.eslintrc.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['airbnb-typescript'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint', 'react'],
6+
parserOptions: {
7+
project: './tsconfig.json',
8+
},
9+
env: {
10+
"browser": true,
11+
"es6": true,
12+
"node": true
13+
},
14+
"ecmaFeatures": {
15+
"jsx": true,
16+
},
17+
rules: {
18+
"no-undef": "off",
19+
"react/jsx-props-no-spreading": "off",
20+
// "class-methods-use-this": "off",
21+
// "@typescript-eslint/no-unused-vars": ["warn"],
22+
// "@typescript-eslint/quotes": "off",
23+
// "max-len": "off",
24+
// "@typescript-eslint/no-unused-vars": "off",
25+
// "arrow-parens": "off",
26+
// "@typescript-eslint/naming-convention": "off",
27+
// "import/no-useless-path-segments": "off",
28+
// "import/no-cycle": "off",
29+
// "no-return-await": "off",
30+
// "no-nested-ternary": "off",
31+
// "consistent-return": "off",
32+
// "prefer-destructuring": "off",
33+
},
34+
settings: {
35+
"import/resolver": {
36+
"node": {
37+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
38+
}
39+
}
40+
}
41+
};

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
.env*
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*

next-env.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
declare module '*.scss' {
2+
const content: {[className: string]: string};
3+
export default content;
4+
}
5+
6+
declare module '*.sass' {
7+
const content: {[className: string]: string};
8+
export default content;
9+
}
10+
11+
declare module '*.module.css' {
12+
const content: {[className: string]: string};
13+
export default content;
14+
}

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "exion",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start"
9+
},
10+
"dependencies": {
11+
"@apollo/client": "^3.2.0",
12+
"graphql": "^15.3.0",
13+
"next": "9.5.3",
14+
"react": "16.13.1",
15+
"react-dom": "16.13.1"
16+
},
17+
"devDependencies": {
18+
"@types/node": "^14.11.1",
19+
"@types/react": "^16.9.49",
20+
"@typescript-eslint/eslint-plugin": "^4.0.1",
21+
"@typescript-eslint/parser": "^4.1.1",
22+
"eslint": "^7.9.0",
23+
"eslint-config-airbnb-typescript": "^10.0.0",
24+
"eslint-plugin-import": "^2.22.0",
25+
"eslint-plugin-jsx-a11y": "^6.3.1",
26+
"eslint-plugin-react": "^7.20.3",
27+
"eslint-plugin-react-hooks": "^4.0.8",
28+
"typescript": "^4.0.2"
29+
}
30+
}

tsconfig.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"components/*": [
6+
"components/*"
7+
],
8+
"lib/*": [
9+
"lib/*"
10+
],
11+
},
12+
"jsx": "preserve",
13+
"lib": [
14+
"dom",
15+
"es6",
16+
"es5"
17+
],
18+
"allowSyntheticDefaultImports": true,
19+
"target": "es5",
20+
"allowJs": true,
21+
"skipLibCheck": true,
22+
"strict": false,
23+
"forceConsistentCasingInFileNames": true,
24+
"noEmit": true,
25+
"esModuleInterop": true,
26+
"module": "esnext",
27+
"moduleResolution": "node",
28+
"resolveJsonModule": true,
29+
"isolatedModules": true
30+
},
31+
"include": [
32+
"next-env.d.ts",
33+
"**/*.ts",
34+
"**/*.tsx"
35+
],
36+
"exclude": [
37+
"node_modules"
38+
]
39+
}

0 commit comments

Comments
 (0)