Skip to content
Merged
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
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ check-static-typing:
format: ## Format source files
mix format
cd assets && npx prettier --write $(PRETTIER_FILES_PATTERN)
cd assets && npx stylelint $(STYLES_PATTERN) --fix --quiet

.PHONY: lint
lint: lint-elixir lint-scripts lint-styles ## Lint source files
lint: lint-elixir lint-scripts ## Lint source files

.PHONY: lint-elixir
lint-elixir:
Expand All @@ -138,7 +137,3 @@ lint-elixir:
.PHONY: lint-scripts
lint-scripts:
cd assets && npx eslint .

.PHONY: lint-styles
lint-styles:
cd assets && npx stylelint $(STYLES_PATTERN)
3 changes: 0 additions & 3 deletions assets/.eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions assets/.eslintrc.json

This file was deleted.

35 changes: 35 additions & 0 deletions assets/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import js from '@eslint/js';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import miregoPlugin from 'eslint-plugin-mirego';
import globals from 'globals';

export default [
js.configs.recommended,
{
ignores: ['node_modules/*', '**/static/*.js', 'static/**/*.js']
},
{
files: ['**/*.ts'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
parser: tsParser,
parserOptions: {
project: null
},
globals: {
...globals.browser,
...globals.es2021
}
},
plugins: {
'@typescript-eslint': tsPlugin,
mirego: miregoPlugin
},
rules: {
...tsPlugin.configs.recommended.rules,
...miregoPlugin.configs.recommended.rules
}
}
];
Loading