Files
buildpath/frontend/eslint.config.mjs
Valentin Haudiquet db2ca353c5
All checks were successful
pipeline / lint-and-format (push) Successful in 4m35s
pipeline / build-and-push-images (push) Successful in 1m39s
feat: first back recording and display (#12)
Record first backs, group them by item sets and show the most popular ones, with gold and %, in the frontend.
2026-04-28 20:10:20 +02:00

57 lines
1.5 KiB
JavaScript

// @ts-check
import './eslint-polyfill.mjs'
import withNuxt from './.nuxt/eslint.config.mjs'
import js from '@eslint/js'
import prettier from 'eslint-config-prettier'
import globals from 'globals'
import typescriptEslint from 'typescript-eslint'
import vue from 'eslint-plugin-vue'
export default withNuxt([
js.configs.recommended,
...typescriptEslint.configs.recommended,
...vue.configs['flat/recommended'],
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
// Add global types from our API definitions
ChampionSummary: 'readonly',
LaneData: 'readonly',
ChampionData: 'readonly',
ItemTree: 'readonly',
ItemTag: 'readonly',
Builds: 'readonly',
PerkStyle: 'readonly',
PerksResponse: 'readonly',
PerkStylesResponse: 'readonly',
Champion: 'readonly',
ChampionsResponse: 'readonly',
ChampionResponse: 'readonly',
ItemResponse: 'readonly',
MatchupData: 'readonly',
Item: 'readonly',
SummonerSpell: 'readonly',
Perk: 'readonly',
FirstBackGroup: 'readonly'
}
},
rules: {
semi: 'off',
'prefer-const': 'error',
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'vue/multi-word-component-names': 'off'
}
}
])