diff --git a/.eslintrc.json b/.eslintrc.json index 97a4645f8..2fa59438c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,7 +38,7 @@ ], "import/extensions": [ 2, - "ignorePackages" + "never" ] } -} \ No newline at end of file +} diff --git a/.travis.yml b/.travis.yml index 5f28442a0..91412f242 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ cache: - ~/.npm - node_modules node_js: + - '12' - '10' - '8' - '6' diff --git a/test/locale/zh.test.js b/test/locale/zh.test.js index f018eda19..017582a20 100644 --- a/test/locale/zh.test.js +++ b/test/locale/zh.test.js @@ -1,8 +1,8 @@ import dayjs from '../../src' import advancedFormat from '../../src/plugin/advancedFormat' import weekOfYear from '../../src/plugin/weekOfYear' -import '../../src/locale/zh.js' -import '../../src/locale/zh-cn.js' +import '../../src/locale/zh' +import '../../src/locale/zh-cn' dayjs.extend(advancedFormat).extend(weekOfYear)