@vinicunca/eslint-config 1.2.7 → 1.3.0

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/.eslintrc.js CHANGED
@@ -2,4 +2,4 @@ const { defineConfig } = require('eslint-define-config');
2
2
 
3
3
  module.exports = defineConfig({
4
4
  extends: ['./'],
5
- })
5
+ });
package/base.eslint.js CHANGED
@@ -9,6 +9,8 @@ module.exports = defineConfig({
9
9
  node: true,
10
10
  },
11
11
 
12
+ reportUnusedDisableDirectives: true,
13
+
12
14
  extends: [
13
15
  './standard.eslint',
14
16
  'plugin:import/recommended',
@@ -38,16 +40,14 @@ module.exports = defineConfig({
38
40
  ],
39
41
 
40
42
  plugins: [
41
- 'html', 'unicorn', 'sonarjs',
43
+ 'html',
44
+ 'unicorn',
45
+ 'sonarjs',
42
46
  ],
43
47
 
44
48
  settings: {
45
49
  'import/resolver': {
46
- node: {
47
- extensions: [
48
- '.js', '.mjs', '.ts', '.d.ts',
49
- ],
50
- },
50
+ node: { extensions: ['.js', '.mjs'] },
51
51
  },
52
52
  },
53
53
 
@@ -101,6 +101,8 @@ module.exports = defineConfig({
101
101
  },
102
102
  ],
103
103
 
104
+ 'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 1 }],
105
+
104
106
  // es6
105
107
  'no-var': 'error',
106
108
  'prefer-const': [
@@ -125,6 +127,7 @@ module.exports = defineConfig({
125
127
  avoidQuotes: true,
126
128
  },
127
129
  ],
130
+ 'prefer-exponentiation-operator': 'error',
128
131
  'prefer-rest-params': 'error',
129
132
  'prefer-spread': 'error',
130
133
  'prefer-template': 'error',
@@ -219,9 +222,15 @@ module.exports = defineConfig({
219
222
  files: ['*.json', '*.json5'],
220
223
  parser: 'jsonc-eslint-parser',
221
224
  rules: {
222
- 'quotes': ['error', 'double'],
223
- 'quote-props': ['error', 'always'],
224
- 'comma-dangle': ['error', 'never'],
225
+ 'jsonc/array-bracket-spacing': ['error', 'never'],
226
+ 'jsonc/comma-dangle': ['error', 'never'],
227
+ 'jsonc/comma-style': ['error', 'last'],
228
+ 'jsonc/indent': ['error', 2],
229
+ 'jsonc/key-spacing': ['error', { beforeColon: false, afterColon: true }],
230
+ 'jsonc/no-octal-escape': 'error',
231
+ 'jsonc/object-curly-newline': ['error', { multiline: true, consistent: true }],
232
+ 'jsonc/object-curly-spacing': ['error', 'always'],
233
+ 'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
225
234
  },
226
235
  },
227
236
  {
@@ -240,33 +249,47 @@ module.exports = defineConfig({
240
249
  {
241
250
  pathPattern: '^$',
242
251
  order: [
252
+ 'publisher',
243
253
  'name',
254
+ 'displayName',
244
255
  'type',
245
256
  'version',
246
257
  'private',
247
258
  'packageManager',
248
259
  'description',
249
- 'keywords',
250
- 'license',
251
260
  'author',
252
- 'repository',
261
+ 'license',
253
262
  'funding',
263
+ 'homepage',
264
+ 'repository',
265
+ 'bugs',
266
+ 'keywords',
267
+ 'categories',
268
+ 'sideEffects',
269
+ 'exports',
254
270
  'main',
255
271
  'module',
256
- 'types',
257
272
  'unpkg',
258
273
  'jsdelivr',
259
- 'exports',
260
- 'files',
274
+ 'types',
275
+ 'typesVersions',
261
276
  'bin',
262
- 'sideEffects',
277
+ 'icon',
278
+ 'files',
279
+ 'engines',
280
+ 'activationEvents',
281
+ 'contributes',
263
282
  'scripts',
264
283
  'peerDependencies',
265
284
  'peerDependenciesMeta',
266
285
  'dependencies',
267
286
  'optionalDependencies',
268
287
  'devDependencies',
288
+ 'pnpm',
289
+ 'overrides',
290
+ 'resolutions',
269
291
  'husky',
292
+ 'simple-git-hooks',
270
293
  'lint-staged',
271
294
  'eslintConfig',
272
295
  ],
@@ -275,6 +298,14 @@ module.exports = defineConfig({
275
298
  pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
276
299
  order: { type: 'asc' },
277
300
  },
301
+ {
302
+ pathPattern: '^exports.*$',
303
+ order: [
304
+ 'types',
305
+ 'require',
306
+ 'import',
307
+ ],
308
+ },
278
309
  ],
279
310
  },
280
311
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "description": "Shareable configurations for ESLint & Stylelint",
5
5
  "license": "MIT",
6
6
  "author": "praburangki<https://github.com/praburangki>",
@@ -12,30 +12,30 @@
12
12
  "access": "public"
13
13
  },
14
14
  "dependencies": {
15
- "@typescript-eslint/eslint-plugin": "^5.20.0",
16
- "@typescript-eslint/parser": "^5.20.0",
17
- "eslint-define-config": "^1.3.0",
15
+ "@typescript-eslint/eslint-plugin": "^5.28.0",
16
+ "@typescript-eslint/parser": "^5.28.0",
17
+ "eslint-define-config": "^1.5.1",
18
18
  "eslint-plugin-eslint-comments": "^3.2.0",
19
19
  "eslint-plugin-html": "^6.2.0",
20
20
  "eslint-plugin-import": "^2.26.0",
21
- "eslint-plugin-jsonc": "^2.2.1",
21
+ "eslint-plugin-jsonc": "^2.3.0",
22
22
  "eslint-plugin-markdown": "^2.2.1",
23
- "eslint-plugin-n": "^15.1.0",
23
+ "eslint-plugin-n": "^15.2.2",
24
24
  "eslint-plugin-promise": "^6.0.0",
25
- "eslint-plugin-react": "^7.29.4",
25
+ "eslint-plugin-react": "^7.30.0",
26
26
  "eslint-plugin-sonarjs": "^0.13.0",
27
27
  "eslint-plugin-unicorn": "^42.0.0",
28
- "eslint-plugin-vue": "^8.6.0",
29
- "eslint-plugin-yml": "^0.14.0",
28
+ "eslint-plugin-vue": "^9.1.1",
29
+ "eslint-plugin-yml": "^1.0.0",
30
30
  "jsonc-eslint-parser": "^2.1.0",
31
31
  "stylelint": "^14.7.1",
32
32
  "stylelint-config-standard": "^25.0.0",
33
- "typescript": "^4.6.3",
33
+ "typescript": "^4.7.2",
34
34
  "yaml-eslint-parser": "^0.5.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "bumpp": "^7.1.1",
38
- "eslint": "^8.13.0"
38
+ "eslint": "^8.17.0"
39
39
  },
40
40
  "scripts": {
41
41
  "release": "bumpp package.json --commit --push --tag --commit 'chore: release v'"