@soleil-se/eslint-config 2.4.4 → 2.4.5

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ Alla förändringar i detta repository antecknas här.
5
5
  Formatet baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  och projektet använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.4.5] - 2021-11-04
9
+
10
+ ### Fixat
11
+
12
+ - Sätt `ecmaVersion` till 2021 i client kontfigurationen om Vue används.
13
+
8
14
  ## [2.4.4] - 2021-09-09
9
15
 
10
16
  ### Fixat
package/client.js CHANGED
@@ -1,11 +1,14 @@
1
- const { getExtends, getPlugins, getOverrides } = require('./utils');
1
+ const {
2
+ getExtends, getPlugins, getOverrides, hasVue,
3
+ } = require('./utils');
2
4
  const client = require('./shared/client');
3
5
 
4
6
  module.exports = {
5
7
  extends: getExtends(),
6
8
  plugins: getPlugins(),
7
9
  parserOptions: {
8
- ecmaVersion: 'latest',
10
+ // Vue plugin uses Espree for ECMA versions, 'latest' does not work.
11
+ ecmaVersion: hasVue ? 2021 : 'latest',
9
12
  sourceType: 'module',
10
13
  },
11
14
  overrides: getOverrides(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/eslint-config",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Settings for ESLint in a SiteVision project",
5
5
  "author": "Soleil AB",
6
6
  "license": "UNLICENSED",