-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (41 loc) · 887 Bytes
/
eslint.config.js
File metadata and controls
42 lines (41 loc) · 887 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
37
38
39
40
41
42
import globals from 'globals';
import jsdoc from 'eslint-plugin-jsdoc';
import NetflixCommon from '@netflix/eslint-config';
export default [
{
...NetflixCommon,
files: ['**/*.js'],
languageOptions: { globals: globals.browser },
ignores: [
'server.js',
'demo/react/*',
],
},
{
...jsdoc.configs['flat/recommended'],
files: ['x-test.js'],
},
{
...NetflixCommon,
files: ['server.js'],
languageOptions: { globals: globals.node },
},
{
...NetflixCommon,
files: ['demo/react/**/*.js'],
languageOptions: { globals: { ...globals.browser, React: 'readonly', ReactDOM: 'readonly' } },
},
{
ignores: ['types/**'],
},
{
settings: {
jsdoc: {
preferredTypes: [
// TypeScript knows about this, but eslint does not.
'TemplateStringsArray',
],
},
},
},
];