@momsfriendlydevco/eslint-config 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +15 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Rules shared by both .doop + .vue files
2
- let vueCommonRules = {
2
+ let jsCommonRules = {
3
3
  'html-closing-bracket-spacing': ['off'], // Annoying doesn't allow <this-kind-of-thing/>
4
4
  'no-debugger': ['warn'], // Debuggers are fine, just warn
5
5
  'no-useless-escape': ['off'], // ESlint frequently gets what should and shouldn't be escaped wrong
@@ -20,6 +20,7 @@ module.exports = {
20
20
  ecmaVersion: 'latest',
21
21
  },
22
22
  overrides: [
23
+
23
24
  // .doop backend Files {{{
24
25
  {
25
26
  files: ['*.doop'],
@@ -30,10 +31,20 @@ module.exports = {
30
31
  },
31
32
  rules: {
32
33
  'vue/comment-directive': ['off'], // Screws up block parsing and we don't have <template/> anyway
33
- ...vueCommonRules,
34
+ ...jsCommonRules,
34
35
  },
35
36
  },
36
37
  // }}}
38
+
39
+ // .mjs / .js regular files {{{
40
+ {
41
+ files: ['*.js', '*.mjs'],
42
+ rules: {
43
+ ...jsCommonRules,
44
+ },
45
+ },
46
+ // }}}
47
+
37
48
  // .vue frontend Files {{{
38
49
  {
39
50
  files: ['*.vue'],
@@ -125,9 +136,10 @@ module.exports = {
125
136
  ignoreWhenNoAttributes: true,
126
137
  ignores: ['pre', 'textarea', 'div', 'INLINE_ELEMENTS'],
127
138
  }],
128
- ...vueCommonRules,
139
+ ...jsCommonRules,
129
140
  },
130
141
  },
131
142
  // }}}
143
+
132
144
  ],
133
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momsfriendlydevco/eslint-config",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ESLint plugin for @MomsFriendlyDevCo projects",
5
5
  "main": "index.js",
6
6
  "scripts": {