Skip to content

Commit 31b8214

Browse files
committed
Update eslint config format
1 parent d272129 commit 31b8214

File tree

5 files changed

+464
-472
lines changed

5 files changed

+464
-472
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/** @format */
2+
//@ts-check
3+
4+
// extends:
5+
// - eslint:recommended
6+
// - plugin:@typescript-eslint/recommended
7+
// parser: '@typescript-eslint/parser'
8+
// plugins:
9+
// - '@typescript-eslint'
10+
// root: true
11+
12+
import js from '@eslint/js';
13+
import ts from 'typescript-eslint';
14+
/** @type {import('eslint').Linter.Config[]} */
15+
const config = [
16+
js.configs.recommended,
17+
.../** @type {import('eslint').Linter.Config[]} */ (
18+
ts.configs.strictTypeChecked
19+
),
20+
{
21+
files: ['**/*.ts'],
22+
languageOptions: {
23+
parserOptions: {
24+
parser: ts.parser,
25+
},
26+
},
27+
},
28+
];
29+
export default config;

0 commit comments

Comments
 (0)