Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed Jun 17, 2024
1 parent 127f679 commit b154c7b
Show file tree
Hide file tree
Showing 9 changed files with 1,374 additions and 4,454 deletions.
52 changes: 0 additions & 52 deletions frontend/.eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save=true
16 changes: 8 additions & 8 deletions frontend/.stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
plugins: ['stylelint-stylistic'],
plugins: ['@stylistic/stylelint-plugin'],
defaultSeverity: 'warning',
customSyntax: 'postcss-less',
rules: {
'stylistic/no-eol-whitespace': true,
'stylistic/block-opening-brace-space-before': 'always-multi-line',
'stylistic/block-opening-brace-newline-after': 'always-multi-line',
'stylistic/block-opening-brace-space-after': 'always-single-line',
'stylistic/block-closing-brace-space-before': 'always-single-line',
'stylistic/block-closing-brace-newline-before': 'always-multi-line',
'stylistic/indentation': 4
'@stylistic/no-eol-whitespace': true,
'@stylistic/block-opening-brace-space-before': 'always-multi-line',
'@stylistic/block-opening-brace-newline-after': 'always-multi-line',
'@stylistic/block-opening-brace-space-after': 'always-single-line',
'@stylistic/block-closing-brace-space-before': 'always-single-line',
'@stylistic/block-closing-brace-newline-before': 'always-multi-line',
'@stylistic/indentation': 4
}
};
2 changes: 1 addition & 1 deletion frontend/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = function (grunt) {
maxWarnings: grunt.option('maxWarnings'),
fix: grunt.option('fix')
},
files: ['js/**/*.js', './{,.}*.js', '!js/libs/**/{,.}*']
files: ['.']
},

stylelint: {
Expand Down
63 changes: 63 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import globals from "globals";

export default [{
ignores: ["js/libs", "src", "target"]
}, {
rules: {
"no-trailing-spaces": "warn",
"keyword-spacing": "warn",

"space-before-function-paren": ["warn", {
named: "never",
anonymous: "always",
asyncArrow: "always"
}],

"function-call-argument-newline": ["warn", "consistent"],
"block-spacing": "warn",
"object-curly-spacing": ["warn", "always"],
"key-spacing": "warn",
"comma-dangle": "warn",
quotes: "warn",

"no-multiple-empty-lines": ["warn", {
max: 1
}],

semi: "warn",

indent: ["warn", 4, {
ignoredNodes: [
"Program > ExpressionStatement > CallExpression[callee.name=\"define\"] > FunctionExpression.arguments > .body"
],

VariableDeclarator: 0
}],

"one-var": ["warn", "never"],
"space-infix-ops": "warn",
"no-multi-spaces": "warn",
"space-before-blocks": "warn"
}
}, {
files: ["*.js"],

languageOptions: {
globals: {
...globals.node
}
},

rules: {
quotes: ["warn", "single"]
}
}, {
files: ["js/**/*"],

languageOptions: {
globals: {
...globals.browser,
...globals.amd
}
}
}];
Loading

0 comments on commit b154c7b

Please sign in to comment.