Updated stylelint and eslint and resolved problems

This commit is contained in:
Noah Lancien 2024-01-18 15:34:04 +01:00
parent 7c35ad8d6e
commit c22b02bee5
11 changed files with 1284 additions and 778 deletions

View file

@ -29,7 +29,14 @@
"sourceType": "module"
},
"plugins": ["vue", "@typescript-eslint"],
"ignorePatterns": ["webpack.mix.js", "**/vendor/*.js", "**/vendor/**/*.js"],
"ignorePatterns": [
"webpack.mix.js",
"**/*.php",
"**/*.svg",
"**/vendor/*.js",
"**/vendor/**/*.js",
"**/vendor/**/*.scss"
],
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
@ -37,5 +44,19 @@
"semi": ["error", "always"],
"vue/script-indent": ["error", 2, { "baseIndent": 0, "switchCase": 1 }],
"vue/one-component-per-file": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".vue", ".ts", ".d.ts"]
},
"alias": {
"extensions": [".vue", ".js", ".ts", ".scss", ".d.ts"],
"map": [
["~", "./resources/assets"],
["@", "./node_modules"]
]
}
}
}
}

View file

@ -1,8 +1,16 @@
{
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-sass-guidelines",
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-scss"
],
"files": [
"**/*.css",
"**/*.scss"
],
"ignoreFiles": [
"**/vendor/*.css",
"**/vendor/**/*.css",
@ -15,13 +23,23 @@
],
"customSyntax": "postcss-scss",
"rules": {
"indentation": 4,
"string-quotes": "double",
"declaration-property-value-no-unknown": true,
"selector-max-id": null,
"color-no-invalid-hex": true,
"selector-no-qualifying-type": null,
"order/properties-alphabetical-order": null,
"max-nesting-depth": 10,
"selector-max-compound-selectors": 10
"max-nesting-depth": 5,
"selector-max-compound-selectors": 5,
"declaration-colon-newline-after": null,
"value-list-comma-newline-after": null,
"scss/double-slash-comment-empty-line-before": [
"always",
{
"ignore": [
"between-comments",
"stylelint-commands",
"inside-block"
]
}
]
}
}

1911
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,7 @@
"axios": "^0.21",
"bootstrap": "^5.2.0",
"clean-webpack-plugin": "^4.0.0",
"eslint": "^8.23.1",
"eslint": "latest",
"eslint-plugin-vue": "^9.4.0",
"eslint-webpack-plugin": "^3.2.0",
"laravel-mix": "^6.0.6",
@ -37,18 +37,21 @@
"laravel-mix-eslint": "^0.2.0",
"laravel-mix-polyfill": "^3.0.1",
"laravel-mix-stylelint": "^1.0.0",
"prettier": "^2.7.1",
"postcss-discard-comments": "^6.0.0",
"prettier": "latest",
"resolve-url-loader": "^5.0.0",
"sass": "^1.54.9",
"sass": "latest",
"sass-loader": "^12.6.0",
"stylelint": "^14.11.0",
"stylelint-config-idiomatic-order": "^8.1.0",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-webpack-plugin": "^3.3.0",
"stylelint": "^15.11.0",
"stylelint-config-idiomatic-order": "github:ream88/stylelint-config-idiomatic-order",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-config-standard-scss": "^11.1.0",
"stylelint-scss": "^5.3.2",
"stylelint-webpack-plugin": "^4.1.1",
"sweetalert2": "^11.4.24",
"ts-loader": "^9.3.1",
"typescript": "^4.8.3",
"typescript-eslint": "^0.0.1-alpha.0",
"typescript": ">=3.3.1 <5.2.0",
"typescript-eslint": "latest",
"vue": "^3.2.37",
"vue-eslint-parser": "^9.1.0",
"vue-loader": "^16.8.3"

View file

@ -20,6 +20,7 @@
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<rule ref="Generic.Commenting.DocComment.SpacingBeforeTags"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Commenting.Fixme"/>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>

View file

@ -1,2 +1,2 @@
@import "./custom";
@import "sweetalert2/src/sweetalert2";
@import './custom';
@import 'sweetalert2/src/sweetalert2';

View file

@ -4,13 +4,13 @@
*/
/* Global settings */
$ck-primary-color: rgb(100, 100, 100);
$ck-primary-color: #646464;
$ck-secondary-color: $color-brown;
$ck-background-color: #fff;
$ck-shadow-color: 0 0.5rem 1rem rgb(0 0 0 / 35%);
$ck-title-font: "Bookman", sans-serif;
$ck-title-font: 'Bookman', sans-serif;
$ck-title-size: 25px;
$ck-text-font: "Barlow", sans-serif;
$ck-text-font: 'Barlow', sans-serif;
$ck-text-size: 14px;
$ck-accept-color: #3a3;
$ck-deny-color: #a33;
@ -20,8 +20,8 @@ $cn-button-bg-color: $color-brown !default;
$cn-button-font-family: $ck-text-font !default;
#cn-cookie-btn svg {
circle,
path {
fill: $color-brown;
}
circle,
path {
fill: $color-brown;
}
}

View file

@ -1,15 +1,15 @@
.preview-image {
display: block;
max-width: 100%;
max-height: 200px;
margin: 0 auto;
object-fit: contain;
display: block;
max-width: 100%;
max-height: 200px;
margin: 0 auto;
object-fit: contain;
}
.navbar-nav .show > .nav-link {
color: var(--bs-nav-link-color) !important;
color: var(--bs-nav-link-color) !important;
}
.navbar-nav .nav-link.active {
color: var(--bs-navbar-active-color) !important;
color: var(--bs-navbar-active-color) !important;
}

View file

@ -1,5 +1,4 @@
// LIBS
@import "~@fortawesome/fontawesome-svg-core/styles.css";
@import "./common";
@import "~bootstrap";
@import '~@fortawesome/fontawesome-svg-core/styles.css';
@import './common';
@import '~bootstrap';

View file

@ -1,18 +1,19 @@
@import "./onepage/colors";
@import './onepage/colors';
// LIBS
@import "./common";
@import "./cookies_variables";
@import "~@ldc-web/cookie-notice";
@import "./vendor/ckContent";
@import './common';
@import './cookies_variables';
@import '~@ldc-web/cookie-notice';
@import './vendor/ckContent';
@import "./onepage/fonts.css";
@import "./onepage/global.css";
@import "./onepage/utils.css";
@import "./onepage/nav.css";
@import "./onepage/home.css";
@import "./onepage/demarche.css";
@import "./onepage/engagements.css";
@import "./onepage/elevages.css";
@import "./onepage/data.css";
@import "./onepage/footer.css";
// ONEPAGE STYLE
@import './onepage/fonts.css';
@import './onepage/global.css';
@import './onepage/utils.css';
@import './onepage/nav.css';
@import './onepage/home.css';
@import './onepage/demarche.css';
@import './onepage/engagements.css';
@import './onepage/elevages.css';
@import './onepage/data.css';
@import './onepage/footer.css';

View file

@ -1,8 +1,8 @@
:root {
--brown: #342617;
--dark: #111;
--white: #fff;
--yellow: #fbb040;
--brown: #342617;
--dark: #111;
--white: #fff;
--yellow: #fbb040;
}
$color-brown: #342617;