Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix: Wire up YAML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c committed Feb 15, 2023
1 parent 460e3a7 commit 3a9a21d
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['seek'],
ignorePatterns: ['**/.eslintrc.js'],
ignorePatterns: [
'**/.eslintrc.js',

// Gantry resource files support non-standard template syntax
'/.gantry/**/*.yaml',
'/.gantry/**/*.yml',
'gantry*.yaml',
'gantry*.yml',
],
overrides: [
{
extends: [
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
parserOptions: {
project: './tsconfig.json',
},
Expand All @@ -17,7 +25,7 @@ module.exports = {
},
},
{
files: ['**/*.js', '**/*.jsx'],
files: ['*.js', '*.jsx'],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
Expand All @@ -26,16 +34,16 @@ module.exports = {
},
},
{
files: ['**/*.ts', '**/*.tsx'],
files: ['*.ts', '*.tsx'],
plugins: ['eslint-plugin-tsdoc'],
rules: {
'tsdoc/syntax': 'error',
},
},
{
files: [
'**/*.test.ts',
'**/*.test.tsx',
'*.test.ts',
'*.test.tsx',
'**/testing/**/*.ts',
'**/testing/**/*.tsx',
],
Expand All @@ -57,6 +65,10 @@ module.exports = {
'tsdoc/syntax': 'off',
},
},
{
extends: ['plugin:yml/prettier'],
files: ['*.yaml', '*.yml'],
},
],
rules: {
'import/no-duplicates': 'error',
Expand Down

0 comments on commit 3a9a21d

Please sign in to comment.