Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 48a8f95

Browse files
committed
chore(project): add linters, fix issues with cut content, fix node-sass dep
1 parent d7e5080 commit 48a8f95

16 files changed

+4922
-4208
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
# editorconfig-tools is unable to ignore longs strings or urls
9+
max_line_length = 160

.github/renovate.json

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"labels": [
3+
"dependencies"
4+
],
5+
"bumpVersion": "patch",
6+
"commitBodyTable": true,
7+
"prHourlyLimit": 6,
8+
"prConcurrentLimit": 6,
9+
"packageRules": [
10+
{
11+
"matchUpdateTypes": [
12+
"minor",
13+
"patch",
14+
"pin",
15+
"digest"
16+
],
17+
"semanticCommitType": "chore",
18+
"automerge": true,
19+
"semanticCommits": true
20+
},
21+
{
22+
"matchPackagePatterns": [
23+
"eslint"
24+
],
25+
"labels": [
26+
"linting"
27+
],
28+
"groupName": "eslint",
29+
"semanticCommitType": "chore",
30+
"automerge": true,
31+
"semanticCommits": true
32+
},
33+
{
34+
"matchDepTypes": [
35+
"optionalDependencies"
36+
],
37+
"addLabels": [
38+
"optional"
39+
],
40+
"semanticCommitType": "chore",
41+
"automerge": true,
42+
"semanticCommits": true
43+
},
44+
{
45+
"matchDepTypes": [
46+
"peerDependencies"
47+
],
48+
"addLabels": [
49+
"peer"
50+
],
51+
"matchUpdateTypes": [
52+
"patch",
53+
"minor"
54+
],
55+
"groupName": "peerDependencies (non-major)",
56+
"groupSlug": "peer-dependencies",
57+
"semanticCommitType": "chore",
58+
"automerge": true,
59+
"semanticCommits": true
60+
}
61+
],
62+
"extends": [
63+
"config:js-lib",
64+
"packages:eslint"
65+
]
66+
}

.github/settings.yml

+146
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.
5+
6+
# The name of the repository. Changing this will rename the repository.
7+
# name: template
8+
9+
# A short description of the repository that will show up on GitHub.
10+
description: Material Theme UI for Chrome/Firefox/Edge DevTools!
11+
12+
# A URL with more information about the repository
13+
homepage: https://material-theme.com/docs/other-products/#material-theme-for-chrome-devtools
14+
15+
# A comma-separated list of topics to set on the repository
16+
topics: plugin, chrome, material, devtools, material-theme, theme
17+
18+
# Either `true` to enable issues for this repository, `false` to disable them.
19+
has_issues: true
20+
21+
# Either `true` to enable projects for this repository, or `false` to disable them.
22+
# If projects are disabled for the organization, passing `true` will cause an API error.
23+
has_projects: false
24+
25+
# Either `true` to enable the wiki for this repository, `false` to disable it.
26+
has_wiki: false
27+
28+
# Either `true` to enable downloads for this repository, `false` to disable them.
29+
has_downloads: false
30+
31+
# Updates the default branch for this repository.
32+
default_branch: master
33+
34+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
35+
# squash-merging.
36+
allow_squash_merge: true
37+
38+
# Either `true` to allow merging pull requests with a merge commit, or `false`
39+
# to prevent merging pull requests with merge commits.
40+
allow_merge_commit: true
41+
42+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
43+
# rebase-merging.
44+
allow_rebase_merge: true
45+
46+
# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
47+
delete_branch_on_merge: true
48+
49+
# Either `true` to enable automated security fixes, or `false` to disable
50+
# automated security fixes.
51+
enable_automated_security_fixes: true
52+
53+
# Either `true` to enable vulnerability alerts, or `false` to disable
54+
# vulnerability alerts.
55+
enable_vulnerability_alerts: true
56+
57+
# Either `true` to make this repo available as a template repository or `false` to prevent it.
58+
# is_template: false
59+
# template_repository: false
60+
61+
# `true` to archive this repository. Note: You cannot unarchive repositories through the API.
62+
archived: false
63+
64+
# Labels: define labels for Issues and Pull Requests
65+
labels:
66+
- name: bug
67+
color: '#cc0000'
68+
description: An issue with the system 🐛.
69+
70+
- name: feature
71+
color: '#336699'
72+
description: New functionality
73+
74+
- name: WIP
75+
color: '#faf064'
76+
description: Work in progress
77+
78+
- name: draft
79+
color: '#c800c8'
80+
81+
- name: next-release
82+
# If including a `#`, make sure to wrap it with quotes!
83+
color: '#009899'
84+
description: Next Release
85+
86+
# Milestones: define milestones for Issues and Pull Requests
87+
# milestones:
88+
# - title: milestone-title
89+
# description: milestone-description
90+
# # The state of the milestone. Either `open` or `closed`
91+
# state: open
92+
93+
# Collaborators: give specific users access to this repository.
94+
# See https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator for available options
95+
# collaborators:
96+
# - username: my-user
97+
# # Note: `permission` is only valid on organization-owned repositories.
98+
# # The permission to grant the collaborator. Can be one of:
99+
# # * `pull` - can pull, but not push to or administer this repository.
100+
# # * `push` - can pull and push, but not administer this repository.
101+
# # * `admin` - can pull, push and administer this repository.
102+
# # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
103+
# # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
104+
# permission: admin
105+
106+
branches:
107+
- name: master
108+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
109+
# Branch Protection settings. Set to null to disable
110+
protection:
111+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
112+
# required_pull_request_reviews:
113+
# The number of approvals required. (1-6)
114+
# required_approving_review_count: 1
115+
# Dismiss approved reviews automatically when a new commit is pushed.
116+
# dismiss_stale_reviews: true
117+
# Blocks merge until code owners have reviewed.
118+
# require_code_owner_reviews: true
119+
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
120+
# dismissal_restrictions: {}
121+
# users: []
122+
# teams: []
123+
# Required. Require status checks to pass before merging. Set to null to disable
124+
required_status_checks:
125+
# Required. Require branches to be up to date before merging.
126+
strict: true
127+
# Required. The list of status checks to require in order to merge into this branch
128+
contexts:
129+
- quality-checks
130+
# Commits pushed to matching branches must have verified signatures. Set to false to disable.
131+
required_signatures: false
132+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
133+
enforce_admins: true
134+
# Prevents merge commits from being pushed to matching branches. Set to false to disable.
135+
required_linear_history: true
136+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
137+
restrictions:
138+
# apps: []
139+
# users: []
140+
# teams: []
141+
# Permits force pushes for all users with push access. Set to null to disable.
142+
allow_force_pushes: true
143+
# Allows users with push access to delete matching branches. Set to false to disable.
144+
allow_deletions: false
145+
# Ensure all review conversations are seen and addressed prior to merging
146+
required_conversation_resolution: true

.github/workflows/quality-checks.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Quality Checks
4+
concurrency:
5+
group: Quality-Checks-${{ github.head_ref }}
6+
cancel-in-progress: true
7+
on:
8+
pull_request:
9+
jobs:
10+
quality-checks:
11+
runs-on: ubuntu-20.04
12+
timeout-minutes: 10
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
- name: Cache Pre-commit
17+
uses: actions/cache@v2
18+
with:
19+
path: |
20+
~/.cache/pre-commit
21+
~/.cache/jsonschema_validate
22+
~/.cache/pip
23+
key: ${{ runner.os }}-${{ hashFiles('./.pre-commit-config.yaml') }}
24+
- name: Pre-commit
25+
uses: pre-commit/[email protected]

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ material-style.min.css
328328
/public/styles/sass-cache
329329

330330
release.zip
331-
release/*
331+
release/
332332

333333
public/bundle.css
334334
public/bundle.css.map

.markdownlint.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/markdownlint.json
2+
3+
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
4+
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
5+
6+
# Default state for all rules
7+
default: true
8+
9+
MD013:
10+
line_length: 300

0 commit comments

Comments
 (0)