-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (34 loc) · 981 Bytes
/
Copy patheslint.config.js
File metadata and controls
36 lines (34 loc) · 981 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
'use strict';
const eslint = require('@eslint/js');
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const tsParser = require('@typescript-eslint/parser');
const prettierRecommended = require('eslint-plugin-prettier/recommended');
const globals = require('globals');
module.exports = [
{
ignores: ['build/**', 'dist/**', 'test/**', 'docs/**', 'samples/**'],
},
eslint.configs.recommended,
...tsPlugin.configs['flat/recommended'],
{
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json'],
},
globals: {
...globals.browser,
...globals.es2021,
...globals.node,
...globals.jest,
},
},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'no-console': 'off',
'spaced-comment': ['error', 'always', { markers: ['/'] }],
},
},
prettierRecommended,
];