From d45c16bde1551cceb16fbf83fecef3cda1b2f4f4 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Sat, 4 May 2024 17:22:21 +0900 Subject: [PATCH] meta: arclint: add few more rules Summary: I probably want few more rules (ie. csslint) Signed-off-by: Yongmin Hong Test Plan: `arc lint` Reviewers: #acl_sudoers, #blessed_reviewers, revi Reviewed By: #acl_sudoers, #blessed_reviewers, revi Differential Revision: https://issuetracker.revi.xyz/D20 --- .arclint | 14 +++- .editorconfig | 12 ++-- .github/dependabot.yml | 24 ++++++- .gitignore | 146 ++++++++++++++++++++++++++++++++++++++++- CODEOWNERS | 3 + package-lock.json | 61 +++++++++++++++++ package.json | 5 ++ 7 files changed, 254 insertions(+), 11 deletions(-) create mode 100644 CODEOWNERS create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.arclint b/.arclint index 1c1a66e..6a57b9b 100644 --- a/.arclint +++ b/.arclint @@ -1,7 +1,17 @@ { "linters": { + "merge-conflict": { + "type": "merge-conflict" + }, + "nolint": { + "type": "nolint" + }, "PHP Error Check": { - "type": "php" + "type": "php", + "include": "(\\.php$)" + }, + "spelling": { + "type": "spelling" } } -} \ No newline at end of file +} diff --git a/.editorconfig b/.editorconfig index 825ed95..433dfbe 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,18 +15,22 @@ trim_trailing_whitespace = true indent_style = space indent_size = 2 +[.arc*] +indent_size = 2 +indent_style = space + # Tabs may not be valid YAML # @see https://yaml.org/spec/1.2/spec.html#id2777534 -[*.{yml,yaml}] -indent_style = space +[*.{json,yml,yaml}] indent_size = 2 +indent_style = space # yaml-lint configuration # YAML files should be indented with spaces, which .yamllint is [.yamllint] -indent_style = space indent_size = 2 +indent_style = space [.git/**] -indent_style = space indent_size = 2 +indent_style = space diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 57d405e..579463a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,4 @@ -# https://stuff.revi.xyz/u/dependabot +# https://issuetracker.revi.xyz/u/dependabot # for documentation link version: 2 @@ -6,8 +6,28 @@ updates: # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" - # Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) + assignees: + - "revi" + # Workflow files stored in the default location of `.github/workflows`. + # (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) directory: "/" schedule: interval: "weekly" + day: "monday" + time: "10:00" + timezone: "Asia/Seoul" + target-branch: "master" + labels: [] + # Maintain dependencies for NPM + - package-ecosystem: "npm" + assignees: + - "revi" + # npm packages are stored in the default location of `package.json`. + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "10:00" + timezone: "Asia/Seoul" + target-branch: "master" labels: [] diff --git a/.gitignore b/.gitignore index e3d2951..fc55c06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,windows -# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,windows +# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,windows,node +# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,windows,node ### Linux ### *~ @@ -49,6 +49,146 @@ Temporary Items # iCloud generated files *.icloud +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +### Node Patch ### +# Serverless Webpack directories +.webpack/ + +# Optional stylelint cache + +# SvelteKit build / generate output +.svelte-kit + ### Windows ### # Windows thumbnail cache files Thumbs.db @@ -75,4 +215,4 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows +# End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows,node diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..b9e657d --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +# https://issuetracker.revi.xyz/u/GHCODEOWNERS + +* @revi diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..84c2127 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,61 @@ +{ + "name": "sandbox", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "dependencies": { + "csslint": "^1.0.5" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/csslint": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/csslint/-/csslint-1.0.5.tgz", + "integrity": "sha512-GXGpPqGIuEBKesM4bt2IKFrzDKpemh9wVZRHVuculUErar554QrXHOonhgkBOP3uiZzbAETz0N2A4oWlIoxPuw==", + "dependencies": { + "clone": "~2.1.0", + "parserlib": "~1.1.1" + }, + "bin": { + "csslint": "dist/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/parserlib": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/parserlib/-/parserlib-1.1.1.tgz", + "integrity": "sha512-e1HbF3+7ASJ/uOZirg5/8ZfPljTh100auNterbHB8TUs5egciuWQ2eX/2al8ko0RdV9Xh/5jDei3jqJAmbTDcg==" + } + }, + "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==" + }, + "csslint": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/csslint/-/csslint-1.0.5.tgz", + "integrity": "sha512-GXGpPqGIuEBKesM4bt2IKFrzDKpemh9wVZRHVuculUErar554QrXHOonhgkBOP3uiZzbAETz0N2A4oWlIoxPuw==", + "requires": { + "clone": "~2.1.0", + "parserlib": "~1.1.1" + } + }, + "parserlib": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/parserlib/-/parserlib-1.1.1.tgz", + "integrity": "sha512-e1HbF3+7ASJ/uOZirg5/8ZfPljTh100auNterbHB8TUs5egciuWQ2eX/2al8ko0RdV9Xh/5jDei3jqJAmbTDcg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..9beb0ea --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "csslint": "^1.0.5" + } +}