aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/javascript.ts8
-rw-r--r--src/rules/import.json1
-rw-r--r--src/typescript.ts8
3 files changed, 11 insertions, 6 deletions
diff --git a/src/javascript.ts b/src/javascript.ts
index 27abcbd..0031bf0 100644
--- a/src/javascript.ts
+++ b/src/javascript.ts
@@ -1,6 +1,10 @@
-import rules from "./rules/default.json";
+import rDefault from "./rules/default.json";
+import rImport from "./rules/import.json";
module.exports = {
"extends": ["eslint:all"],
- "rules": { ...rules },
+ "rules": {
+ ...rDefault,
+ ...rImport,
+ },
};
diff --git a/src/rules/import.json b/src/rules/import.json
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/src/rules/import.json
@@ -0,0 +1 @@
+{}
diff --git a/src/typescript.ts b/src/typescript.ts
index 0396d6b..5221154 100644
--- a/src/typescript.ts
+++ b/src/typescript.ts
@@ -1,5 +1,5 @@
-import overrides from "./rules/typescript/overrides.json";
-import rules from "./rules/typescript/default.json";
+import rDefault from "./rules/typescript/default.json";
+import rOverrides from "./rules/typescript/overrides.json";
module.exports = {
"extends": ["./javascript"],
@@ -9,7 +9,7 @@ module.exports = {
"*.ts",
"*.tsx",
],
- rules: { ...overrides },
+ rules: { ...rOverrides },
},
],
"parser": "@typescript-eslint/parser",
@@ -17,5 +17,5 @@ module.exports = {
tsconfigRootDir: __dirname,
},
"plugins": ["@typescript-eslint"],
- "rules": { ...rules },
+ "rules": { ...rDefault },
};