summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:39:46 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:39:46 +0300
commite81b322b43643f8fe8f6b66167e53181b4e7c068 (patch)
treeaaa309edc593b17d5d516242aa94b7f7a56e6b85 /src
parent8d2a8a6154f8915a6d8f77ecdee45a01c1388523 (diff)
downloadeslint-config-e81b322b43643f8fe8f6b66167e53181b4e7c068.tar.xz
eslint-config-e81b322b43643f8fe8f6b66167e53181b4e7c068.zip
feat(import): Initial Import's config file
Signed-off-by: Valentin Popov <info@valentineus.link>
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 },
};