Skip to content

Commit bfd607d

Browse files
committed
1.0.3
1 parent c4c0404 commit bfd607d

File tree

10 files changed

+357
-1
lines changed

10 files changed

+357
-1
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2

.eslintrc.yml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
extends:
2+
- eslint:recommended
3+
- "plugin:json/recommended"
4+
- "plugin:@typescript-eslint/recommended"
5+
plugins:
6+
- json
7+
ignorePatterns:
8+
- node_modules
9+
- src/*.js
10+
- src/**/*.js
11+
root: true
12+
env:
13+
node: true
14+
es6: true
15+
parser: "@typescript-eslint/parser"
16+
rules:
17+
no-await-in-loop: error
18+
no-extra-parens: warn
19+
no-template-curly-in-string: error
20+
class-methods-use-this: error
21+
complexity:
22+
- error
23+
- 5
24+
consistent-return: warn
25+
curly: error
26+
dot-notation: warn
27+
eqeqeq: error
28+
guard-for-in: error
29+
no-alert: error
30+
no-caller: error
31+
no-eval: error
32+
no-extend-native: error
33+
no-extra-bind: warn
34+
no-extra-label: warn
35+
no-invalid-this: error
36+
no-magic-numbers: warn
37+
no-multi-spaces: warn
38+
no-new-wrappers: error
39+
no-new: error
40+
no-console: warn
41+
no-proto: error
42+
no-return-await: error
43+
no-self-compare: error
44+
no-sequences: error
45+
no-throw-literal: error
46+
no-unused-expressions: warn
47+
no-useless-call: warn
48+
no-useless-return: warn
49+
radix: error
50+
require-await: error
51+
require-unicode-regexp: error
52+
wrap-iife:
53+
- error
54+
- inside
55+
no-shadow: error
56+
no-label-var: error
57+
no-undef-init: error
58+
no-undefined: error
59+
no-use-before-define: error
60+
func-call-spacing:
61+
- warn
62+
- never
63+
func-names:
64+
- error
65+
- never
66+
func-style:
67+
- warn
68+
- expression
69+
function-call-argument-newline:
70+
- error
71+
- consistent
72+
implicit-arrow-linebreak:
73+
- warn
74+
- beside
75+
indent:
76+
- warn
77+
- 2
78+
- SwitchCase: 1
79+
key-spacing: warn
80+
keyword-spacing: warn
81+
lines-between-class-members:
82+
- warn
83+
- always
84+
max-depth: warn
85+
max-len:
86+
- warn
87+
- code: 80
88+
ignorePattern: eslint
89+
max-params: warn
90+
newline-per-chained-call: warn
91+
new-parens: error
92+
no-array-constructor: error
93+
no-continue: error
94+
no-lonely-if: error
95+
no-multi-assign: error
96+
no-multiple-empty-lines:
97+
- warn
98+
- max: 1
99+
no-nested-ternary: error
100+
no-new-object: error
101+
no-tabs: warn
102+
no-trailing-spaces: warn
103+
no-unneeded-ternary: error
104+
no-whitespace-before-property: warn
105+
object-curly-newline:
106+
- warn
107+
- multiline: true
108+
minProperties: 1
109+
object-curly-spacing:
110+
- warn
111+
- always
112+
object-property-newline: warn
113+
one-var-declaration-per-line:
114+
- error
115+
- always
116+
quotes:
117+
- warn
118+
- single
119+
semi: error
120+
semi-spacing: warn
121+
semi-style:
122+
- error
123+
- last
124+
space-unary-ops:
125+
- warn
126+
- words: true
127+
nonwords: true
128+
space-before-function-paren:
129+
- warn
130+
- never
131+
space-before-blocks:
132+
- warn
133+
- always
134+
switch-colon-spacing:
135+
- warn
136+
- after: true
137+
before: false
138+
template-tag-spacing:
139+
- warn
140+
- always
141+
eol-last:
142+
- warn
143+
- always
144+
computed-property-spacing:
145+
- warn
146+
- never
147+
comma-style:
148+
- warn
149+
- last
150+
comma-spacing: warn
151+
comma-dangle:
152+
- warn
153+
- always
154+
block-spacing:
155+
- warn
156+
- always
157+
array-element-newline: warn
158+
brace-style: warn
159+
array-bracket-spacing:
160+
- warn
161+
- never
162+
- singleValue: true
163+
array-bracket-newline:
164+
- warn
165+
- minItems: 2
166+
prefer-rest-params: warn
167+
template-curly-spacing:
168+
- warn
169+
- always
170+
prefer-const: error
171+
no-var: error
172+
no-useless-constructor: warn
173+
no-useless-computed-key: warn
174+
no-confusing-arrow: warn
175+
arrow-spacing: warn
176+
arrow-body-style:
177+
- warn
178+
- as-needed
179+
parserOptions:
180+
ecmaVersion: 2018

.markdownlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default: true
2+
MD013: false

.mocharc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
recursive: true,
3+
extension: [
4+
'ts'
5+
],
6+
'node-option': [
7+
'experimental-specifier-resolution=node',
8+
'loader=ts-node/esm'
9+
],
10+
parallel: false
11+
}

.npmignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/test
2+
/examples
3+
/nbproject
4+
/README.md
5+
.eslintrc.yml
6+
/.nyc_output
7+
/coverage
8+
/.mocharc.cjs
9+
/.nycrc.json
10+
/.markdownlint.yaml
11+
/.github
12+
/.idea
13+
/tools
14+
/.editorconfig
15+
/SECURITY.md
16+
/CODE_OF_CONDUCT.md
17+
/CONTRIBUTING.md

.nycrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"require": ["mock-fs", "ts-node/register"],
3+
"extension" : [".ts", ".tsx"],
4+
"reporter": ["lcov", "text-summary"],
5+
"all": true,
6+
"sourceMap": true,
7+
"instrument": true,
8+
"exclude": [
9+
"src/validation-result.ts",
10+
"src/task.ts",
11+
"src/request.ts",
12+
"src/middleware.ts",
13+
"src/job.ts",
14+
"src/hashmap.ts",
15+
"src/finished-set.ts",
16+
"src/finished-run.ts",
17+
"src/worker/thread.ts",
18+
"src/worker/worker-constructor.ts",
19+
"src/storage/storage.ts",
20+
"src/report-modifier/report-modifier.ts",
21+
"src/reporter/reporter.ts",
22+
"src/progress/progress.ts",
23+
"src/logger/logger.ts",
24+
"src/helper/static-implements.ts",
25+
"src/open-api/open-api.ts",
26+
"src/result-map.ts"
27+
],
28+
"include": ["src/**/*.ts"]
29+
}

CODE_OF_CONDUCT.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
* Trolling, insulting or derogatory comments, and personal or political attacks
23+
* Public or private harassment
24+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25+
* Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
### 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at [Contributor Covenant Version 2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
74+
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
76+
77+
[homepage]: [www.contributor-covenant.org](https://www.contributor-covenant.org)
78+
79+
For answers to common questions about this code of conduct, see the FAQ at [www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at [www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Björn Büttner
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SECURITY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The current version is always the one being supported for security and bugfixes. Changes to older versions will not happen, due to time restrictions.
6+
7+
## Reporting a Vulnerability
8+
9+
Since this tool is not a tool, that should be accessible to the public, security issues should be limited in scope. Feel free to open an issue if you find any.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/duplicate-style-check",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A linting tool trying to find duplicated stylings",
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)