forked from polkadot-developers/substrate-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 954 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
35
36
37
38
39
module.exports = {
/* parser: '@typescript-eslint/parser', */
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'prettier',
// TODO: fixing sec eslint issues
// Those are some additional security-related lints.
// There's a chance those will introduce some false positives to our CI,
// but the stakes are rather high here, so better safe than sorry
// 'plugin:security/recommended',
],
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
node: true,
es6: true,
},
plugins: ['react', 'prettier', 'simple-import-sort'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'simple-import-sort/imports': 'error',
// Disable prop-types
'react/prop-types': 'off',
// Enable prettier rules
'prettier/prettier': 'error',
},
};