issue-pane 2.6.0-3cf7b2ca → 2.6.0-490f7cf9
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/eslint.config.mjs +25 -27
- package/package.json +1 -1
package/eslint.config.mjs
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
|
-
import { fixupConfigRules } from "@eslint/compat";
|
|
3
2
|
import globals from "globals";
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { fileURLToPath } from "node:url";
|
|
6
3
|
import js from "@eslint/js";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
-
const __dirname = path.dirname(__filename);
|
|
11
|
-
const compat = new FlatCompat({
|
|
12
|
-
baseDirectory: __dirname,
|
|
13
|
-
recommendedConfig: js.configs.recommended,
|
|
14
|
-
allConfig: js.configs.all
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export default defineConfig([{
|
|
18
|
-
extends: fixupConfigRules(compat.extends("eslint:recommended", "plugin:import/recommended")),
|
|
4
|
+
import importPlugin from "eslint-plugin-import";
|
|
19
5
|
|
|
6
|
+
export default defineConfig([
|
|
7
|
+
{
|
|
20
8
|
languageOptions: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
globals: {
|
|
10
|
+
...globals.browser,
|
|
11
|
+
...globals.node,
|
|
12
|
+
Atomics: "readonly",
|
|
13
|
+
SharedArrayBuffer: "readonly",
|
|
14
|
+
},
|
|
15
|
+
ecmaVersion: 2022,
|
|
16
|
+
sourceType: "module",
|
|
17
|
+
},
|
|
18
|
+
plugins: {
|
|
19
|
+
import: importPlugin,
|
|
27
20
|
},
|
|
28
|
-
|
|
29
21
|
rules: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
...js.configs.recommended.rules,
|
|
23
|
+
...importPlugin.configs.recommended.rules,
|
|
24
|
+
"no-unused-vars": [
|
|
25
|
+
"warn",
|
|
26
|
+
{
|
|
27
|
+
argsIgnorePattern: "^_",
|
|
28
|
+
varsIgnorePattern: "^_",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
34
31
|
},
|
|
35
|
-
}
|
|
32
|
+
},
|
|
33
|
+
]);
|