Skip to content

Commit 4db77ec

Browse files
authored
Supports eslint@7 (#35)
* Supports `eslint@7` * fix job * fix job * Fixed job * update * update * update * update * update
1 parent b84aadb commit 4db77ec

File tree

4 files changed

+4277
-4725
lines changed

4 files changed

+4277
-4725
lines changed

.eslintrc.js

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
"use strict"
22

3-
const version = require("./package.json").version
3+
// const version = require("./package.json").version
44

55
module.exports = {
66
parserOptions: {
77
sourceType: "script",
88
ecmaVersion: 2018,
99
},
10-
plugins: ['internal-rules'],
10+
plugins: ["internal-rules"],
1111
extends: [
1212
"plugin:@mysticatea/es2015",
1313
"plugin:@mysticatea/+node",
1414
"plugin:@mysticatea/+eslint-plugin",
1515
],
1616
rules: {
17-
'require-jsdoc': 'error',
17+
"require-jsdoc": "error",
1818
"no-warning-comments": "warn",
19-
'no-lonely-if': 'off',
20-
"@mysticatea/ts/ban-ts-ignore": 'off'
19+
"no-lonely-if": "off",
20+
"@mysticatea/ts/ban-ts-ignore": "off",
2121
},
2222
overrides: [
2323
{
@@ -35,41 +35,51 @@ module.exports = {
3535
{
3636
files: ["lib/rules/**"],
3737
rules: {
38-
"@mysticatea/eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
39-
"internal-rules/require-meta-docs-url": ["warn", {
40-
pattern: `https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html`,
41-
}],
42-
"@mysticatea/eslint-plugin/require-meta-docs-url": "off",
43-
}
38+
"@mysticatea/eslint-plugin/report-message-format": [
39+
"error",
40+
"[^a-z].*\\.$",
41+
],
42+
"internal-rules/require-meta-docs-url": [
43+
"warn",
44+
{
45+
pattern:
46+
"https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html",
47+
},
48+
],
49+
"@mysticatea/eslint-plugin/require-meta-docs-url": "off",
50+
},
4451
},
4552
{
46-
files: ["scripts/*.js", "tests/**/*.js", "scripts/*.ts", "tests/**/*.ts"],
53+
files: [
54+
"scripts/*.js",
55+
"tests/**/*.js",
56+
"scripts/*.ts",
57+
"tests/**/*.ts",
58+
],
4759
rules: {
4860
"require-jsdoc": "off",
49-
"no-console": "off"
61+
"no-console": "off",
5062
},
5163
},
5264
{
5365
files: ["*.vue"],
5466
parserOptions: {
5567
sourceType: "module",
5668
},
57-
extends: [
58-
"plugin:vue-scoped-css/recommended"
59-
],
60-
globals:{
61-
require: true
69+
extends: ["plugin:vue-scoped-css/recommended"],
70+
globals: {
71+
require: true,
6272
},
6373
},
6474
{
6575
files: ["docs/.vuepress/**"],
6676
parserOptions: {
6777
sourceType: "module",
6878
ecmaVersion: 2019,
69-
parser: 'babel-eslint'
79+
parser: "babel-eslint",
7080
},
7181
globals: {
72-
window: true
82+
window: true,
7383
},
7484
rules: {
7585
"require-jsdoc": "off",
@@ -78,7 +88,9 @@ module.exports = {
7888
"@mysticatea/vue/comma-dangle": "off",
7989
"@mysticatea/vue/html-indent": "off",
8090
"@mysticatea/vue/html-self-closing": "off",
81-
"@mysticatea/node/no-unsupported-features/es-syntax": "off"
91+
"@mysticatea/node/no-unsupported-features/es-syntax": "off",
92+
"@mysticatea/node/no-missing-import": "off",
93+
"@mysticatea/node/no-missing-require": "off",
8294
},
8395
},
8496
],

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ matrix:
66
- node_js: "node"
77
env: CI=coverage
88
- node_js: "8"
9+
env: DEPS=eslint6
910
- node_js: "8"
1011
env: DEPS=low
1112
- node_js: "10"
1213
- node_js: "12"
1314
- node_js: "13"
1415
- node_js: "14"
16+
env: LINT=true
1517
before_install:
1618
- if [ "$DEPS" = "low" ]; then npm i -S eslint@5.0.0 eslint-plugin-vue@5.0.0 vue-eslint-parser@5.0.0; fi
19+
- if [ "$DEPS" = "eslint6" ]; then npm i -S eslint@6.0.0; fi
20+
before_script:
21+
- if [ "$LINT" = "true" ]; then npm run lint; fi
1722
before_deploy:
1823
- npm run build
1924
deploy:

0 commit comments

Comments
 (0)