-
Notifications
You must be signed in to change notification settings - Fork 762
/
.eslintrc.js
62 lines (61 loc) · 1.69 KB
/
.eslintrc.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const path = require('node:path');
module.exports = {
root: true,
env: {
'shared-node-browser': true,
es6: true,
es2017: true,
},
globals: {
File: true,
Blob: true,
globalThis: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: { configFile: path.join(__dirname, 'babel.config.js') },
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
impliedStrict: true,
},
},
extends: ['eslint-config-airbnb-base', 'prettier'],
plugins: ['eslint-plugin-prettier', 'prettier'],
rules: {
'import/order': [
'error',
{
groups: [
['builtin', 'external', 'internal'],
['parent', 'sibling', 'index'],
],
'newlines-between': 'always',
},
],
'import/extensions': [
'error',
'always',
{
ignorePackages: true,
},
],
'import/no-unresolved': [
2,
{
ignore: [
'^@swagger-api/apidom-reference/configuration/empty$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1/selectors/\\$anchor$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1/selectors/uri$',
'^@swagger-api/apidom-reference/resolve/resolvers/file$',
'^@swagger-api/apidom-reference/resolve/strategies/openapi-3-1$',
'^@swagger-api/apidom-reference/parse/parsers/binary$',
],
},
],
'prettier/prettier': 'error',
'no-param-reassign': 0, // needs to be eliminated in future
'no-use-before-define': [2, 'nofunc'], // needs to be eliminated in future
},
};