@nice-move/eslint-config-base 0.13.4 → 0.13.6
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.mjs +7 -2
- package/lib/base.mjs +3 -3
- package/lib/markdown.mjs +1 -0
- package/lib/unicorn.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import airbnb from 'eslint-config-airbnb-base';
|
|
|
8
8
|
import prettier from 'eslint-config-prettier';
|
|
9
9
|
import { getPkg, readJson } from 'settingz';
|
|
10
10
|
|
|
11
|
-
import base from './lib/base.mjs';
|
|
11
|
+
import base, { all as allExts } from './lib/base.mjs';
|
|
12
12
|
import imports from './lib/import.mjs';
|
|
13
13
|
import markdown from './lib/markdown.mjs';
|
|
14
14
|
import mini from './lib/mini.mjs';
|
|
@@ -43,11 +43,16 @@ const compat = new FlatCompat({
|
|
|
43
43
|
const old = compat.config(airbnb).map((item) => {
|
|
44
44
|
delete item.plugins;
|
|
45
45
|
|
|
46
|
+
item.files = allExts;
|
|
47
|
+
|
|
46
48
|
return item;
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
export const create = (...addings) => [
|
|
50
|
-
|
|
52
|
+
{
|
|
53
|
+
files: allExts,
|
|
54
|
+
...js.configs.recommended,
|
|
55
|
+
},
|
|
51
56
|
...old,
|
|
52
57
|
...addings,
|
|
53
58
|
...unicorn,
|
package/lib/base.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import * as regexpPlugin from 'eslint-plugin-regexp';
|
|
|
3
3
|
|
|
4
4
|
import { getGlobals } from './utils.mjs';
|
|
5
5
|
|
|
6
|
-
const all = ['**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,qs,wxs,vue}'];
|
|
6
|
+
export const all = ['**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,qs,wxs,vue,html,htm}'];
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
{
|
|
@@ -121,7 +121,7 @@ export default [
|
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
files: ['**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,vue}'],
|
|
124
|
+
files: ['**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,vue,html,htm}'],
|
|
125
125
|
languageOptions: {
|
|
126
126
|
ecmaVersion: 'latest',
|
|
127
127
|
globals: {
|
|
@@ -130,7 +130,7 @@ export default [
|
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
files: ['**/*.js
|
|
133
|
+
files: ['**/*.{js,ts,jsx,tsx,html,htm}'],
|
|
134
134
|
languageOptions: {
|
|
135
135
|
sourceType: 'module',
|
|
136
136
|
globals: {
|
package/lib/markdown.mjs
CHANGED
package/lib/unicorn.mjs
CHANGED