forked from jpmorganchase/modular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (38 loc) · 1 KB
/
.eslintrc.js
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
'use strict';
// Short hand codes for the values eslint expects
// Might feel like overkill, but is also effectively visually
// when scanning through the config and looking for values.
// eslint-disable-next-line no-unused-vars
const ERROR = 'error';
const WARN = 'warn';
const OFF = 'off';
module.exports = {
extends: ['modular-app/recommended'],
rules: {
strict: [WARN, 'global'],
'import/no-extraneous-dependencies': ['error', { devDependencies: false }],
},
overrides: [
{
files: [
'**/*.test.*',
'**/__tests__/**',
'**/modular-template-app/**',
'**/modular-template-view/**',
'**/modular-template-esm-view/**',
],
rules: {
'import/no-extraneous-dependencies': OFF,
'react/jsx-pascal-case': OFF,
},
},
{
// if we want to use js in this repo, then they have
// to be explicitly marked as modules
files: '**/*.js',
parserOptions: {
sourceType: 'script',
},
},
],
};