@@ -9,22 +9,28 @@ module.exports = {
9
9
} ,
10
10
plugins : [ "internal-rules" ] ,
11
11
extends : [
12
- "plugin:@mysticatea/es2015" ,
13
- "plugin:@mysticatea/+node" ,
14
- "plugin:@mysticatea/+eslint-plugin" ,
12
+ "plugin:@ota-meshi/recommended" ,
13
+ "plugin:@ota-meshi/+node" ,
14
+ "plugin:@ota-meshi/+typescript" ,
15
+ "plugin:@ota-meshi/+eslint-plugin" ,
16
+ "plugin:@ota-meshi/+prettier" ,
17
+ "plugin:@ota-meshi/+json" ,
15
18
] ,
16
19
rules : {
17
20
"require-jsdoc" : "error" ,
18
21
"no-warning-comments" : "warn" ,
19
22
"no-lonely-if" : "off" ,
20
- "@mysticatea/ts/ban-ts-ignore" : "off" ,
23
+ "@typescript-eslint/ban-ts-ignore" : "off" ,
24
+ "eslint-comments/no-unused-disable" : "error" ,
25
+ "@typescript-eslint/no-non-null-assertion" : "off" ,
21
26
} ,
22
27
overrides : [
23
28
{
24
29
files : [ "*.ts" ] ,
30
+ parser : "@typescript-eslint/parser" ,
25
31
rules : {
26
- "@mysticatea/ts /no-require-imports" : "off" ,
27
- "@mysticatea/ts /no-var-requires" : "off" ,
32
+ "@typescript-eslint /no-require-imports" : "off" ,
33
+ "@typescript-eslint /no-var-requires" : "off" ,
28
34
"no-implicit-globals" : "off" ,
29
35
} ,
30
36
parserOptions : {
@@ -35,7 +41,7 @@ module.exports = {
35
41
{
36
42
files : [ "lib/rules/**" ] ,
37
43
rules : {
38
- "@mysticatea/ eslint-plugin/report-message-format" : [
44
+ "eslint-plugin/report-message-format" : [
39
45
"error" ,
40
46
"[^a-z].*\\.$" ,
41
47
] ,
@@ -46,7 +52,35 @@ module.exports = {
46
52
"https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html" ,
47
53
} ,
48
54
] ,
49
- "@mysticatea/eslint-plugin/require-meta-docs-url" : "off" ,
55
+ "eslint-plugin/require-meta-docs-url" : "off" ,
56
+
57
+ "@typescript-eslint/naming-convention" : [
58
+ "error" ,
59
+ {
60
+ selector : "default" ,
61
+ format : [ "camelCase" ] ,
62
+ leadingUnderscore : "allow" ,
63
+ trailingUnderscore : "allow" ,
64
+ } ,
65
+ {
66
+ selector : "variable" ,
67
+ format : [ "camelCase" , "UPPER_CASE" ] ,
68
+ leadingUnderscore : "allow" ,
69
+ trailingUnderscore : "allow" ,
70
+ } ,
71
+ {
72
+ selector : "typeLike" ,
73
+ format : [ "PascalCase" ] ,
74
+ } ,
75
+ {
76
+ selector : "property" ,
77
+ format : null ,
78
+ } ,
79
+ {
80
+ selector : "method" ,
81
+ format : null ,
82
+ } ,
83
+ ] ,
50
84
} ,
51
85
} ,
52
86
{
@@ -78,19 +112,15 @@ module.exports = {
78
112
ecmaVersion : 2019 ,
79
113
parser : "babel-eslint" ,
80
114
} ,
115
+ extends : [ "plugin:@ota-meshi/+vue2" , "plugin:@ota-meshi/+prettier" ] ,
81
116
globals : {
82
117
window : true ,
83
118
} ,
84
119
rules : {
85
120
"require-jsdoc" : "off" ,
86
- "@mysticatea/vue/html-closing-bracket-newline" : "off" ,
87
- "@mysticatea/vue/max-attributes-per-line" : "off" ,
88
- "@mysticatea/vue/comma-dangle" : "off" ,
89
- "@mysticatea/vue/html-indent" : "off" ,
90
- "@mysticatea/vue/html-self-closing" : "off" ,
91
- "@mysticatea/node/no-unsupported-features/es-syntax" : "off" ,
92
- "@mysticatea/node/no-missing-import" : "off" ,
93
- "@mysticatea/node/no-missing-require" : "off" ,
121
+ "node/no-unsupported-features/es-syntax" : "off" ,
122
+ "node/no-missing-import" : "off" ,
123
+ "node/no-missing-require" : "off" ,
94
124
} ,
95
125
} ,
96
126
] ,
0 commit comments