From e81b322b43643f8fe8f6b66167e53181b4e7c068 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 18:39:46 +0400 Subject: feat(import): Initial Import's config file Signed-off-by: Valentin Popov --- src/javascript.ts | 8 ++++++-- src/rules/import.json | 1 + src/typescript.ts | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/rules/import.json (limited to 'src') 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 }, }; -- cgit v1.2.3