@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.
@@ -5,7 +5,7 @@ name: Docker
5
5
  # separate terms of service, privacy policy, and support
6
6
  # documentation.
7
7
 
8
- # The workflow was triggered 210 times via automatically.
8
+ # The workflow was triggered 265 times via automatically.
9
9
 
10
10
  on:
11
11
  # schedule:
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, { MemberExpression: 0 }],
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobscale/eslint-plugin-standard",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "eslint plugin standard",
5
5
  "keywords": [
6
6
  "eslint",