-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (34 loc) · 927 Bytes
/
eslint.config.js
File metadata and controls
36 lines (34 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @license
* Copyright 2026 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
const js = require('@eslint/js');
const tseslint = require('typescript-eslint');
const prettier = require('eslint-plugin-prettier/recommended');
const jest = require('eslint-plugin-jest');
const globals = require('globals');
module.exports = tseslint.config(
{
ignores: [
'third_party/**',
'content/static/js/**/*.js',
'content/static/js/**/*.js.map',
'static/**/*.js',
'static/**/*.js.map',
'node_modules/**',
],
},
js.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
languageOptions: { globals: { ...globals.browser } },
},
{
files: ['**/*.test.ts'],
...jest.configs['flat/recommended'],
rules: { '@typescript-eslint/no-explicit-any': 'off' },
}
);