-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·45 lines (44 loc) · 1.02 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
42
43
44
45
const error = 2;
const warn = 1;
const ignore = 0;
module.exports = {
root: true,
extends: [
'eslint-config-airbnb',
'plugin:jsx-a11y/recommended',
'plugin:jest/recommended',
'plugin:import/warnings',
'plugin:json/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
plugins: ['jsx-a11y', 'jest', 'react', 'json'],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
env: {
es6: true,
node: true,
'jest/globals': true,
},
rules: {
strict: [error, 'never'],
'prettier/prettier': [
warn,
{
bracketSpacing: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
},
],
// quotes: [warn, 'single', { avoidEscape: true }],
'arrow-parens': [warn, 'as-needed'],
'import/prefer-default-export': ignore,
'react/prop-types': ignore,
'react/jsx-filename-extension': ignore,
'no-console': ['error', { allow: ['warn', 'error'] }],
},
};