Skip to content

Commit 7cc35d5

Browse files
authored
Merge pull request #1 from Quilljou/master
chore: ♻️ next generation workflow
2 parents a00328d + ba3b30d commit 7cc35d5

15 files changed

+1865
-346
lines changed

.babelrc

+9-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
{
2-
"env": {
3-
"prod": {
4-
"presets": [
5-
["@babel/preset-env"],
6-
["@babel/preset-react"]
7-
],
8-
"plugins": [
9-
["@babel/plugin-proposal-object-rest-spread"],
10-
["no-debugging", {
11-
"console": true,
12-
"debugger": true,
13-
"alert": true
14-
}]
15-
]
16-
},
17-
"dev": {
18-
"presets": [
19-
["@babel/preset-env"],
20-
["@babel/preset-react"]
21-
],
22-
"plugins": [
23-
["@babel/plugin-proposal-object-rest-spread"]
24-
]
25-
}
26-
}
2+
"presets": [
3+
["@babel/preset-env"],
4+
["@babel/preset-react"],
5+
["@babel/preset-typescript"]
6+
],
7+
"plugins": [
8+
["@babel/plugin-proposal-object-rest-spread"],
9+
["@babel/plugin-proposal-class-properties"]
10+
]
2711
}

.eslintrc

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
2-
"root": true,
3-
"extends": "airbnb",
4-
"env": {
5-
"es6": true,
6-
"browser": true,
7-
"node": true,
8-
"jest": true
9-
},
10-
"plugins": [],
2+
"parser": "@typescript-eslint/parser",
3+
"extends": ["airbnb-typescript", "plugin:@typescript-eslint/recommended", "prettier", "prettier/react", "prettier/@typescript-eslint"],
4+
"plugins": ["@typescript-eslint"],
115
"parserOptions": {
12-
"ecmaVersion": 2018,
6+
"project": "./tsconfig.json",
137
"ecmaFeatures": {
14-
"impliedStrict": true
15-
},
16-
"sourceType": "module"
8+
"jsx": true
9+
}
10+
},
11+
"rules": {
12+
"react/prefer-stateless-function": 0
1713
}
1814
}

.lintstagedrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"**/*.{ts,tsx,js,jsx}": [
3+
"eslint --fix",
4+
"git add"
5+
]
6+
}

.prettierignore

-1
This file was deleted.

.prettierrc

-9
This file was deleted.

0 commit comments

Comments
 (0)