Skip to content

Commit

Permalink
Update dependency @ota-meshi/eslint-plugin to ^0.11.0 (ota-meshi#21)
Browse files Browse the repository at this point in the history
* Update dependency @ota-meshi/eslint-plugin to ^0.11.0

* format

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
renovate[bot] and ota-meshi authored Jul 1, 2022
1 parent ab69237 commit d287517
Show file tree
Hide file tree
Showing 16 changed files with 347 additions and 355 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
"postCreateCommand": "npm install",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
Expand Down
26 changes: 13 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"use strict"
"use strict";

module.exports = {
parserOptions: {
sourceType: "script",
ecmaVersion: 2020,
},
extends: [
"plugin:@ota-meshi/recommended",
"plugin:@ota-meshi/+node",
"plugin:@ota-meshi/+json",
"plugin:@ota-meshi/+yaml",
"plugin:@ota-meshi/+prettier",
],
}
parserOptions: {
sourceType: "script",
ecmaVersion: 2020,
},
extends: [
"plugin:@ota-meshi/recommended",
"plugin:@ota-meshi/+node",
"plugin:@ota-meshi/+json",
"plugin:@ota-meshi/+yaml",
"plugin:@ota-meshi/+prettier",
],
};
60 changes: 30 additions & 30 deletions .github/workflows/NodeCI.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Packages
run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm i --legacy-peer-deps
- name: Test
run: npm test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Packages
run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm i --legacy-peer-deps
- name: Test
run: npm test
46 changes: 23 additions & 23 deletions .github/workflows/NpmPublish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: publish
on:
push:
tags:
- "*"
push:
tags:
- "*"
jobs:
release:
name: check version, and release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node
uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"
- name: Install Packages
run: npm i --legacy-peer-deps
- name: test
run: npm run test
- name: check can npm-publish
run: npx can-npm-publish
- name: release
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
release:
name: check version, and release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node
uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"
- name: Install Packages
run: npm i --legacy-peer-deps
- name: test
run: npm run test
- name: check can npm-publish
run: npx can-npm-publish
- name: release
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 1 addition & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"json",
"jsonc",
"yaml"
]
"eslint.validate": ["javascript", "javascriptreact", "json", "jsonc", "yaml"]
}
46 changes: 23 additions & 23 deletions html.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
"use strict"
"use strict";

const extensions = [
// https://github.com/Microsoft/vscode/blob/master/extensions/html/package.json
".html",
".htm",
".shtml",
".xhtml",
".xht",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm",
".volt",
".ejs",
".rhtml",
]
// https://github.com/Microsoft/vscode/blob/master/extensions/html/package.json
".html",
".htm",
".shtml",
".xhtml",
".xht",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm",
".volt",
".ejs",
".rhtml",
];

module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use strict"
"use strict";

module.exports = {
extends: [
require.resolve("./html.js"),
require.resolve("./vue.js"),
require.resolve("./php.js"),
require.resolve("./svelte.js"),
require.resolve("./xml.js"),
],
}
extends: [
require.resolve("./html.js"),
require.resolve("./vue.js"),
require.resolve("./php.js"),
require.resolve("./svelte.js"),
require.resolve("./xml.js"),
],
};
120 changes: 60 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
{
"name": "stylelint-config-html",
"version": "1.0.0",
"description": "The shareable HTML config for Stylelint.",
"keywords": [
"stylelint",
"stylelint-config",
"html",
"vue",
"svelte",
"php",
"xml"
],
"main": "index.js",
"files": [
"index.js",
"html.js",
"vue.js",
"svelte.js",
"php.js",
"xml.js"
],
"engines": {
"node": "^12 || >=14"
},
"scripts": {
"test": "mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000",
"lint": "eslint .",
"eslint-fix": "eslint . --fix",
"preversion": "npm test && git add ."
},
"peerDependencies": {
"stylelint": ">=14.0.0",
"postcss-html": "^1.0.0"
},
"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.10.0",
"eslint": "^8.0.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-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.5.0",
"eslint-plugin-vue": "^9.0.0",
"eslint-plugin-yml": "^1.0.0",
"mocha": "^10.0.0",
"prettier": "^2.4.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ota-meshi/stylelint-config-html.git"
},
"author": "Yosuke Ota (https://github.com/ota-meshi)",
"funding": "https://github.com/sponsors/ota-meshi",
"license": "MIT",
"bugs": {
"url": "https://github.com/ota-meshi/stylelint-config-html/issues"
},
"homepage": "https://github.com/ota-meshi/stylelint-config-html#readme"
"name": "stylelint-config-html",
"version": "1.0.0",
"description": "The shareable HTML config for Stylelint.",
"keywords": [
"stylelint",
"stylelint-config",
"html",
"vue",
"svelte",
"php",
"xml"
],
"main": "index.js",
"files": [
"index.js",
"html.js",
"vue.js",
"svelte.js",
"php.js",
"xml.js"
],
"engines": {
"node": "^12 || >=14"
},
"scripts": {
"test": "mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000",
"lint": "eslint .",
"eslint-fix": "eslint . --fix",
"preversion": "npm test && git add ."
},
"peerDependencies": {
"stylelint": ">=14.0.0",
"postcss-html": "^1.0.0"
},
"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.11.0",
"eslint": "^8.0.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-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.5.0",
"eslint-plugin-vue": "^9.0.0",
"eslint-plugin-yml": "^1.0.0",
"mocha": "^10.0.0",
"prettier": "^2.4.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ota-meshi/stylelint-config-html.git"
},
"author": "Yosuke Ota (https://github.com/ota-meshi)",
"funding": "https://github.com/sponsors/ota-meshi",
"license": "MIT",
"bugs": {
"url": "https://github.com/ota-meshi/stylelint-config-html/issues"
},
"homepage": "https://github.com/ota-meshi/stylelint-config-html#readme"
}
30 changes: 15 additions & 15 deletions php.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
"use strict"
"use strict";

const extensions = [
// https://github.com/Microsoft/vscode/blob/main/extensions/php/package.json
".php",
".php4",
".php5",
".phtml",
".ctp",
]
// https://github.com/Microsoft/vscode/blob/main/extensions/php/package.json
".php",
".php4",
".php5",
".phtml",
".ctp",
];

module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};
Loading

0 comments on commit d287517

Please sign in to comment.