-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (34 loc) · 813 Bytes
/
.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
/** @type {import('eslint/lib/shared/types').ConfigData} */
module.exports = {
ignorePatterns: "lib/*",
env: {
commonjs: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
// tsconfig の verbatimModuleSyntax の代わり
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-import-type-side-effects": "error",
"import/extensions": "off",
"import/prefer-default-export": "off",
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts"],
},
},
},
};