Commit Graph

36 Commits

Author SHA1 Message Date
Yosuke Ota 099ba93336 feat(cli-plugin-eslint): use ESLint class instead of CLIEngine (#6714) 2021-09-29 10:27:11 +08:00
Haoqun Jiang 5d0ce17a5a chore: bump lint-staged version 2021-08-31 15:54:54 +08:00
Haoqun Jiang 4d134066b4 fix: better dev server & webpack 4 compatibility and some trivial dependency updates (#6291) 2021-02-19 15:07:31 +08:00
Haoqun Jiang 4378c8df26 style: replace eslint-plugin-vue-libs with standard config (#6148) 2021-01-06 14:29:12 +08:00
Haoqun Jiang eee082d331 feat: bump lint-staged to v10 (#6136) 2020-12-11 14:37:25 +08:00
Necmettin Karakaya 5baec1fdc5 chore: fix common misspelling errors (#5694)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-08-10 01:17:01 +08:00
Haoqun Jiang b1772cadd2 feat: allow choosing vue version on creation (and in presets) (#5637) 2020-07-24 18:54:15 +08:00
Haoqun Jiang a468abfa6c feat: implement a migrator to upgrade to eslint 6 (#5085)
* refactor: extract deps & config logic to separate files

* feat: implement a migrator to upgrade to eslint 6

* fix: add required deps for eslint v4

* test: move migrator tests to each standalone plugins

* refactor: use spread operator instead of Object.assign
2020-01-27 14:00:16 +08:00
Haoqun Jiang 0f377bd31d feat: upgrade to eslint 6 (#4933)
* feat: scaffold projects with eslint 6

* style: eslint fix

* refactor: do not use hard-coded ecmaVersion, use babel-eslint for now

* fix: upgrade to @vue/eslint-config-standard

* style: continue fix lint errors

* chore: upgrade to eslint-plugin-vue@^6.1.2

* refactor: use `ecmaVersion: 2020` for dynamic import syntax support

* test: fix baseESLintConfig

* chore: also update yarn.lock to fix CI caches

* chore: update lockfile again, fix babel regressions

* test: nightwatch tests should fail if lint errors occur

* chore: update the lockfile (again), fixing a bug in airbnb config
2020-01-14 10:13:54 +08:00
Haoqun Jiang 3873d02382 chore: dependency maintenance 2019-11-29 15:15:17 +08:00
Haoqun Jiang 84aed8ef10 chore: dependency maintenance 2019-11-27 00:34:22 +08:00
Haoqun Jiang 31df36d85f fix(eslint): autofix code style after scaffolding on older versions of cli (#4740) 2019-10-22 16:47:36 +08:00
Haoqun Jiang 86c500fd4b chore: dependency maintenance (#4734)
* chore: dependency maintenance

* Revert "test: replace `waitForFunction` with `waitForXPath`"

This reverts commit b2848aeeaf.
2019-10-21 20:13:21 +08:00
Haoqun Jiang eec84c0d49 fix: fix "lint on commit" projects generation error (#4697)
Fixes #4694
Fixes #4695

Fix the "ENOENT: no such file or directory … debugnode_module/sms/index.js" error.

The problem are caused by 2 issues:
1. The `lint-staged` packages introduced an old version of debug,
causing node_module deduping, thus changing the node_module layout
2. The dependencies required in the cached `lint` module is no longer at
its originial position, thus the "ENOENT" error.

This change still does not fix the PNPM 4 issue, considering its smaller
user base, we'll fix it later.
2019-10-17 15:36:31 +08:00
Haoqun Jiang fec160ff96 fix: no need to assertCliVersion. avoid breaking old versions 2019-10-16 20:31:18 +08:00
Haoqun Jiang d72b453728 fix: fix afterAnyInvoke hook compatibility with pnpm 4
Maybe caused by the change of resolve mechanism in pnpm 4,
calling the hook from the creator would get a `Cannot find module`
error. As a workaround, we now require and cache the module outside the
callback function.
2019-10-16 13:28:00 +08:00
Haoqun Jiang c76d2e691d style: add a "no-shadow" linter rule (#4385)
It has become a common source of mistakes.
For example, during PR #4363 I've referred to the wrong `options`
several times due to the variable shadowing.
2019-08-02 18:24:52 +08:00
李瑞丰 80c20db703 fix(eslint-generator): add ts file check to lint-staged (#4347)
fix #3947
2019-07-25 09:54:47 +08:00
Haoqun Jiang 6207dd97c3 feat(eslint-generator): upgrade @vue/eslint-config-prettier to v5.0.0 (#4329)
This only affects newly generated projects so it's not considered a
breaking change.

Fixes #4310
2019-07-22 20:45:52 +08:00
Pavan Kumar Sunkara 544faee81e feat: more flexible hook system for generators (#2337) 2019-07-21 19:59:18 +08:00
Haoqun Jiang b70e0f6970 feat!: require ESLint as a peer dependency (#3852)
BREAKING CHANGE:
Users will have to explicitly list their required ESLint version in the
project's package.json.

The major concern behind this change is that ESLint release schedule is
never aligned with Vue CLI's.
See https://eslint.org/blog/2019/04/eslint-v6.0.0-alpha.0-released
So even if we upgraded our built-in ESLint version to v5, we'll see a
new major release of ESLint in the coming months. Meanwhile we can't
easily upgrade the built-in ESLint version again without bumping our
major version number. This could become a maintenance nightmare.
2019-04-30 10:18:03 +08:00
Haoqun Jiang 6cf29060b3 feat: use ESLint v5 by default everywhere (#3775)
BREAKING CHANGE: may cause old projects' linting fail
(those scaffolded with Vue CLI 3.0.x).
2019-04-30 10:17:15 +08:00
Haoqun Jiang cc66247950 chore: update deps 2019-04-11 14:49:12 +08:00
Fengyuan Chen f2a6db2337 refactor(cli-plugin-eslint): merge lint-staged config (#3487) 2019-02-28 14:40:06 +08:00
Haoqun Jiang 5306c3787d chore: update deps 2019-02-25 01:05:44 +08:00
Haoqun Jiang 49a2c72e0b chore: @vue/eslint-config-typescript@4.0.0 2019-02-01 02:31:11 +08:00
Haoqun Jiang 9a9a70714f chore: update deps 2019-02-01 01:21:47 +08:00
Armano 189ea54402 feat: update eslint-config-typescript to use @typescript-eslint (#3359) 2019-01-30 13:51:37 +08:00
Haoqun Jiang e3ca74e1d2 chore: update dependencies 2018-12-14 19:28:41 +08:00
Haoqun Jiang 7bb36ed972 chore: use stable release of eslint-plugin-vue v5 2018-12-13 18:11:03 +08:00
Haoqun Jiang f2bddd6556 fix: fix config versions 2018-11-28 02:59:39 +08:00
Haoqun Jiang 6ef72cd852 chore: pre release sync 2018-11-28 02:49:46 +08:00
Haoqun Jiang f6ea6f928c chore: update deps 2018-11-28 02:18:37 +08:00
Haoqun Jiang 353edaa302 fix: also add babel-eslint to the generated package.json
In case babel-eslint is not hoisted.

This may happen in yarn, due to the following bugs:

- https://github.com/yarnpkg/yarn/issues/5807
- https://github.com/yarnpkg/yarn/issues/5823
2018-10-31 11:56:59 +08:00
Haoqun Jiang 782afeff73 v3.1.0 2018-10-31 02:11:23 +08:00
Haoqun Jiang 6e5cf0ec7c feat: generate .editorconfig file for each specific eslint config
closes #905
2018-10-30 21:11:25 +08:00