Skip to content

Commit 88a99df

Browse files
authored
Merge pull request #2 from saseungmin/project-initial-settings
Initial project settings
2 parents d505ac7 + bf4956b commit 88a99df

File tree

12 files changed

+13833
-0
lines changed

12 files changed

+13833
-0
lines changed

.eslintrc.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'plugin:react/recommended',
9+
'airbnb',
10+
],
11+
globals: {
12+
Atomics: 'readonly',
13+
SharedArrayBuffer: 'readonly',
14+
context: 'readonly',
15+
Feature: 'readonly',
16+
Scenario: 'readonly',
17+
actor: 'readonly',
18+
given: 'readonly',
19+
},
20+
parserOptions: {
21+
ecmaFeatures: {
22+
jsx: true,
23+
},
24+
ecmaVersion: 11,
25+
sourceType: 'module',
26+
},
27+
plugins: [
28+
'react',
29+
],
30+
rules: {
31+
indent: ['error', 2],
32+
'no-trailing-spaces': 'error',
33+
curly: 'error',
34+
'brace-style': 'error',
35+
'no-multi-spaces': 'error',
36+
'space-infix-ops': 'error',
37+
'space-unary-ops': 'error',
38+
'no-whitespace-before-property': 'error',
39+
'func-call-spacing': 'error',
40+
'space-before-blocks': 'error',
41+
'keyword-spacing': ['error', { before: true, after: true }],
42+
'comma-spacing': ['error', { before: false, after: true }],
43+
'comma-style': ['error', 'last'],
44+
'comma-dangle': ['error', 'always-multiline'],
45+
'space-in-parens': ['error', 'never'],
46+
'block-spacing': 'error',
47+
'array-bracket-spacing': ['error', 'never'],
48+
'object-curly-spacing': ['error', 'always'],
49+
'key-spacing': ['error', { mode: 'strict' }],
50+
'arrow-spacing': ['error', { before: true, after: true }],
51+
'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }],
52+
'react/prop-types': 'off',
53+
'linebreak-style': 'off',
54+
'no-proto': 'off',
55+
},
56+
};

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Mac OS x
2+
.DS_*
3+
4+
## VS Code
5+
.vscode
6+
7+
## Node.js
8+
node_modules
9+
10+
## Jest
11+
coverage

babel.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
node: 'current',
8+
},
9+
},
10+
],
11+
'@babel/preset-react',
12+
],
13+
};

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>index <%= env %></title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="/main.js"></script>
10+
</body>
11+
</html>

jest.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
setupFilesAfterEnv: [
3+
'given2/setup',
4+
'jest-plugin-context/setup',
5+
'./jest.setup',
6+
],
7+
coverageThreshold: {
8+
global: {
9+
branches: 100,
10+
functions: 100,
11+
lines: 100,
12+
statements: 100,
13+
},
14+
},
15+
};

jest.setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom';

0 commit comments

Comments
 (0)