forked from yamadashy/tech-blog-rss-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (35 loc) · 814 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
36
37
38
'use strict';
module.exports = {
root: true,
env: {
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/warnings',
'plugin:import/errors',
'prettier',
],
plugins: ['@typescript-eslint', 'prettier', 'import'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
rules: {
'prettier/prettier': 'warn',
// plugin import
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
overrides: [
// TypeScript系ファイルへのルールを設定
{
files: ['**/*.js'],
extends: ['eslint:recommended'],
},
],
};