@jobscale/eslint-plugin-standard 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +66 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -76,11 +76,6 @@ const recommended = {
|
|
|
76
76
|
languageOptions: {
|
|
77
77
|
ecmaVersion: 'latest',
|
|
78
78
|
sourceType: 'module',
|
|
79
|
-
globals: {
|
|
80
|
-
...globals.browser,
|
|
81
|
-
...globals.node,
|
|
82
|
-
...globals.jest,
|
|
83
|
-
},
|
|
84
79
|
},
|
|
85
80
|
plugins: {
|
|
86
81
|
import: importPlugin,
|
|
@@ -98,6 +93,65 @@ const recommended = {
|
|
|
98
93
|
const standard = {
|
|
99
94
|
...recommended,
|
|
100
95
|
name: 'eslint-plugin-standard/standard',
|
|
96
|
+
languageOptions: {
|
|
97
|
+
ecmaVersion: 'latest',
|
|
98
|
+
sourceType: 'module',
|
|
99
|
+
globals: {
|
|
100
|
+
...globals.browser,
|
|
101
|
+
...globals.node,
|
|
102
|
+
...globals.jest,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
rules: {
|
|
106
|
+
...pluginJs.configs.recommended.rules,
|
|
107
|
+
...recommended.rules,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const browser = {
|
|
112
|
+
...recommended,
|
|
113
|
+
name: 'eslint-plugin-standard/browser',
|
|
114
|
+
languageOptions: {
|
|
115
|
+
ecmaVersion: 'latest',
|
|
116
|
+
sourceType: 'module',
|
|
117
|
+
globals: {
|
|
118
|
+
...globals.browser,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
rules: {
|
|
122
|
+
...pluginJs.configs.recommended.rules,
|
|
123
|
+
...recommended.rules,
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const node = {
|
|
128
|
+
...recommended,
|
|
129
|
+
name: 'eslint-plugin-standard/node',
|
|
130
|
+
languageOptions: {
|
|
131
|
+
ecmaVersion: 'latest',
|
|
132
|
+
sourceType: 'module',
|
|
133
|
+
globals: {
|
|
134
|
+
...globals.node,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
rules: {
|
|
138
|
+
...pluginJs.configs.recommended.rules,
|
|
139
|
+
...recommended.rules,
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const jest = {
|
|
144
|
+
...recommended,
|
|
145
|
+
name: 'eslint-plugin-standard/jest',
|
|
146
|
+
languageOptions: {
|
|
147
|
+
ecmaVersion: 'latest',
|
|
148
|
+
sourceType: 'module',
|
|
149
|
+
globals: {
|
|
150
|
+
...globals.node,
|
|
151
|
+
...globals.jest,
|
|
152
|
+
crypto: 'off',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
101
155
|
rules: {
|
|
102
156
|
...pluginJs.configs.recommended.rules,
|
|
103
157
|
...recommended.rules,
|
|
@@ -105,9 +159,15 @@ const standard = {
|
|
|
105
159
|
};
|
|
106
160
|
|
|
107
161
|
export default {
|
|
108
|
-
rules: {
|
|
162
|
+
rules: {
|
|
163
|
+
...pluginJs.configs.recommended.rules,
|
|
164
|
+
...recommended.rules,
|
|
165
|
+
},
|
|
109
166
|
configs: {
|
|
110
167
|
recommended,
|
|
111
168
|
standard,
|
|
169
|
+
browser,
|
|
170
|
+
node,
|
|
171
|
+
jest,
|
|
112
172
|
},
|
|
113
173
|
};
|