@nitra/eslint-config 2.0.2 → 2.0.3
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/index.js +14 -3
- 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
|
|
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: {
|
|
@@ -36,7 +36,18 @@ export default {
|
|
|
36
36
|
securityPlugin.configs.recommended,
|
|
37
37
|
{ plugins: { '@microsoft/eslint-plugin-sdl': sdlPlugin } }
|
|
38
38
|
],
|
|
39
|
-
vue: [
|
|
39
|
+
vue: [
|
|
40
|
+
...pluginVue.configs['flat/recommended'],
|
|
41
|
+
{
|
|
42
|
+
rules: {
|
|
43
|
+
'vue/max-attributes-per-line': 'off',
|
|
44
|
+
'vue/attributes-order': 'off',
|
|
45
|
+
'vue/html-closing-bracket-newline': 'off',
|
|
46
|
+
'vue/singleline-html-element-content-newline': 'off',
|
|
47
|
+
'vue/multi-word-component-names': 'off'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
40
51
|
}
|
|
41
52
|
|
|
42
53
|
// const nodeConfig = sharableConfig.configs.node.map(configObject => ({
|