@akanjs/lint 0.9.39 → 0.9.40
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/cjs/src/eslintConfig.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(eslintConfig_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(eslintConfig_exports);
|
|
33
33
|
var import_eslintrc = require("@eslint/eslintrc");
|
|
34
34
|
var import_js = __toESM(require("@eslint/js"));
|
|
35
|
+
var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"));
|
|
35
36
|
var import_parser = __toESM(require("@typescript-eslint/parser"));
|
|
36
37
|
var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"));
|
|
37
38
|
var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"));
|
|
@@ -100,7 +101,8 @@ const eslintConfig = [
|
|
|
100
101
|
plugins: {
|
|
101
102
|
"@akanjs/lint": import_lintRule.akanjsLint,
|
|
102
103
|
"unused-imports": import_eslint_plugin_unused_imports.default,
|
|
103
|
-
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
104
|
+
"simple-import-sort": import_eslint_plugin_simple_import_sort.default,
|
|
105
|
+
"@typescript-eslint": import_eslint_plugin.default
|
|
104
106
|
},
|
|
105
107
|
languageOptions: {
|
|
106
108
|
parser: import_parser.default,
|
|
@@ -149,6 +151,10 @@ const eslintConfig = [
|
|
|
149
151
|
"import/newline-after-import": "warn"
|
|
150
152
|
}
|
|
151
153
|
},
|
|
154
|
+
...compat.extends("plugin:@typescript-eslint/recommended").map((config) => ({
|
|
155
|
+
...config,
|
|
156
|
+
files: ["**/*.ts", "**/*.tsx"]
|
|
157
|
+
})),
|
|
152
158
|
{
|
|
153
159
|
files: ["**/*.ts", "**/*.tsx"],
|
|
154
160
|
rules: {
|
package/esm/src/eslintConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
2
2
|
import js from "@eslint/js";
|
|
3
|
+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
4
|
import tsParser from "@typescript-eslint/parser";
|
|
4
5
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
5
6
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
@@ -68,7 +69,8 @@ const eslintConfig = [
|
|
|
68
69
|
plugins: {
|
|
69
70
|
"@akanjs/lint": akanjsLint,
|
|
70
71
|
"unused-imports": unusedImports,
|
|
71
|
-
"simple-import-sort": simpleImportSort
|
|
72
|
+
"simple-import-sort": simpleImportSort,
|
|
73
|
+
"@typescript-eslint": typescriptEslint
|
|
72
74
|
},
|
|
73
75
|
languageOptions: {
|
|
74
76
|
parser: tsParser,
|
|
@@ -117,6 +119,10 @@ const eslintConfig = [
|
|
|
117
119
|
"import/newline-after-import": "warn"
|
|
118
120
|
}
|
|
119
121
|
},
|
|
122
|
+
...compat.extends("plugin:@typescript-eslint/recommended").map((config) => ({
|
|
123
|
+
...config,
|
|
124
|
+
files: ["**/*.ts", "**/*.tsx"]
|
|
125
|
+
})),
|
|
120
126
|
{
|
|
121
127
|
files: ["**/*.ts", "**/*.tsx"],
|
|
122
128
|
rules: {
|