Skip to content

Commit

Permalink
Добавил Eslint и Prettier в проект (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
PancakePhilarmonych committed Nov 28, 2023
1 parent a017cea commit be8dfea
Show file tree
Hide file tree
Showing 20 changed files with 3,887 additions and 196 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.eslintrc.js
.github
.vscode
package-lock.json
package.json
.editorconfig
README.md
32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-strongly-recommended',
'plugin:prettier/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: {
ts: '@typescript-eslint/parser',
'<template>': 'espree',
},
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier', 'vue'],
root: true,
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-undef': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
semi: ['error', 'always'],
},
};
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master

pull_request:
types: [ closed ]
branches: [ master ]
types: [closed]
branches: [master]

jobs:
deploy:
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "all",
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"printWidth": 100,
"htmlWhitespaceSensitivity": "ignore"
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# MERGE-GAME


I started this project to learn pixi.js and game development on a web platform.

Stack: Vue3 / TS / Vite / Pixi.JS / GSAP
Expand Down
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
Loading

0 comments on commit be8dfea

Please sign in to comment.