@jobscale/eslint-plugin-standard 0.0.10 → 0.0.12
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/.github/workflows/docker-publish.yml +1 -1
- package/index.js +26 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,10 @@ import airbnbErrors from './rules/errors.js';
|
|
|
8
8
|
import airbnbNode from './rules/node.js';
|
|
9
9
|
|
|
10
10
|
const rules = {
|
|
11
|
-
indent: ['error', 2, {
|
|
11
|
+
indent: ['error', 2, {
|
|
12
|
+
MemberExpression: 0,
|
|
13
|
+
ignoredNodes: ['ConditionalExpression'],
|
|
14
|
+
}],
|
|
12
15
|
quotes: ['error', 'single', { avoidEscape: true }],
|
|
13
16
|
camelcase: ['error', { properties: 'never' }],
|
|
14
17
|
semi: ['error', 'always'],
|
|
@@ -127,12 +130,29 @@ const browser = {
|
|
|
127
130
|
const node = {
|
|
128
131
|
...recommended,
|
|
129
132
|
name: 'eslint-plugin-standard/node',
|
|
133
|
+
languageOptions: {
|
|
134
|
+
ecmaVersion: 'latest',
|
|
135
|
+
sourceType: 'module',
|
|
136
|
+
globals: {
|
|
137
|
+
...globals.node,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
rules: {
|
|
141
|
+
...pluginJs.configs.recommended.rules,
|
|
142
|
+
...recommended.rules,
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const jest = {
|
|
147
|
+
...recommended,
|
|
148
|
+
name: 'eslint-plugin-standard/jest',
|
|
130
149
|
languageOptions: {
|
|
131
150
|
ecmaVersion: 'latest',
|
|
132
151
|
sourceType: 'module',
|
|
133
152
|
globals: {
|
|
134
153
|
...globals.node,
|
|
135
154
|
...globals.jest,
|
|
155
|
+
crypto: 'off',
|
|
136
156
|
},
|
|
137
157
|
},
|
|
138
158
|
rules: {
|
|
@@ -142,11 +162,15 @@ const node = {
|
|
|
142
162
|
};
|
|
143
163
|
|
|
144
164
|
export default {
|
|
145
|
-
rules: {
|
|
165
|
+
rules: {
|
|
166
|
+
...pluginJs.configs.recommended.rules,
|
|
167
|
+
...recommended.rules,
|
|
168
|
+
},
|
|
146
169
|
configs: {
|
|
147
170
|
recommended,
|
|
148
171
|
standard,
|
|
149
172
|
browser,
|
|
150
173
|
node,
|
|
174
|
+
jest,
|
|
151
175
|
},
|
|
152
176
|
};
|