Skip to content

Commit

Permalink
Merge 51489ec into 4769813
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jul 2, 2022
2 parents 4769813 + 51489ec commit de0bdc8
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 192 deletions.
136 changes: 68 additions & 68 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
"use strict"
"use strict";

// const version = require("./package.json").version

module.exports = {
parserOptions: {
sourceType: "script",
ecmaVersion: 2020,
parserOptions: {
sourceType: "script",
ecmaVersion: 2020,
},
extends: [
"plugin:@ota-meshi/recommended",
"plugin:@ota-meshi/+node",
"plugin:@ota-meshi/+typescript",
"plugin:@ota-meshi/+prettier",
"plugin:@ota-meshi/+package-json",
"plugin:@ota-meshi/+json",
],
rules: {
"require-jsdoc": "error",
"no-warning-comments": "warn",
"no-lonely-if": "off",
"no-shadow": "off",
},
overrides: [
{
files: ["*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
project: "./tsconfig.json",
},
rules: {
"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["camelCase"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "variable",
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "typeLike",
format: ["PascalCase"],
},
{
selector: "property",
format: null,
},
{
selector: "method",
format: null,
},
],
"no-implicit-globals": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
extends: [
"plugin:@ota-meshi/recommended",
"plugin:@ota-meshi/+node",
"plugin:@ota-meshi/+typescript",
"plugin:@ota-meshi/+prettier",
"plugin:@ota-meshi/+package-json",
"plugin:@ota-meshi/+json",
],
rules: {
"require-jsdoc": "error",
"no-warning-comments": "warn",
"no-lonely-if": "off",
"no-shadow": "off",
{
files: ["scripts/**/*.ts", "tests/**/*.ts"],
rules: {
"require-jsdoc": "off",
"no-console": "off",
},
},
overrides: [
{
files: ["*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
project: "./tsconfig.json",
},
rules: {
"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["camelCase"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "variable",
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "typeLike",
format: ["PascalCase"],
},
{
selector: "property",
format: null,
},
{
selector: "method",
format: null,
},
],
"no-implicit-globals": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
{
files: ["scripts/**/*.ts", "tests/**/*.ts"],
rules: {
"require-jsdoc": "off",
"no-console": "off",
},
},
],
}
],
};
178 changes: 89 additions & 89 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
{
"name": "vite-plugin-svelte-md",
"version": "0.1.4",
"description": "Vite plugin to convert markdown to svelte template",
"files": [
"lib"
],
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"scripts": {
"prebuild": "npm run -s clean",
"build": "tsup",
"clean": "rimraf .nyc_output lib coverage",
"lint": "eslint . --ext .js,.ts,.json",
"eslint-fix": "npm run lint -- --fix",
"format:docs": "prettier README.md --write",
"test": "mocha --require ts-node/register \"tests/**/*.ts\" --reporter dot --timeout 60000",
"cover": "nyc --reporter=lcov npm run test",
"debug": "mocha --require ts-node/register/transpile-only \"tests/**/*.ts\" --reporter dot",
"update-snap": "mocha --require ts-node/register/transpile-only \"tests/**/*.ts\" --reporter dot --update",
"preversion": "npm run lint && npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ota-meshi/vite-plugin-svelte-md.git"
},
"keywords": [
"vite",
"vite-plugin",
"svelte",
"markdown",
"markdown-it"
],
"author": "Yosuke Ota",
"funding": "https://github.com/sponsors/ota-meshi",
"license": "MIT",
"bugs": {
"url": "https://github.com/ota-meshi/vite-plugin-svelte-md/issues"
},
"homepage": "https://github.com/ota-meshi/vite-plugin-svelte-md#readme",
"peerDependencies": {
"vite": "^2.0.0"
},
"dependencies": {
"@rollup/pluginutils": "^4.1.1",
"gray-matter": "^4.0.3",
"markdown-it": "^13.0.0"
},
"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.11.0",
"@types/chai": "^4.2.22",
"@types/escape-html": "^1.0.1",
"@types/estree": "0.0.52",
"@types/markdown-it": "^12.2.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.11",
"@types/prismjs": "^1.16.6",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"chai": "^4.3.4",
"escape-html": "^1.0.3",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^3.0.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-node-dependencies": "^0.8.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.0.0",
"mocha": "^10.0.0",
"mocha-chai-jest-snapshot": "^1.1.3",
"nyc": "^15.1.0",
"prettier": "^2.5.0",
"prettier-plugin-svelte": "^2.5.0",
"prism-svelte": "^0.4.7",
"prismjs": "^1.25.0",
"rimraf": "^3.0.2",
"svelte": "^3.44.2",
"ts-node": "^10.4.0",
"tsup": "^6.0.0",
"typescript": "^4.5.2",
"vite": "^2.6.14"
"name": "vite-plugin-svelte-md",
"version": "0.1.4",
"description": "Vite plugin to convert markdown to svelte template",
"files": [
"lib"
],
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"scripts": {
"prebuild": "npm run -s clean",
"build": "tsup",
"clean": "rimraf .nyc_output lib coverage",
"lint": "eslint . --ext .js,.ts,.json",
"eslint-fix": "npm run lint -- --fix",
"format:docs": "prettier README.md --write",
"test": "mocha --require ts-node/register \"tests/**/*.ts\" --reporter dot --timeout 60000",
"cover": "nyc --reporter=lcov npm run test",
"debug": "mocha --require ts-node/register/transpile-only \"tests/**/*.ts\" --reporter dot",
"update-snap": "mocha --require ts-node/register/transpile-only \"tests/**/*.ts\" --reporter dot --update",
"preversion": "npm run lint && npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ota-meshi/vite-plugin-svelte-md.git"
},
"keywords": [
"vite",
"vite-plugin",
"svelte",
"markdown",
"markdown-it"
],
"author": "Yosuke Ota",
"funding": "https://github.com/sponsors/ota-meshi",
"license": "MIT",
"bugs": {
"url": "https://github.com/ota-meshi/vite-plugin-svelte-md/issues"
},
"homepage": "https://github.com/ota-meshi/vite-plugin-svelte-md#readme",
"peerDependencies": {
"vite": "^2.0.0"
},
"dependencies": {
"@rollup/pluginutils": "^4.1.1",
"gray-matter": "^4.0.3",
"markdown-it": "^13.0.0"
},
"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.11.0",
"@types/chai": "^4.2.22",
"@types/escape-html": "^1.0.1",
"@types/estree": "0.0.52",
"@types/markdown-it": "^12.2.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.11",
"@types/prismjs": "^1.16.6",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"chai": "^4.3.4",
"escape-html": "^1.0.3",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^3.0.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-node-dependencies": "^0.9.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.0.0",
"mocha": "^10.0.0",
"mocha-chai-jest-snapshot": "^1.1.3",
"nyc": "^15.1.0",
"prettier": "^2.5.0",
"prettier-plugin-svelte": "^2.5.0",
"prism-svelte": "^0.4.7",
"prismjs": "^1.25.0",
"rimraf": "^3.0.2",
"svelte": "^3.44.2",
"ts-node": "^10.4.0",
"tsup": "^6.0.0",
"typescript": "^4.5.2",
"vite": "^2.6.14"
}
}
30 changes: 15 additions & 15 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"extends": [
"config:base",
":preserveSemverRanges",
":disableDependencyDashboard"
],
"packageRules": [
{
"updateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"depTypeList": ["devDependencies"],
"automerge": true
}
]
"extends": [
"config:base",
":preserveSemverRanges",
":disableDependencyDashboard"
],
"packageRules": [
{
"updateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"depTypeList": ["devDependencies"],
"automerge": true
}
]
}
35 changes: 15 additions & 20 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"compilerOptions": {
"target": "es2015",
"strict": true,
"lib": ["es2020", "DOM"],
"module": "commonjs",
"declaration": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"moduleResolution": "node"
},
"include": [
"src/**/*.ts",
"tests/**/*.ts",
"tools/**/*.ts",
"tsup.config.ts"
]
"compilerOptions": {
"target": "es2015",
"strict": true,
"lib": ["es2020", "DOM"],
"module": "commonjs",
"declaration": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"moduleResolution": "node"
},
"include": ["src/**/*.ts", "tests/**/*.ts", "tools/**/*.ts", "tsup.config.ts"]
}

0 comments on commit de0bdc8

Please sign in to comment.