Skip to content

Commit

Permalink
build : upgrade nodefony demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamensuli committed Oct 31, 2023
1 parent 8da56ca commit 6edbfe2
Show file tree
Hide file tree
Showing 84 changed files with 2,640 additions and 1,688 deletions.
15 changes: 15 additions & 0 deletions demo/nodefony/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
assets
**/assets/**
app/Resources/public/assets/
app/Resources/views/base.html.twig
config/generatedConfig.yml
app/Resources/databases/*
web/*

node_modules
**/node_modules/**

**/workbox-*
**/hot/*
**/service-worker.js

97 changes: 97 additions & 0 deletions demo/nodefony/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
commonjs: true,
es2021: true
},
// Extends: ["standard"],
extends: [
"plugin:vue/vue3-essential",
// 'eslint:recommended',
"eslint:all"
// 'standard'
],
plugins: ["prettier"],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
globals: {
nodefony: true,
kernel: true,
process: true,
require: true,
console: true,
module: true,
exports: true,
yaml: true,
util: true,
fs: true,
path: true,
cluster: true,
xmlParser: true,
async: true,
crypto: true,
Sequelize: true,
url: true,
http: true,
https: true,
pm2: true,
WebSocketServer: true,
nodedomain: true,
dns: true,
Promise: true,
zone: true,
it: true,
describe: true,
before: true,
beforeEach: true,
BlueBird: true,
twig: true,
shell: true,
clc: true,
notDefinded: true,
varNotExit: true,
window: true,
document: true,
navigator: true,
stage: true,
$: true,
jQuery: true,
Rx: true,
inquirer: true,
workbox: true
},
rules: {
"no-console": process.env.NODE_ENV === "production"
? "warn"
: "off",
"no-debugger": process.env.NODE_ENV === "production"
? "warn"
: "off",
"quotes": ["error", "double"],
"max-len": ["error", {"code": 150}],
"padded-blocks": ["error", "never"],
"id-length": ["error", {min: 1}],
"indent": ["error", 2],
"function-call-argument-newline": ["error", "consistent"],
"array-bracket-newline": ["error", "consistent"],
"quote-props": [0],
"no-return-await": [0],
"sort-keys": [0],
"array-element-newline": [0],
"dot-location": [0],
"multiline-comment-style": [0],
"capitalized-comments": [0],
"max-lines-per-function": ["warn", 100],
"no-await-in-loop": [0],
"max-statements": ["warn", 20],
"no-magic-numbers": [0],
"sort-vars": ["off"],
"no-ternary": ["off"],
"multiline-ternary": ["error", "always-multiline"]
}
};
1 change: 1 addition & 0 deletions demo/nodefony/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ app/Resources/databases/*
node_modules/**
**/node_modules/**
npm-debug.log
pnpm-lock.yaml
*.[oa]

config/certificates/**/*
Expand Down
1 change: 0 additions & 1 deletion demo/nodefony/.jshintignore

This file was deleted.

60 changes: 0 additions & 60 deletions demo/nodefony/.jshintrc

This file was deleted.

0 comments on commit 6edbfe2

Please sign in to comment.