@jobscale/eslint-plugin-standard 0.0.8 → 0.0.10

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 203 times via automatically.
8
+ # The workflow was triggered 210 times via automatically.
9
9
 
10
10
  on:
11
11
  # schedule:
package/index.js CHANGED
@@ -72,14 +72,10 @@ const rules = {
72
72
  const recommended = {
73
73
  name: 'eslint-plugin-standard/recommended',
74
74
  files: ['**/*.{js,mjs,cjs}'],
75
+ ignores: ['coverage/', '**/assets/', '**/*.min.js', '**/.*/'],
75
76
  languageOptions: {
76
77
  ecmaVersion: 'latest',
77
78
  sourceType: 'module',
78
- globals: {
79
- ...globals.browser,
80
- ...globals.node,
81
- ...globals.jest,
82
- },
83
79
  },
84
80
  plugins: {
85
81
  import: importPlugin,
@@ -97,6 +93,48 @@ const recommended = {
97
93
  const standard = {
98
94
  ...recommended,
99
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
+ ...globals.jest,
136
+ },
137
+ },
100
138
  rules: {
101
139
  ...pluginJs.configs.recommended.rules,
102
140
  ...recommended.rules,
@@ -108,5 +146,7 @@ export default {
108
146
  configs: {
109
147
  recommended,
110
148
  standard,
149
+ browser,
150
+ node,
111
151
  },
112
152
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobscale/eslint-plugin-standard",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "eslint plugin standard",
5
5
  "keywords": [
6
6
  "eslint",