@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 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
- js.configs.recommended,
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', '**/*.ts', '**/*.jsx', '**/*.tsx'],
133
+ files: ['**/*.{js,ts,jsx,tsx,html,htm}'],
134
134
  languageOptions: {
135
135
  sourceType: 'module',
136
136
  globals: {
package/lib/markdown.mjs CHANGED
@@ -7,6 +7,7 @@ export default [
7
7
  markdown,
8
8
  },
9
9
  language: 'markdown/gfm',
10
+ processor: 'markdown/markdown',
10
11
  languageOptions: {
11
12
  frontmatter: 'yaml',
12
13
  },
package/lib/unicorn.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
2
2
 
3
3
  export default [
4
- eslintPluginUnicorn.configs['flat/recommended'],
4
+ eslintPluginUnicorn.configs.recommended,
5
5
  {
6
6
  rules: {
7
7
  'unicorn/consistent-destructuring': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/eslint-config-base",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "A `eslint` config for best practice",
5
5
  "license": "MIT",
6
6
  "author": {