Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 9, 2020
1 parent cb2f73e commit 2de248a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
53 changes: 32 additions & 21 deletions .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: [
{
Expand All @@ -35,41 +35,51 @@ 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",
},
},
{
files: ["*.vue"],
parserOptions: {
sourceType: "module",
},
extends: [
"plugin:vue-scoped-css/recommended"
],
globals:{
require: true
extends: ["plugin:vue-scoped-css/recommended"],
globals: {
require: true,
},
},
{
files: ["docs/.vuepress/**"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2019,
parser: 'babel-eslint'
parser: "babel-eslint",
},
globals: {
window: true
window: true,
},
rules: {
"require-jsdoc": "off",
Expand All @@ -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",
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down

0 comments on commit 2de248a

Please sign in to comment.