Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/.nyc_output
/coverage
/dist
/node_modules
/assets
/dist
/docs/.vuepress/dist
/fixtures
/tests/lib/styles/fixtures
/package-lock.json
!/.github
!/.vscode
!/docs/.vuepress
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ module.exports = {
"plugin:@ota-meshi/+node",
"plugin:@ota-meshi/+typescript",
"plugin:@ota-meshi/+eslint-plugin",
"plugin:@ota-meshi/+prettier",
"plugin:@ota-meshi/+json",
"plugin:@ota-meshi/+yaml",
"plugin:@ota-meshi/+prettier",
],
rules: {
"require-jsdoc": "error",
Expand Down
68 changes: 34 additions & 34 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"typescript"
],
"typescript.validate.enable": true,
"javascript.validate.enable": false,
"eslint.workingDirectories": [
"./", "./docs/.vuepress"
],
"vetur.validation.script": false,
"vetur.validation.style": false,
"css.validate": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true,
},
"editor.codeActionsOnSaveTimeout": 7500,
"stylelint.customSyntax": "stylelint-plugin-stylus/custom-syntax",
"stylelint.validate": [
"css",
"html",
"less",
"postcss",
"sass",
"scss",
"vue",
"vue-html",
"vue-postcss",
"stylus"
]
}
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"typescript",
"json",
"jsonc",
"yaml"
],
"typescript.validate.enable": true,
"javascript.validate.enable": false,
"vetur.validation.script": false,
"vetur.validation.style": false,
"css.validate": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
},
"editor.codeActionsOnSaveTimeout": 7500,
"stylelint.customSyntax": "stylelint-plugin-stylus/custom-syntax",
"stylelint.validate": [
"css",
"html",
"less",
"postcss",
"sass",
"scss",
"vue",
"vue-html",
"vue-postcss",
"stylus"
]
}
8 changes: 4 additions & 4 deletions eslint-internal-rules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-internal-rules",
"version": "0.2.0",
"private": true,
"main": "index.js"
"name": "eslint-plugin-internal-rules",
"version": "0.2.0",
"private": true,
"main": "index.js"
}
22 changes: 11 additions & 11 deletions eslint-internal-rules/require-meta-docs-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// -----------------------------------------------------------------------------

const path = require("path")
// eslint-disable-next-line @mysticatea/node/no-extraneous-require
// eslint-disable-next-line node/no-extraneous-require -- ignore
const util = require("eslint-plugin-eslint-plugin/lib/utils")

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -58,7 +58,7 @@ module.exports = {
node &&
node.type === "Literal" &&
typeof node.value === "string" &&
(expectedUrl === undefined || node.value === expectedUrl)
(expectedUrl === undefined || node.value === expectedUrl),
)
}

Expand All @@ -75,9 +75,9 @@ module.exports = {
}
return fixer.insertTextAfter(
sourceCode.getLastToken(
node.properties[node.properties.length - 1]
node.properties[node.properties.length - 1],
),
`,\n${propertyText}`
`,\n${propertyText}`,
)
}

Expand All @@ -93,17 +93,17 @@ module.exports = {
metaNode &&
metaNode.properties &&
metaNode.properties.find(
p =>
(p) =>
p.type === "Property" &&
util.getKeyName(p) === "docs"
util.getKeyName(p) === "docs",
)
const urlPropNode =
docsPropNode &&
docsPropNode.value.properties &&
docsPropNode.value.properties.find(
p =>
(p) =>
p.type === "Property" &&
util.getKeyName(p) === "url"
util.getKeyName(p) === "url",
)

if (isExpectedUrl(urlPropNode && urlPropNode.value)) {
Expand Down Expand Up @@ -133,7 +133,7 @@ module.exports = {
if (urlPropNode) {
return fixer.replaceText(
urlPropNode.value,
urlString
urlString,
)
}
if (
Expand All @@ -143,7 +143,7 @@ module.exports = {
return insertProperty(
fixer,
docsPropNode.value,
`url: ${urlString}`
`url: ${urlString}`,
)
}
if (
Expand All @@ -154,7 +154,7 @@ module.exports = {
return insertProperty(
fixer,
metaNode,
`docs: {\nurl: ${urlString}\n}`
`docs: {\nurl: ${urlString}\n}`,
)
}
}
Expand Down
107 changes: 104 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading