Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

40 changes: 38 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,48 @@ updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
interval: weekly
day: monday
time: "03:00"
open-pull-requests-limit: 10
groups:
# One PR for Drupal core packages, which must move together.
drupal-core:
patterns:
- "drupal/core*"
# Contrib modules, drush and dev tooling: minor and patch in one PR.
# Majors still get their own PR each, because they need a manual look.
composer-minor-patch:
update-types:
- minor
- patch
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
interval: weekly
day: monday
time: "03:00"
open-pull-requests-limit: 10
groups:
npm-minor-patch:
update-types:
- minor
- patch
# Lint stack majors usually need config changes together.
lint-major:
update-types:
- major
patterns:
- "eslint*"
- "@eslint/*"
- "prettier"
- "stylelint*"
- "globals"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
37 changes: 17 additions & 20 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
"stylelint-config-standard"
],
"plugins": [
"stylelint-prettier"
],
"plugins": ["stylelint-prettier"],
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"include",
"mixin",
"extend",
"if",
"else",
"each",
"content",
"import",
"function",
"return"
]
}],
"no-descending-specificity": null,
"function-calc-no-invalid": null,
"selector-class-pattern": null,
"prettier/prettier": true
}
}
},
"overrides": [
{
"files": [
"**/*.scss"
],
"extends": [
"stylelint-config-standard-scss"
]
}
]
}
48 changes: 48 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import js from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';

export default [
{
ignores: [
'**/node_modules/',
'**/dist/',
'**/storybook-static/',
'**/*.min.js',
'**/*.bundle.js',
],
},
js.configs.recommended,
{
// Parse as modules with JSX so themes' Storybook stories and Vite entries
// work. Drupal behaviors in IIFEs parse fine as modules too.
files: ['web/modules/custom/**/*.js', 'web/themes/custom/**/*.js'],
languageOptions: {
sourceType: 'module',
parserOptions: {
ecmaFeatures: { jsx: true },
},
globals: {
...globals.browser,
Drupal: 'readonly',
drupalSettings: 'readonly',
once: 'readonly',
jQuery: 'readonly',
},
},
},
{
// Build tool config files run in Node.
files: ['**/*.config.js', '**/webpack/**/*.js', '**/.storybook/**/*.js'],
languageOptions: {
globals: globals.node,
},
},
{
files: ['**/*.test.js'],
languageOptions: {
globals: globals.jest,
},
},
eslintPluginPrettierRecommended,
];
Loading
Loading