From cb8da6b287551bddf00880658357c5ae388d3c25 Mon Sep 17 00:00:00 2001 From: kariminf Date: Sun, 30 May 2021 23:44:42 +0100 Subject: [PATCH] jslint to support mjs --- .codeclimate.yml | 2 +- .eslintrc.json | 8 ++++++++ .inch.yml | 7 ------- .nycrc | 7 +++++++ package.json | 2 +- 5 files changed, 17 insertions(+), 9 deletions(-) delete mode 100644 .inch.yml create mode 100644 .nycrc diff --git a/.codeclimate.yml b/.codeclimate.yml index 847974b..62b9f6d 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -14,5 +14,5 @@ ratings: exclude_paths: - "test/" - "dist/" -- "design/" +- "assets/" - "node_modules/" diff --git a/.eslintrc.json b/.eslintrc.json index e7b52b8..0027515 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,5 +11,13 @@ "semi": ["error", "always"], "no-console": "off", "no-unused-vars": ["error", { "vars": "all", "argsIgnorePattern": "^_"}] + }, + "settings": { + "import/extensions": [".mjs", ".js"], + "import/resolver": { + "node": { + "extensions": [".mjs", ".js"] + } } + } } diff --git a/.inch.yml b/.inch.yml deleted file mode 100644 index 280482c..0000000 --- a/.inch.yml +++ /dev/null @@ -1,7 +0,0 @@ -files: - included: - - "src/**.mjs" - excluded: - - test/ - - node_modules/ - - dist/ diff --git a/.nycrc b/.nycrc new file mode 100644 index 0000000..4895802 --- /dev/null +++ b/.nycrc @@ -0,0 +1,7 @@ +{ + "all": true, + "include": [ + "src/" + ], + "exclude": [] +} diff --git a/package.json b/package.json index ac6bb92..d568878 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/jslingua.js", "devDependencies": { "codecov": "^3.6.5", - "eslint": "^4.19.1", + "eslint": "^7.27.0", "expect.js": "^0.3.1", "http-server": "^0.12.3", "jshint": "^2.12.0",