@nice-move/eslint-config-base 0.12.4 → 0.12.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
@@ -46,9 +46,10 @@ const old = compat.config(airbnb).map((item) => {
46
46
  return item;
47
47
  });
48
48
 
49
- export default [
49
+ export const create = (...addings) => [
50
50
  js.configs.recommended,
51
51
  ...old,
52
+ ...addings,
52
53
  ...unicorn,
53
54
  ...promise,
54
55
  ...imports,
@@ -57,7 +58,7 @@ export default [
57
58
  ({ devDependencies: { electron } = {} }) => electron,
58
59
  () => [
59
60
  {
60
- files: ['src/**'],
61
+ files: ['src/**/*.{mjs,mts,cjs,cts}'],
61
62
  settings: {
62
63
  'import/core-modules': ['electron'],
63
64
  },
@@ -69,7 +70,7 @@ export default [
69
70
  playwright,
70
71
  () => [
71
72
  {
72
- files: ['test/**'],
73
+ files: ['{test,e2e}/**/*.{mjs,mts,cjs,cts}'],
73
74
  settings: {
74
75
  'import/core-modules': ['@playwright/test'],
75
76
  },
@@ -104,3 +105,5 @@ export default [
104
105
  ],
105
106
  },
106
107
  ];
108
+
109
+ export default create();
package/lib/base.mjs CHANGED
@@ -102,9 +102,23 @@ export default [
102
102
  'prefer-exponentiation-operator': 0,
103
103
  'prefer-template': 'warn',
104
104
  'spaced-comment': 0,
105
+ 'default-param-last': 0,
105
106
  '@eslint-community/eslint-comments/no-unused-enable': 'warn',
106
107
  '@eslint-community/eslint-comments/disable-enable-pair': 0,
107
108
  },
109
+ settings: {
110
+ tryExtensions: [
111
+ '.js',
112
+ '.ts',
113
+ '.jsx',
114
+ '.tsx',
115
+ '.mjs',
116
+ '.cjs',
117
+ '.mts',
118
+ '.cts',
119
+ '.vue',
120
+ ],
121
+ },
108
122
  },
109
123
  {
110
124
  files: ['**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,vue}'],
package/lib/node.mjs CHANGED
@@ -62,6 +62,22 @@ export default [
62
62
  plugins: {
63
63
  n: nodePlugin,
64
64
  },
65
+ settings: {
66
+ n: {
67
+ tryExtensions: [
68
+ '.js',
69
+ '.ts',
70
+ '.jsx',
71
+ '.tsx',
72
+ '.mjs',
73
+ '.mts',
74
+ '.cjs',
75
+ '.cts',
76
+ '.vue',
77
+ ],
78
+ typescriptExtensionMap: [],
79
+ },
80
+ },
65
81
  },
66
82
  {
67
83
  files: ['**/*.{cjs,cts}'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/eslint-config-base",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "description": "A `eslint` config for best practice",
5
5
  "license": "MIT",
6
6
  "author": {