forked from owncloud/cdperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
36 lines (35 loc) · 927 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
const sharedExtends = [
require.resolve('./src/prettier.js'),
require.resolve('./src/eslint.js'),
require.resolve('./src/import.js'),
require.resolve('./src/turbo.js'),
require.resolve('./src/simple-import-sort.js')
]
module.exports = {
extends: [
require.resolve('./src/airbnb-base.js'),
...sharedExtends
],
ignorePatterns: ['build.mjs', 'turbowatch.ts', 'vitest.config.ts'],
overrides: [
{
files: ['*.ts'],
extends: [
require.resolve('./src/airbnb-base.js'),
require.resolve('./src/airbnb-typescript-base.js'),
require.resolve('./src/no-relative-import-paths.js'),
require.resolve('./src/relative-imports-when-same-folder.js'),
...sharedExtends
],
parserOptions: {
project: './tsconfig.json'
}
},
{
files: ['*.json'],
extends: [
require.resolve('./src/json-files.js')
]
}
]
}