@mpxjs/vue-cli-plugin-mpx-eslint 2.1.28 → 2.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,14 +4,10 @@ module.exports = function (api, options = {}) {
4
4
  lint: 'eslint --ext .js,.ts,.mpx src/'
5
5
  },
6
6
  devDependencies: {
7
- eslint: '^7.0.0'
7
+ eslint: '^9.0.0',
8
+ '@mpxjs/eslint-config': '2.0.0'
8
9
  }
9
10
  }
10
- if (!options.needTs) {
11
- deps.devDependencies['@mpxjs/eslint-config'] = '^1.0.5'
12
- } else {
13
- deps.devDependencies['@mpxjs/eslint-config-ts'] = '^1.0.5'
14
- }
15
11
  api.extendPackage(deps)
16
12
  api.render('./template', {
17
13
  needTs: !!options.needTs
@@ -0,0 +1,7 @@
1
+ import { mpxConfig } from '@mpxjs/eslint-config'
2
+ export default mpxConfig(
3
+ {
4
+ mpx: true,
5
+ typescript: <%= needTs %>
6
+ }
7
+ )
package/index.js CHANGED
@@ -17,7 +17,8 @@ module.exports = function (api, options, webpackConfig) {
17
17
  extensions,
18
18
  // ESlint options
19
19
  failOnWarning,
20
- failOnError
20
+ failOnError,
21
+ cache: false
21
22
  }
22
23
 
23
24
  webpackConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/vue-cli-plugin-mpx-eslint",
3
- "version": "2.1.28",
3
+ "version": "2.1.30",
4
4
  "description": "eslint plugin for mpx-cli",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "eslint-webpack-plugin": "^3.1.1"
13
+ "eslint-webpack-plugin": "^5.0.1"
14
14
  },
15
15
  "publishConfig": {
16
16
  "registry": "https://registry.npmjs.org",
@@ -1,27 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- <%_ if(needTs) { _%>
4
- extends: ['@mpxjs/eslint-config-ts'],
5
- <%_ } else { _%>
6
- extends: ['@mpxjs'],
7
- <%_ } _%>
8
- rules: {
9
- // .mpx文件规则 https://mpx-ecology.github.io/eslint-plugin-mpx/rules/
10
- },
11
- overrides: [
12
- <%_ if(needTs) { _%>
13
- {
14
- files: ['**/*.ts'],
15
- rules: {
16
- // .ts文件规则 https://typescript-eslint.io/rules/
17
- }
18
- },
19
- <%_ } _%>
20
- {
21
- files: ['**/*.js'],
22
- rules: {
23
- // .js文件规则 https://eslint.bootcss.com/docs/rules/
24
- }
25
- }
26
- ]
27
- }