@nice-move/eslint-config-base 0.13.20 → 0.13.22

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
@@ -1,6 +1,3 @@
1
- import { dirname } from 'node:path';
2
- import { fileURLToPath } from 'node:url';
3
-
4
1
  import { FlatCompat } from '@eslint/eslintrc';
5
2
  import js from '@eslint/js';
6
3
  import { recommended as html } from '@nice-move/eslint-plugin-html/lib/configs-next.mjs';
@@ -32,12 +29,9 @@ function BestShot() {
32
29
  return eslint;
33
30
  }
34
31
 
35
- const __filename = fileURLToPath(import.meta.url);
36
- const __dirname = dirname(__filename);
37
-
38
32
  const compat = new FlatCompat({
39
- baseDirectory: __dirname,
40
- resolvePluginsRelativeTo: __dirname,
33
+ baseDirectory: import.meta.__dirname,
34
+ resolvePluginsRelativeTo: import.meta.__dirname,
41
35
  });
42
36
 
43
37
  const old = compat.config(airbnb).map((item) => {
package/lib/markdown.mjs CHANGED
@@ -20,6 +20,7 @@ export default [
20
20
  files: ['**/*.md/*.{ts,js,mts,mjs,cts,cjs,tsx,jsx,vue,qs,wxs,html,htm}'],
21
21
  rules: {
22
22
  strict: 'off',
23
+ '@typescript-eslint/no-deprecated': 'off',
23
24
  '@typescript-eslint/no-extraneous-class': 'off',
24
25
  '@typescript-eslint/no-unused-vars': 'off',
25
26
  'eol-last': 'off',
@@ -12,6 +12,11 @@ export default [
12
12
  // extends: [
13
13
  // 'airbnb-typescript',
14
14
  // ],
15
+ languageOptions: {
16
+ parserOptions: {
17
+ projectService: true,
18
+ },
19
+ },
15
20
  rules: {
16
21
  '@typescript-eslint/no-deprecated': 'warn',
17
22
  '@typescript-eslint/no-array-constructor': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/eslint-config-base",
3
- "version": "0.13.20",
3
+ "version": "0.13.22",
4
4
  "description": "A `eslint` config for best practice",
5
5
  "license": "MIT",
6
6
  "author": {