PASSAGGIO A VITE !

AGG. 1.1.23
This commit is contained in:
Surya Paolo
2025-03-01 14:14:43 +01:00
parent f0098e57b2
commit bc960d38a1
1044 changed files with 5323 additions and 10823777 deletions

View File

@@ -1,5 +1,6 @@
const { resolve } = require('path')
module.exports = {
import { resolve } from 'path';
export default {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
@@ -28,7 +29,7 @@ module.exports = {
// Rules order is important, please avoid shuffling them
extends: [
// Base ESLint recommended rules
// Base ESLint recommended rules
// 'eslint:recommended',
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
@@ -67,6 +68,7 @@ module.exports = {
],
globals: {
importScripts: 'readonly',
ga: 'readonly', // Google Analytics
cordova: 'readonly',
__statics: 'readonly',
@@ -81,6 +83,7 @@ module.exports = {
// add your custom rules here
rules: {
'no-undef': 'error', // Mantieni il controllo per le variabili non definite
// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
@@ -95,10 +98,9 @@ module.exports = {
'error', {
'singleline': 15,
'multiline': 15
}],
}],
'import/first': 'off',
'import/named': 'off',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
'import/no-unresolved': 'off',
@@ -120,7 +122,7 @@ module.exports = {
'@typescript-eslint/no-unsafe-argument': 'off',
// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': import.meta.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-classes-per-file': 'off',
'no-useless-constructor': 'off',