-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 888 Bytes
/
.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
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
es6: true,
node: true,
browser: true,
jest: true
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier', 'prettier/react'],
plugins: ['header', 'react', 'prettier'],
settings: {
react: {
version: '16.8'
}
},
rules: {
'prettier/prettier': ['error'],
'no-console': 'off',
'no-unused-vars': ['error', {ignoreRestSiblings: true}]
}
}