Skip to content

Commit 6a589c7

Browse files
committedJun 8, 2022
chore: config files
1 parent 37eaedf commit 6a589c7

6 files changed

+4395
-338
lines changed
 

‎.babelrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"@babel/preset-react"
4+
],
5+
"plugins": ["@babel/plugin-syntax-jsx"]
6+
}

‎.eslintrc.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"jest": true
6+
},
7+
"parser": "@babel/eslint-parser",
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"ecmaVersion": 2018,
13+
"sourceType": "module"
14+
},
15+
"extends": ["airbnb", "plugin:react/recommended"],
16+
"plugins": ["react"],
17+
"rules": {
18+
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
19+
"react/react-in-jsx-scope": "off",
20+
"import/no-unresolved": "off",
21+
"no-shadow": "off"
22+
},
23+
"ignorePatterns": [
24+
"dist/",
25+
"build/"
26+
]
27+
}

‎package-lock.json

+4,343-329
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,25 @@
99
},
1010
"dependencies": {
1111
"react": "^18.0.0",
12-
"react-dom": "^18.0.0"
12+
"react-dom": "^18.0.0",
13+
"@vitejs/plugin-react": "^1.3.0",
14+
"vite": "^2.9.9"
1315
},
1416
"devDependencies": {
17+
"@babel/core": "^7.18.2",
18+
"@babel/eslint-parser": "^7.18.2",
19+
"@babel/plugin-syntax-jsx": "^7.17.12",
20+
"@babel/preset-react": "^7.17.12",
1521
"@types/react": "^18.0.0",
1622
"@types/react-dom": "^18.0.0",
17-
"@vitejs/plugin-react": "^1.3.0",
1823
"autoprefixer": "^10.4.7",
24+
"eslint": "^7.32.0",
25+
"eslint-config-airbnb": "^18.2.1",
26+
"eslint-plugin-import": "^2.26.0",
27+
"eslint-plugin-jsx-a11y": "^6.5.1",
28+
"eslint-plugin-react": "^7.30.0",
29+
"eslint-plugin-react-hooks": "^4.5.0",
1930
"postcss": "^8.4.14",
20-
"tailwindcss": "^3.0.24",
21-
"vite": "^2.9.9"
31+
"tailwindcss": "^3.0.24"
2232
}
2333
}

‎postcss.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module.exports = {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

‎vite.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [react()]
7-
})
6+
plugins: [react()],
7+
});

0 commit comments

Comments
 (0)
Please sign in to comment.