Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix precommit lint #23

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'

36 changes: 18 additions & 18 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Snyk Security Check
on:
push:
pull_request:
push:
pull_request:

jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
6 changes: 5 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
npx lint-staged --concurrent false --relative
# .husky/pre-commit
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
"importOrder": [
"^@core/(.*)$",
"^@server/(.*)$",
"^@ui/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderSideEffects": true,
"importOrderCaseInsensitive": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"semi": false,
"trailingComma": "all",
"arrowParens": "always",
Expand Down
19 changes: 9 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "always"
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "tailwindcss",
"*.scss": "tailwindcss"
}
"editor.formatOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
14 changes: 7 additions & 7 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This document outlines security procedures and general policies for the `standard` project.

- [Security Policies and Procedures](#security-policies-and-procedures)
- [Reporting a Bug](#reporting-a-bug)
- [Disclosure Policy](#disclosure-policy)
- [Comments on this Policy](#comments-on-this-policy)
- [Security Policies and Procedures](#security-policies-and-procedures)
- [Reporting a Bug](#reporting-a-bug)
- [Disclosure Policy](#disclosure-policy)
- [Comments on this Policy](#comments-on-this-policy)

## Reporting a Bug

Expand All @@ -21,9 +21,9 @@ Report security bugs in third-party modules to the person or team maintaining th

When the security team receives a security bug report, they will assign it to a primary handler. This person will coordinate the fix and release process, involving the following steps:

* Confirm the problem and determine the affected versions.
* Audit code to find any potential similar problems.
* Prepare fixes for all releases still under maintenance. These fixes will be released as fast as possible to npm.
- Confirm the problem and determine the affected versions.
- Audit code to find any potential similar problems.
- Prepare fixes for all releases still under maintenance. These fixes will be released as fast as possible to npm.

## Comments on this Policy

Expand Down
3 changes: 1 addition & 2 deletions apps/nt-stylesheet/bin/init-tailwind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

import fs from 'fs'
import { exec } from 'child_process'
import fs from 'fs'
import readline from 'readline'

export const installPackage = (packageName) => {
Expand Down
9 changes: 5 additions & 4 deletions apps/nt-stylesheet/bin/init-tailwind.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { describe, it, expect, vi } from 'vitest'
import fs from 'fs'
import { exec } from 'child_process'
import fs from 'fs'
import readline from 'readline'
import { describe, expect, it, vi } from 'vitest'

import {
installPackage,
createTailwindConfig,
createPostCSSConfig,
createTailwindConfig,
initialize,
installPackage,
} from './init-tailwind.js'

vi.mock('fs')
Expand Down
1 change: 0 additions & 1 deletion apps/nt-stylesheet/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './styles/styles.scss'

import ntTheme from './themes'

export default ntTheme
Loading
Loading