-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.js
41 lines (41 loc) · 1.14 KB
/
base.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
module.exports = {
plugins: [
// https://github.com/jest-community/eslint-plugin-jest
"jest",
// '@typescript-eslint' in "airbnb-typescript",
],
extends: [
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base
'airbnb-base',
// https://github.com/iamturns/eslint-config-airbnb-typescript
"airbnb-typescript/base",
// https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin
"plugin:@typescript-eslint/recommended",
// https://github.com/jest-community/eslint-plugin-jest
"plugin:jest/recommended",
// https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
"plugin:prettier/recommended",
],
env: {
node: true,
es2022: true,
jest: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
ecmaVersion: "latest",
project: "./tsconfig.json",
},
rules: {
"no-use-before-define": [
"error",
{ functions: false, classes: true, variables: true },
],
},
settings: {
jest: {
version: require('jest/package.json').version,
},
},
};