-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.js
47 lines (43 loc) · 1.32 KB
/
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
40
41
42
43
44
45
46
47
// This is a workaround for: https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-patch/modern-module-resolution');
const {mergeAndConcat} = require('merge-anything');
const babel = require('./src/babel');
const electron = require('./src/electron');
const eslint = require('./src/eslint');
const comments = require('./src/comments');
const getOffMyLawn = require('./src/get-off-my-lawn');
const imprt = require('./src/import');
const jest = require('./src/jest');
const json = require('./src/json');
const next = require('./src/next');
const node = require('./src/node');
const objects = require('./src/objects');
const prettier = require('./src/prettier');
const react = require('./src/react');
const reactNative = require('./src/react-native');
const security = require('./src/security');
const typescript = require('./src/typescript');
const unicorn = require('./src/unicorn');
const config = mergeAndConcat(
// Order of these doesn't matter.
comments,
babel,
electron,
eslint,
getOffMyLawn,
imprt,
jest,
json,
next,
node,
objects,
react,
reactNative,
security,
unicorn,
// These need to be listed last, and in this order, to override
// or modify rules in the various configs above, as needed.
typescript,
prettier
);
module.exports = config;