From 2de248a4904176941ee4eed89b269411906002f0 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 9 May 2020 09:47:00 +0900 Subject: [PATCH] update --- .eslintrc.js | 53 +++++++++++++++++++++++++++++++--------------------- .travis.yml | 2 +- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index cb8f4f48..89eb75fb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,23 +1,23 @@ "use strict" -const version = require("./package.json").version +// const version = require("./package.json").version module.exports = { parserOptions: { sourceType: "script", ecmaVersion: 2018, }, - plugins: ['internal-rules'], + plugins: ["internal-rules"], extends: [ "plugin:@mysticatea/es2015", "plugin:@mysticatea/+node", "plugin:@mysticatea/+eslint-plugin", ], rules: { - 'require-jsdoc': 'error', + "require-jsdoc": "error", "no-warning-comments": "warn", - 'no-lonely-if': 'off', - "@mysticatea/ts/ban-ts-ignore": 'off' + "no-lonely-if": "off", + "@mysticatea/ts/ban-ts-ignore": "off", }, overrides: [ { @@ -35,18 +35,30 @@ module.exports = { { files: ["lib/rules/**"], rules: { - "@mysticatea/eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"], - "internal-rules/require-meta-docs-url": ["warn", { - pattern: `https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html`, - }], - "@mysticatea/eslint-plugin/require-meta-docs-url": "off", - } + "@mysticatea/eslint-plugin/report-message-format": [ + "error", + "[^a-z].*\\.$", + ], + "internal-rules/require-meta-docs-url": [ + "warn", + { + pattern: + "https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html", + }, + ], + "@mysticatea/eslint-plugin/require-meta-docs-url": "off", + }, }, { - files: ["scripts/*.js", "tests/**/*.js", "scripts/*.ts", "tests/**/*.ts"], + files: [ + "scripts/*.js", + "tests/**/*.js", + "scripts/*.ts", + "tests/**/*.ts", + ], rules: { "require-jsdoc": "off", - "no-console": "off" + "no-console": "off", }, }, { @@ -54,11 +66,9 @@ module.exports = { parserOptions: { sourceType: "module", }, - extends: [ - "plugin:vue-scoped-css/recommended" - ], - globals:{ - require: true + extends: ["plugin:vue-scoped-css/recommended"], + globals: { + require: true, }, }, { @@ -66,10 +76,10 @@ module.exports = { parserOptions: { sourceType: "module", ecmaVersion: 2019, - parser: 'babel-eslint' + parser: "babel-eslint", }, globals: { - window: true + window: true, }, rules: { "require-jsdoc": "off", @@ -78,7 +88,8 @@ module.exports = { "@mysticatea/vue/comma-dangle": "off", "@mysticatea/vue/html-indent": "off", "@mysticatea/vue/html-self-closing": "off", - "@mysticatea/node/no-unsupported-features/es-syntax": "off" + "@mysticatea/node/no-unsupported-features/es-syntax": "off", + "@mysticatea/node/no-missing-import": "off", }, }, ], diff --git a/.travis.yml b/.travis.yml index 1458f7fa..a429b50c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,10 @@ matrix: - node_js: "8" env: DEPS=low - node_js: "10" - env: LINT=true - node_js: "12" - node_js: "13" - node_js: "14" + env: LINT=true before_install: - if [ "$DEPS" = "low" ]; then npm i -S eslint@5.0.0 eslint-plugin-vue@5.0.0 vue-eslint-parser@5.0.0; fi - if [ "$DEPS" = "eslint6" ]; then npm i -S eslint@6.0.0; fi