forked from GirlScriptSummerOfCode/Upay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
26 lines (26 loc) · 546 Bytes
/
Copy path.eslintrc.js
File metadata and controls
26 lines (26 loc) · 546 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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: 'eslint:recommended',
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react'],
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
semi: ['error', 'always'],
'react/jsx-uses-vars': 1,
'react/jsx-uses-react': 1,
},
};