forked from ics-creative/project-japanese-proofreading
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (31 loc) · 815 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
},
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"prettier",
],
plugins: ["prettier", "@typescript-eslint"],
rules: {
"no-unused-vars": "off",
// TypeScript側のeslintで未使用のvarをエラー
"@typescript-eslint/no-unused-vars": 1,
"sort-keys": 0,
"no-console": 0,
"func-style": [2, "expression", { allowArrowFunctions: true }],
"import/order": [
"error",
{
groups: ["internal", "builtin", "external", "parent"],
},
],
"import/no-unresolved": "off",
},
ignorePatterns: ["node_modules", "out", "dist", "**/*.d.ts"],
};