@dvukovic/style-guide 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
+ "version": "0.2.0",
4
+ "files": [
5
+ "src/eslint",
6
+ "src/cspell",
7
+ "src/prettier",
8
+ "src/stylelint"
9
+ ],
3
10
  "scripts": {
4
11
  "lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:stylelint && yarn lint:spell",
5
12
  "lint:eslint": "eslint . --ext .js,.ts,.tsx",
@@ -62,6 +69,5 @@
62
69
  "publishConfig": {
63
70
  "access": "public",
64
71
  "registry": "https://registry.npmjs.org"
65
- },
66
- "version": "0.1.0"
72
+ }
67
73
  }
package/.eslintrc.js DELETED
@@ -1,26 +0,0 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
2
- module.exports = {
3
- root: true,
4
- parser: "@typescript-eslint/parser",
5
- ignorePatterns: ["node_modules"],
6
- extends: [
7
- "./src/eslint/configs/core.js",
8
- "./src/eslint/configs/node.js",
9
- "./src/eslint/configs/mobx.js",
10
- "./src/eslint/configs/react.js",
11
- "./src/eslint/configs/next.js",
12
- ],
13
- parserOptions: {
14
- project: "./tsconfig.json",
15
- },
16
- overrides: [
17
- {
18
- files: ["*.ts", ".js"],
19
- extends: ["./src/eslint/configs/react-typescript.js"],
20
- },
21
- {
22
- files: ["*.test.ts", "*.test.js"],
23
- extends: ["./src/eslint/configs/jest.js"],
24
- },
25
- ],
26
- }
@@ -1,49 +0,0 @@
1
- name: Default
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
- workflow_dispatch:
9
-
10
- jobs:
11
- lint:
12
- name: Lint
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Enable Corepack
16
- run: corepack enable
17
- - uses: actions/checkout@v4
18
- - uses: actions/setup-node@v4
19
- with:
20
- registry-url: "https://registry.npmjs.org"
21
- node-version: 20.x
22
- cache: yarn
23
- - run: yarn
24
- - run: yarn lint
25
-
26
- release:
27
- name: Release
28
- needs: [lint]
29
- if: github.ref == 'refs/heads/master'
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Enable Corepack
33
- run: corepack enable
34
- - uses: actions/checkout@v4
35
- - uses: actions/setup-node@v4
36
- with:
37
- registry-url: "https://registry.npmjs.org"
38
- node-version: 20.x
39
- cache: yarn
40
- - name: git config
41
- run: |
42
- git config user.name "${GITHUB_ACTOR}"
43
- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
44
- - run: yarn
45
- - run: yarn release --ci
46
- env:
47
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- CHANGELOG.md
package/.prettierrc.js DELETED
@@ -1,4 +0,0 @@
1
- /** @type {import("prettier").Config} */
2
- module.exports = {
3
- ...require("./src/prettier/configs/core"),
4
- }
package/.release-it.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/release-it/schema/release-it.json",
3
- "github": {
4
- "release": true
5
- },
6
- "plugins": {
7
- "@release-it/conventional-changelog": {
8
- "infile": "CHANGELOG.md",
9
- "header": "# Changelog",
10
- "preset": {
11
- "name": "conventionalcommits"
12
- }
13
- }
14
- }
15
- }
package/.stylelintrc.js DELETED
@@ -1,4 +0,0 @@
1
- /** @type {import("stylelint").Config} */
2
- module.exports = {
3
- extends: ["./src/stylelint/configs/core.js"],
4
- }
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.1.0 (2024-07-26)
4
-
5
-
6
- ### Features
7
-
8
- * add release it changelog plugin ([2fcb601](https://github.com/vuki656/style-guide/commit/2fcb601483fb4365b7e9a4fd96fa33eaa9679b0f))
package/cspell.config.js DELETED
@@ -1,17 +0,0 @@
1
- /** @type {import("cspell").FileSettings} */
2
- module.exports = {
3
- useGitignore: true,
4
- cache: {
5
- useCache: true,
6
- cacheLocation: "./node_modules/.cache/cspell",
7
- },
8
- dictionaryDefinitions: [
9
- {
10
- name: "shared",
11
- path: "./src/cspell/base.txt",
12
- },
13
- ],
14
- caseSensitive: false,
15
- ignorePaths: ["./src/cspell/base.txt"],
16
- dictionaries: ["shared"],
17
- }
@@ -1,8 +0,0 @@
1
- # Base Stage
2
- FROM node:20.12.0-alpine AS base
3
-
4
- RUN yarn workspaces focus --production --all
5
-
6
- ENV WORKSPACE=${WORKSPACE}
7
-
8
- CMD yarn workspace $WORKSPACE start
@@ -1,14 +0,0 @@
1
- import React from "react"
2
-
3
- export const Test = () => {
4
- const foo = {
5
- bar: 1,
6
- }
7
-
8
- return (
9
- <>
10
- <div>{foo.bar === 3 ? foo.bar : null}</div>
11
- <div />
12
- </>
13
- )
14
- }
@@ -1,4 +0,0 @@
1
- SELECT
2
- *
3
- FROM
4
- "table"
@@ -1,14 +0,0 @@
1
- generator client {
2
- provider = "prisma-client-js"
3
- }
4
-
5
- datasource db {
6
- provider = "postgresql"
7
- url = ""
8
- }
9
-
10
- model Site {
11
- id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
12
- name String
13
- address String
14
- }
@@ -1,6 +0,0 @@
1
- const value = Date.now() - 30
2
- let some = Date.now()
3
-
4
- if (value === some) {
5
- some = "test"
6
- }
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
-
3
- echo "Hello world"
@@ -1,13 +0,0 @@
1
- describe("This", () => {
2
- it("should test that", () => {
3
- expect(1).toBe(3)
4
- })
5
-
6
- it("should test", () => {
7
- expect(1).toBe(1)
8
- })
9
-
10
- it("should test another", () => {
11
- expect(1).toBe(2)
12
- })
13
- })
@@ -1,7 +0,0 @@
1
- <note>
2
- <script />
3
- <to>Tove</to>
4
- <from>Jani</from>
5
- <heading>Reminder</heading>
6
- <body>Don't forget me this weekend!</body>
7
- </note>
@@ -1,74 +0,0 @@
1
- :root {
2
- --orange-1: #ffa500;
3
- --yellow-1: #f9b916;
4
- --black: #000000;
5
- --gray-1: #c6c6c6;
6
- --gray-2: #515151;
7
- --gray-3: #e5e5e5;
8
- --gray-4: #f2f4f4;
9
- --gray-5: #767676;
10
- --green-1: #2aa83f;
11
- --blue-1: #307cff;
12
- --pink-1: #f6eeff;
13
- --purple-1: #be16f9;
14
- --purple-2: #7e30f5;
15
- --purple-3: #312665;
16
- --purple-4: #f6eeff;
17
- --red-1: #fc3e1c;
18
- --white: #ffffff;
19
- --shadow-1: 0 4px 4px 0 rgb(0 0 0 / 8%);
20
- }
21
-
22
- .container {
23
- display: flex;
24
- flex-direction: column;
25
- padding: 25px;
26
- row-gap: 23px;
27
- width: 100%;
28
- }
29
-
30
- .title {
31
- font-size: 1.25rem;
32
- font-weight: 500;
33
- }
34
-
35
- .infoContainer {
36
- font-weight: 400;
37
- }
38
-
39
- .infoLink {
40
- color: var(--gray-2);
41
- text-decoration: underline;
42
- }
43
-
44
- .header {
45
- align-items: center;
46
- display: flex;
47
- justify-content: space-between;
48
- }
49
-
50
- .headerLeftSection {
51
- align-items: center;
52
- column-gap: 20px;
53
- display: flex;
54
- justify-content: flex-start;
55
- }
56
-
57
- .map {
58
- height: 550px;
59
- width: 100%;
60
- }
61
-
62
- .mapContainer {
63
- background-color: var(--white);
64
- padding: 13px;
65
- }
66
-
67
- .itemsContainer {
68
- background-color: var(--white);
69
- min-height: 200px;
70
- }
71
-
72
- a {
73
- color: #ffffff;
74
- }
@@ -1,5 +0,0 @@
1
- export const file = {
2
- greet: (): string => {
3
- return "hi"
4
- },
5
- }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "jsx": "react",
4
- "target": "es2016",
5
- "module": "commonjs",
6
- "esModuleInterop": true,
7
- "noUncheckedIndexedAccess": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "strict": true,
10
- "skipLibCheck": true
11
- },
12
- "include": ["src/**/*", "*.js", ".*.js"]
13
- }