Skip to content

Commit

Permalink
chore: new eslint flat config and update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Apr 17, 2024
1 parent 3ef4d84 commit a5b5573
Show file tree
Hide file tree
Showing 13 changed files with 1,832 additions and 549 deletions.
7 changes: 0 additions & 7 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
version: 2
updates:
- package-ecosystem: '' # See documentation for possible values
directory: '/' # Location of package manifests
directory: / # Location of package manifests
schedule:
interval: 'weekly'
interval: weekly
12 changes: 6 additions & 6 deletions .github/workflows/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml
name: 'pnpm installation'
description: 'Install and audit dependencies for pnpm'
name: pnpm installation
description: Install and audit dependencies for pnpm
inputs:
cache: # id of input
description: 'The location of the pnpm cache'
description: The location of the pnpm cache
required: true
default: '.pnpm-store'
default: .pnpm-store
version: # id of input
description: 'The version to use'
description: The version to use
required: false
default: 6.10.0

runs:
using: 'composite'
using: composite
steps:
- name: install pnpm
run: npm install pnpm@${{ inputs.version }} -g
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Lint PR'
name: Lint PR

on:
pull_request_target:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
<a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
</p>


# TresJS 🚀 Starter


> Quick start repo for [Tres.js](https://tresjs.org) projects
## Features
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { tresLintConfig } from '@tresjs/eslint-config'

export default tresLintConfig({

}, {
rules: {
'style/max-statements-per-line': 'off',
},
})
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,26 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@tresjs/cientos": "^3.6.0",
"@tresjs/core": "^3.5.1",
"@tresjs/cientos": "^3.8.0",
"@tresjs/core": "^3.8.1",
"@tresjs/leches": "^0.14.0",
"three": "^0.159.0",
"vue": "^3.3.9"
"three": "^0.163.0",
"vue": "^3.4.23"
},
"devDependencies": {
"@tresjs/eslint-config": "^1.0.0",
"@tresjs/eslint-config-vue": "^0.2.1",
"@types/three": "^0.159.0",
"@vitejs/plugin-vue": "^4.5.1",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vite-plugin-glsl": "^1.2.0",
"vue-tsc": "^1.8.24"
"@types/three": "^0.163.0",
"@vitejs/plugin-vue": "^5.0.4",
"eslint": "^9.0.0",
"typescript": "^5.4.5",
"vite": "^5.2.9",
"vite-plugin-glsl": "^1.3.0",
"vue-tsc": "^2.0.13"
}
}
Loading

0 comments on commit a5b5573

Please sign in to comment.