Skip to content

Commit dcefef0

Browse files
committed
chore: update tooling
1 parent 7a7a530 commit dcefef0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1453
-3120
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ We 💛 contributions! The rules for contributing to this org are few:
77
1. Lint and run tests locally before submitting a PR
88
1. Adhere to the code style the org has chosen
99

10-
1110
## Before Committing
1211

1312
1. Use at least Node.js v6.14.4 or higher. [NVM](https://github.com/creationix/nvm) can be handy for switching between Node versions.

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🐞 Bug Report
33
about: Something went awry and you'd like to tell us about it.
4-
54
---
65

76
<!--
@@ -26,10 +25,8 @@ about: Something went awry and you'd like to tell us about it.
2625
3. Provide a minimal repository link (Read https://git.io/fNzHA for instructions). These may take more time to triage than the other options.
2726
-->
2827

29-
3028
### Expected Behavior
3129

32-
3330
### Actual Behavior
3431

3532
<!--

.github/ISSUE_TEMPLATE/DOCS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 📚 Documentation
33
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4-
54
---
65

76
<!--
@@ -25,5 +24,4 @@ Documentation Is:
2524

2625
### Please Explain in Detail...
2726

28-
2927
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: ✨ Feature Request
33
about: Suggest an idea for this project
4-
54
---
65

76
<!--
@@ -16,5 +15,4 @@ about: Suggest an idea for this project
1615

1716
### Feature Use Case
1817

19-
2018
### Feature Proposal

.github/ISSUE_TEMPLATE/MODIFICATION.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🔧 Modification Request
33
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4-
54
---
65

76
<!--
@@ -14,11 +13,8 @@ about: Would you like something work differently? Have an alternative approach?
1413
👉🏽 Need help or support? Open a SUPPORT issue instead.
1514
-->
1615

17-
1816
### Expected Behavior / Situation
1917

20-
2118
### Actual Behavior / Situation
2219

23-
2420
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🆘 Support, Help, and Advice
33
about: 👉🏽 If you want to ask how to do a thing with this project, this is the place for you.
4-
54
---
65

76
If you arrived here because you think this project's documentation is unclear, insufficient, or wrong, please consider creating an issue for the documentation instead.

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
.DS_Store
2-
.eslintcache
3-
.nyc_output
4-
*~
5-
dist
6-
7-
coverage.*
8-
node_modules/
92
npm-debug.log
10-
test.ts
3+
dist
4+
node_modules

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.14.0

.oxlintrc.json

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"ignore": [
3+
"**/*.coffee",
4+
"**/*.css",
5+
"**/*.hbs",
6+
"**/*.json",
7+
"**/*.less",
8+
"**/*.scss",
9+
"**/*.svg",
10+
"dist/**",
11+
"node_modules/**"
12+
],
13+
"project": [
14+
"./apps/desktop/tsconfig.json",
15+
"./apps/web/tsconfig.json",
16+
"./shared/tsconfig.lint.json"
17+
],
18+
"rules": {
19+
"correctness/no-array-constructor": "error",
20+
"correctness/no-class-assign": "error",
21+
"correctness/no-cond-assign": "error",
22+
"correctness/no-const-assign": "error",
23+
"correctness/no-constant-condition": "warn",
24+
"correctness/no-control-regex": "error",
25+
"correctness/no-debugger": "error",
26+
"correctness/no-dupe-args": "error",
27+
"correctness/no-dupe-class-members": "error",
28+
"correctness/no-dupe-keys": "error",
29+
"correctness/no-duplicate-case": "error",
30+
"correctness/no-empty-character-class": "error",
31+
"correctness/no-empty-pattern": "error",
32+
"correctness/no-ex-assign": "error",
33+
"correctness/no-func-assign": "error",
34+
"correctness/no-invalid-regexp": "error",
35+
"correctness/no-irregular-whitespace": "error",
36+
"correctness/no-obj-calls": "error",
37+
"correctness/no-octal": "error",
38+
"correctness/no-prototype-builtins": "error",
39+
"correctness/no-regex-spaces": "error",
40+
"correctness/no-self-assign": "error",
41+
"correctness/no-sparse-arrays": "error",
42+
"correctness/no-template-curly-in-string": "error",
43+
"correctness/no-this-before-super": "error",
44+
"correctness/no-undef": "error",
45+
"correctness/no-unreachable": "error",
46+
"correctness/no-unsafe-finally": "error",
47+
"correctness/no-unsafe-negation": "error",
48+
"correctness/require-yield": "error",
49+
"correctness/use-isnan": "error",
50+
"correctness/valid-typeof": "error",
51+
"performance/no-new-buffer": "error",
52+
"style/camelcase": [
53+
"error",
54+
{
55+
"properties": "never"
56+
}
57+
],
58+
"style/capitalized-comments": "off",
59+
"style/comma-dangle": ["error", "never"],
60+
"style/eqeqeq": [
61+
"error",
62+
"always",
63+
{
64+
"null": "ignore"
65+
}
66+
],
67+
"style/linebreak-style": ["error", "unix"],
68+
"style/new-cap": [
69+
"error",
70+
{
71+
"capIsNew": false,
72+
"newIsCap": true
73+
}
74+
],
75+
"style/no-bitwise": "error",
76+
"style/no-continue": "error",
77+
"style/no-else-return": "error",
78+
"style/no-lonely-if": "error",
79+
"style/no-multi-assign": ["error"],
80+
"style/no-new-object": "error",
81+
"style/no-param-reassign": ["warn", { "props": false }],
82+
"style/no-plusplus": [
83+
"error",
84+
{
85+
"allowForLoopAfterthoughts": true
86+
}
87+
],
88+
"style/no-unneeded-ternary": [
89+
"error",
90+
{
91+
"defaultAssignment": false
92+
}
93+
],
94+
"style/no-var": "error",
95+
"style/object-shorthand": [
96+
"error",
97+
"always",
98+
{
99+
"avoidQuotes": true,
100+
"ignoreConstructors": false
101+
}
102+
],
103+
"style/one-var": ["error", "never"],
104+
"style/operator-assignment": ["error", "always"],
105+
"style/prefer-const": [
106+
"error",
107+
{
108+
"destructuring": "any",
109+
"ignoreReadBeforeAssign": true
110+
}
111+
],
112+
"style/prefer-destructuring": [
113+
"warn",
114+
{
115+
"array": false,
116+
"object": true
117+
}
118+
],
119+
"style/prefer-numeric-literals": "error",
120+
"style/prefer-rest-params": "error",
121+
"style/prefer-spread": "error",
122+
"style/prefer-template": "error",
123+
"style/radix": "error",
124+
"style/spaced-comment": ["error", "always"],
125+
"style/strict": "error",
126+
"style/symbol-description": "error",
127+
"style/vars-on-top": "error",
128+
"style/yoda": "error",
129+
"suspicious/no-await-in-loop": "error",
130+
"suspicious/no-compare-neg-zero": "error",
131+
"suspicious/no-empty": ["error", { "allowEmptyCatch": true }],
132+
"suspicious/no-empty-function": [
133+
"error",
134+
{
135+
"allow": ["arrowFunctions", "functions", "methods"]
136+
}
137+
],
138+
"suspicious/no-eval": "error",
139+
"suspicious/no-extend-native": "error",
140+
"suspicious/no-extra-bind": "error",
141+
"suspicious/no-extra-boolean-cast": "error",
142+
"suspicious/no-fallthrough": "error",
143+
"suspicious/no-global-assign": "error",
144+
"suspicious/no-implied-eval": "error",
145+
"suspicious/no-inner-declarations": "error",
146+
"suspicious/no-iterator": "error",
147+
"suspicious/no-labels": "error",
148+
"suspicious/no-lone-blocks": "error",
149+
"suspicious/no-loop-func": "error",
150+
"suspicious/no-multi-str": "error",
151+
"suspicious/no-new": "error",
152+
"suspicious/no-new-func": "error",
153+
"suspicious/no-new-wrappers": "error",
154+
"suspicious/no-octal-escape": "error",
155+
"suspicious/no-return-assign": "error",
156+
"suspicious/no-return-await": "error",
157+
"suspicious/no-script-url": "error",
158+
"suspicious/no-self-compare": "error",
159+
"suspicious/no-sequences": "error",
160+
"suspicious/no-throw-literal": "error",
161+
"suspicious/no-unmodified-loop-condition": "off",
162+
"suspicious/no-unused-expressions": [
163+
"error",
164+
{
165+
"allowShortCircuit": true,
166+
"allowTernary": false
167+
}
168+
],
169+
"suspicious/no-unused-labels": "error",
170+
"suspicious/no-useless-concat": "error",
171+
"suspicious/no-useless-constructor": "error",
172+
"suspicious/no-useless-escape": "error",
173+
"suspicious/no-useless-return": "error",
174+
"suspicious/no-void": "off",
175+
"suspicious/no-with": "error",
176+
"unicorn/no-new-array": "off",
177+
"unicorn/no-useless-fallback-in-spread": "off"
178+
},
179+
"typescript": true
180+
}

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**/@codegen
2+
**/cdk.out
3+
**/dist/
4+
**/fixtures/
5+
**/snapshots/
6+
7+
.cdk
8+
.github/PULL_REQUEST_TEMPLATE.md
9+
.moon/cache
10+
cdk.out
11+
dist
12+
13+
pnpm-lock.yaml

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "always",
3+
"importOrder": ["<BUILTIN_MODULES>", "", "<THIRD_PARTY_MODULES>", "", "^[~]", "", "^[.]"],
4+
"plugins": ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-package"],
5+
"printWidth": 100,
6+
"singleQuote": true,
7+
"trailingComma": "none"
8+
}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
[tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-values-parser.svg
1+
[tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-values-parser.svg
22
[tests-url]: https://circleci.com/gh/shellscape/postcss-values-parser
3-
43
[cover]: https://codecov.io/gh/shellscape/postcss-values-parser/branch/master/graph/badge.svg
54
[cover-url]: https://codecov.io/gh/shellscape/postcss-values-parser
6-
75
[size]: https://packagephobia.now.sh/badge?p=postcss-values-parser
86
[size-url]: https://packagephobia.now.sh/result?p=postcss-values-parser
97

ava.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
extensions: ['ts'],
33
files: ['!**/fixtures/**', '!**/helpers/**', '!**/rewiremock.js'],
44
require: ['ts-node/register', './test/rewiremock.js']

codecov.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/AtWord.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ The `AtWord` node inherits directly from `AtRule` in PostCSS, and is purely cosm
55
## Properties
66

77
### `name`
8+
89
Type: `String`<br>
910

1011
The portion of the at-word which identifies it, minus the leading `@` character.
1112

1213
### `type`
14+
1315
Type: `String`
1416
Value: `'atword'`
1517

1618
## Example Values
1719

1820
```css
19-
@batman
20-
@color
21+
@batman @color;
2122
```
2223

2324
_Note: Using the `variables` property, `AtWords` may instead be treated as variables._

docs/Comment.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@ The `Comment` node inherits directly from `Comment` in PostCSS. This node repres
55
## Properties
66

77
### `inline`
8+
89
Type: `Boolean`<br>
910

1011
If `true`, indicates that the type of comment is "inline," or a comment that begins with `//`. If `false`, indicates that the comment is a traditional block comment.
1112

1213
### `type`
14+
1315
Type: `String`
1416
Value: `'comment'`
1517

1618
### `value`
19+
1720
Type: `String`<br>
1821

1922
A `String` representation of the body of the comment.
2023

2124
## Example Values
2225

2326
```css
24-
// na na na na na na na na batmannnnn
25-
/* joker cheats at poker */
27+
// na na na na na na na na batmannnnn
28+
/* joker cheats at poker */
2629
```

0 commit comments

Comments
 (0)