@jobscale/eslint-plugin-standard 0.0.9 → 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.
Files changed (2) hide show
  1. package/index.js +44 -5
  2. 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,48 @@ 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
+ ...globals.jest,
136
+ },
137
+ },
101
138
  rules: {
102
139
  ...pluginJs.configs.recommended.rules,
103
140
  ...recommended.rules,
@@ -109,5 +146,7 @@ export default {
109
146
  configs: {
110
147
  recommended,
111
148
  standard,
149
+ browser,
150
+ node,
112
151
  },
113
152
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobscale/eslint-plugin-standard",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "eslint plugin standard",
5
5
  "keywords": [
6
6
  "eslint",