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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ insert_final_newline = true
indent_style = tab
indent_size = 4

[{.*,*.json,*.md,Gemfile.lock,*.yml}]
[{.*,*.json,*.md,Gemfile.lock,Dockerfile,*.yml}]
indent_style = space
indent_size = 2

Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/lint-spaces.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Space Linting
on:
push:
branches-ignore:
- "dependabot/**"
paths:
- "**"
- ".*"
- ".github/workflows/lint-spaces.yml"
- "!méli-mélo/compilation-gelé/**"
- "!**/*.{ico,jpg,png}"
- "!**/*.{eot,ttf,woff}"
- "!**/*.odt"

pull_request:
paths:
- "**"
- ".*"
- ".github/workflows/lint-spaces.yml"
- "!méli-mélo/compilation-gelé/**"
- "!**/*.{ico,jpg,png}"
- "!**/*.{eot,ttf,woff}"
- "!**/*.odt"

jobs:
lint-spaces:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: npm

- name: Install Grunt
run: npm i -g bower grunt-cli --force

- name: Install npm dependencies
run: npm ci

- name: Lintspaces
run: grunt lintspaces
52 changes: 17 additions & 35 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1074,43 +1074,25 @@ module.exports = (grunt) ->
all:
src: [
# Root files
".editorconfig"
".git*"
".*rc"
"*.yml"
"Gemfile*"
"Gruntfile.coffee"
"Licen?e-*.txt"
"*.json"
# "*.json-ld"
"Rakefile"

# Folders
"{sites,common,components,templates,design-patterns,wet-boew}/**"

#
# Exemptions...
#

# Generated files
"!Gemfile.lock"

# Web contents
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.md"
# "{sites,components,templatesdesign-patterns}/*/*.{md,html}"
# "{sites,components,templatesdesign-patterns}/*.{md, html}"
# "!{sites,components,templatesdesign-patterns}/*/**/*.{md,html}"
"\.*"
"**"

# Images
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.{jpg,png,ico}"
"!{sites,common,components,templates,design-patterns,wet-boew}/*.{ico,jpg,png}"
# temp fixed in ESLint updates in #2503
"!**/*.js"

# External fonts
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.{eot,svg,ttf,woff}"

# Docker environment file
# File that gets created/populated in a manner that goes against .editorconfig settings during the main Travis-CI build.
"!script/docker/env"
# Exemptions...
"!node_modules/**"
"!~jekyll-dist/**"
"!_wetboew-demos/**"
"!dist/**"
"!méli-mélo/compilation-gelé/**"
"!méli-mélo-demos/**"

# Binary files
"!**/*.{jpg,png,ico}"
"!**/*.{eot,ttf,woff}"
"!**/*.odt"
"!.DS_Store"
],
options:
editorconfig: ".editorconfig",
Expand Down
2 changes: 1 addition & 1 deletion _data/a11yTestRequirement.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _data/acrConformity.json

Large diffs are not rendered by default.

Loading