@nitra/eslint-config 2.0.2 → 2.0.4

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 +16 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,7 +5,7 @@ import securityPlugin from 'eslint-plugin-security'
5
5
  import nodePlugin from 'eslint-plugin-n'
6
6
  import pluginVue from 'eslint-plugin-vue'
7
7
  import js from '@eslint/js'
8
- import { browser } from 'globals'
8
+ import globals from 'globals'
9
9
 
10
10
  export default {
11
11
  all: [
@@ -19,7 +19,7 @@ export default {
19
19
  ecmaVersion: 13,
20
20
  sourceType: 'module',
21
21
  globals: {
22
- ...browser
22
+ ...globals.browser
23
23
  }
24
24
  },
25
25
  plugins: {
@@ -27,7 +27,8 @@ export default {
27
27
  standard: configStandard
28
28
  },
29
29
  rules: {
30
- ...js.configs.recommended.rules
30
+ ...js.configs.recommended.rules,
31
+ 'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }]
31
32
  }
32
33
  }
33
34
  ],
@@ -36,7 +37,18 @@ export default {
36
37
  securityPlugin.configs.recommended,
37
38
  { plugins: { '@microsoft/eslint-plugin-sdl': sdlPlugin } }
38
39
  ],
39
- vue: [...pluginVue.configs['flat/recommended']]
40
+ vue: [
41
+ ...pluginVue.configs['flat/recommended'],
42
+ {
43
+ rules: {
44
+ 'vue/max-attributes-per-line': 'off',
45
+ 'vue/attributes-order': 'off',
46
+ 'vue/html-closing-bracket-newline': 'off',
47
+ 'vue/singleline-html-element-content-newline': 'off',
48
+ 'vue/multi-word-component-names': 'off'
49
+ }
50
+ }
51
+ ]
40
52
  }
41
53
 
42
54
  // const nodeConfig = sharableConfig.configs.node.map(configObject => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
5
5
  "type": "module",
6
6
  "repository": {