@jobscale/eslint-plugin-standard 0.0.10 → 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 +22 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -127,12 +127,29 @@ const browser = {
|
|
|
127
127
|
const node = {
|
|
128
128
|
...recommended,
|
|
129
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',
|
|
130
146
|
languageOptions: {
|
|
131
147
|
ecmaVersion: 'latest',
|
|
132
148
|
sourceType: 'module',
|
|
133
149
|
globals: {
|
|
134
150
|
...globals.node,
|
|
135
151
|
...globals.jest,
|
|
152
|
+
crypto: 'off',
|
|
136
153
|
},
|
|
137
154
|
},
|
|
138
155
|
rules: {
|
|
@@ -142,11 +159,15 @@ const node = {
|
|
|
142
159
|
};
|
|
143
160
|
|
|
144
161
|
export default {
|
|
145
|
-
rules: {
|
|
162
|
+
rules: {
|
|
163
|
+
...pluginJs.configs.recommended.rules,
|
|
164
|
+
...recommended.rules,
|
|
165
|
+
},
|
|
146
166
|
configs: {
|
|
147
167
|
recommended,
|
|
148
168
|
standard,
|
|
149
169
|
browser,
|
|
150
170
|
node,
|
|
171
|
+
jest,
|
|
151
172
|
},
|
|
152
173
|
};
|