-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
39 lines (38 loc) · 809 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const base = require("./lib/base");
const next = require("./lib/next.js");
const react = require("./lib/react.js");
module.exports = {
extends: ["airbnb", "airbnb/hooks", "plugin:prettier/recommended"],
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
jest: true,
},
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
plugins: ["simple-import-sort", "import"],
rules: {
...base,
...next,
...react,
},
settings: {
react: {
// Tells eslint-plugin-react to automatically detect the version of React to use ...
version: "detect",
},
"import/resolver": {
alias: {
map: [["@", "./src"]],
extensions: [".js", ".jsx"],
},
},
},
};